18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only or X11 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2019 Pengutronix, Marco Felsch <kernel@pengutronix.de>
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_DISPLAY_SDTV_STDS_H
78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_DISPLAY_SDTV_STDS_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/*
108c2ecf20Sopenharmony_ci * Attention: Keep the SDTV_STD_* bit definitions in sync with
118c2ecf20Sopenharmony_ci * include/uapi/linux/videodev2.h V4L2_STD_* bit definitions.
128c2ecf20Sopenharmony_ci */
138c2ecf20Sopenharmony_ci/* One bit for each standard */
148c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_B		0x00000001
158c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_B1		0x00000002
168c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_G		0x00000004
178c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_H		0x00000008
188c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_I		0x00000010
198c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_D		0x00000020
208c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_D1		0x00000040
218c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_K		0x00000080
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define SDTV_STD_PAL		(SDTV_STD_PAL_B		| \
248c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_B1	| \
258c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_G		| \
268c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_H		| \
278c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_I		| \
288c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_D		| \
298c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_D1	| \
308c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_K)
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_M		0x00000100
338c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_N		0x00000200
348c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_Nc		0x00000400
358c2ecf20Sopenharmony_ci#define SDTV_STD_PAL_60		0x00000800
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#define SDTV_STD_NTSC_M		0x00001000	/* BTSC */
388c2ecf20Sopenharmony_ci#define SDTV_STD_NTSC_M_JP	0x00002000	/* EIA-J */
398c2ecf20Sopenharmony_ci#define SDTV_STD_NTSC_443	0x00004000
408c2ecf20Sopenharmony_ci#define SDTV_STD_NTSC_M_KR	0x00008000	/* FM A2 */
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci#define SDTV_STD_NTSC		(SDTV_STD_NTSC_M	| \
438c2ecf20Sopenharmony_ci				 SDTV_STD_NTSC_M_JP	| \
448c2ecf20Sopenharmony_ci				 SDTV_STD_NTSC_M_KR)
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_B	0x00010000
478c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_D	0x00020000
488c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_G	0x00040000
498c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_H	0x00080000
508c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_K	0x00100000
518c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_K1	0x00200000
528c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_L	0x00400000
538c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM_LC	0x00800000
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#define SDTV_STD_SECAM		(SDTV_STD_SECAM_B	| \
568c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_D	| \
578c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_G	| \
588c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_H	| \
598c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_K	| \
608c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_K1	| \
618c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_L	| \
628c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM_LC)
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/* Standards for Countries with 60Hz Line frequency */
658c2ecf20Sopenharmony_ci#define SDTV_STD_525_60		(SDTV_STD_PAL_M		| \
668c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_60	| \
678c2ecf20Sopenharmony_ci				 SDTV_STD_NTSC		| \
688c2ecf20Sopenharmony_ci				 SDTV_STD_NTSC_443)
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci/* Standards for Countries with 50Hz Line frequency */
718c2ecf20Sopenharmony_ci#define SDTV_STD_625_50		(SDTV_STD_PAL		| \
728c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_N		| \
738c2ecf20Sopenharmony_ci				 SDTV_STD_PAL_Nc	| \
748c2ecf20Sopenharmony_ci				 SDTV_STD_SECAM)
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_DISPLAY_SDTV_STDS_H */
77