1 #ifndef _DT_BINDINGS_RKFB_H_
2 #define _DT_BINDINGS_RKFB_H_
6 #define PRMRY 1 /*primary display device*/
7 #define EXTEND 2 /*extend display device*/
9 #define DISPLAY_SOURCE_LCDC0 0
10 #define DISPLAY_SOURCE_LCDC1 1
16 /********************************************************************
17 ** display output interface supported by rockchip **
18 ********************************************************************/
19 #define OUT_P888 0 //24bit screen,connect to lcdc D0~D23
20 #define OUT_P666 1 //18bit screen,connect to lcdc D0~D17
25 #define OUT_S888DUMY 12
26 #define OUT_YUV_420 14
27 #define OUT_P101010 15
28 #define OUT_YUV_420_10BIT 16
29 #define OUT_YUV_422 12
30 #define OUT_YUV_422_10BIT 17
31 #define OUT_P16BPP4 24
32 #define OUT_D888_P666 0x21 //18bit screen,connect to lcdc D2~D7, D10~D15, D18~D23
33 #define OUT_D888_P565 0x22
38 #define SCREEN_DUAL_LVDS 3
40 #define SCREEN_TVOUT 5
43 #define SCREEN_DUAL_MIPI 8
45 #define SCREEN_TVOUT_TEST 10
46 #define SCREEN_LVDS_10BIT 11
47 #define SCREEN_DUAL_LVDS_10BIT 12
54 #define LVDS_10BIT_1 4
55 #define LVDS_10BIT_2 5
57 /* x y mirror or rotate mode */
59 #define X_MIRROR 1 /* up-down flip*/
60 #define Y_MIRROR 2 /* left-right flip */
61 #define X_Y_MIRROR 3 /* the same as rotate 180 degrees */
62 #define ROTATE_90 4 /* clockwise rotate 90 degrees */
63 #define ROTATE_180 8 /* rotate 180 degrees
64 * It is recommended to use X_Y_MIRROR
65 * rather than ROTATE_180
67 #define ROTATE_270 12/* clockwise rotate 270 degrees */
70 #define COLOR_RGB_BT2020 1
71 /* default colorspace is bt601 */
73 #define COLOR_YCBCR_BT709 3
74 #define COLOR_YCBCR_BT2020 4
76 #define IS_YUV_COLOR(x) ((x) >= COLOR_YCBCR)
79 #define FB_DEFAULT_ORDER 0
80 #define FB0_WIN2_FB1_WIN1_FB2_WIN0 12
81 #define FB0_WIN1_FB1_WIN2_FB2_WIN0 21
82 #define FB0_WIN2_FB1_WIN0_FB2_WIN1 102
83 #define FB0_WIN0_FB1_WIN2_FB2_WIN1 120
84 #define FB0_WIN0_FB1_WIN1_FB2_WIN2 210
85 #define FB0_WIN1_FB1_WIN0_FB2_WIN2 201
86 #define FB0_WIN0_FB1_WIN1_FB2_WIN2_FB3_WIN3 3210
87 #define FB0_WIN0_FB1_WIN1_FB2_WIN2_FB3_WIN3_FB4_HWC 43210
89 #define DISPLAY_POLICY_SDK 0
90 #define DISPLAY_POLICY_BOX 1
92 /* lvds connect config
94 * LVDS_8BIT_1 LVDS_8BIT_2 LVDS_8BIT_3 LVDS_6BIT
95 ----------------------------------------------------------------------
103 ----------------------------------------------------------------------
111 ----------------------------------------------------------------------
116 2 TX24 HSYNC HSYNC HSYNC HSYNC
117 TX25 VSYNC VSYNC VSYNC VSYNC
118 TX26 ENABLE ENABLE ENABLE ENABLE
119 ----------------------------------------------------------------------
126 TX23 RSVD RSVD RSVD RSVD
127 ----------------------------------------------------------------------
129 * LVDS_10BIT_1 LVDS_10BIT_2
130 ----------------------------------------------------------------------
138 ----------------------------------------------------------------------
146 ----------------------------------------------------------------------
154 ----------------------------------------------------------------------
162 ----------------------------------------------------------------------
170 ------------------------------------------------------------------------