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
15 /********************************************************************
16 ** display output interface supported by rockchip **
17 ********************************************************************/
18 #define OUT_P888 0 //24bit screen,connect to lcdc D0~D23
19 #define OUT_P666 1 //18bit screen,connect to lcdc D0~D17
24 #define OUT_S888DUMY 12
25 #define OUT_YUV_420 14
26 #define OUT_P101010 15
27 #define OUT_YUV_420_10BIT 16
28 #define OUT_P16BPP4 24
29 #define OUT_D888_P666 0x21 //18bit screen,connect to lcdc D2~D7, D10~D15, D18~D23
30 #define OUT_D888_P565 0x22
35 #define SCREEN_DUAL_LVDS 3
37 #define SCREEN_TVOUT 5
40 #define SCREEN_DUAL_MIPI 8
42 #define SCREEN_TVOUT_TEST 10
43 #define SCREEN_LVDS_10BIT 11
44 #define SCREEN_DUAL_LVDS_10BIT 12
50 #define LVDS_10BIT_1 4
51 #define LVDS_10BIT_2 5
53 /* x y mirror or rotate mode */
55 #define X_MIRROR 1 /* up-down flip*/
56 #define Y_MIRROR 2 /* left-right flip */
57 #define X_Y_MIRROR 3 /* the same as rotate 180 degrees */
58 #define ROTATE_90 4 /* clockwise rotate 90 degrees */
59 #define ROTATE_180 8 /* rotate 180 degrees
60 * It is recommended to use X_Y_MIRROR
61 * rather than ROTATE_180
63 #define ROTATE_270 12/* clockwise rotate 270 degrees */
66 #define COLOR_RGB_BT2020 1
67 /* default colorspace is bt601 */
69 #define COLOR_YCBCR_BT709 3
70 #define COLOR_YCBCR_BT2020 4
72 #define IS_YUV_COLOR(x) ((x) >= COLOR_YCBCR)
75 #define FB_DEFAULT_ORDER 0
76 #define FB0_WIN2_FB1_WIN1_FB2_WIN0 12
77 #define FB0_WIN1_FB1_WIN2_FB2_WIN0 21
78 #define FB0_WIN2_FB1_WIN0_FB2_WIN1 102
79 #define FB0_WIN0_FB1_WIN2_FB2_WIN1 120
80 #define FB0_WIN0_FB1_WIN1_FB2_WIN2 210
81 #define FB0_WIN1_FB1_WIN0_FB2_WIN2 201
82 #define FB0_WIN0_FB1_WIN1_FB2_WIN2_FB3_WIN3 3210
83 #define FB0_WIN0_FB1_WIN1_FB2_WIN2_FB3_WIN3_FB4_HWC 43210
85 #define DISPLAY_POLICY_SDK 0
86 #define DISPLAY_POLICY_BOX 1
88 /* lvds connect config
90 * LVDS_8BIT_1 LVDS_8BIT_2 LVDS_8BIT_3 LVDS_6BIT
91 ----------------------------------------------------------------------
99 ----------------------------------------------------------------------
107 ----------------------------------------------------------------------
112 2 TX24 HSYNC HSYNC HSYNC HSYNC
113 TX25 VSYNC VSYNC VSYNC VSYNC
114 TX26 ENABLE ENABLE ENABLE ENABLE
115 ----------------------------------------------------------------------
122 TX23 RSVD RSVD RSVD RSVD
123 ----------------------------------------------------------------------
125 * LVDS_10BIT_1 LVDS_10BIT_2
126 ----------------------------------------------------------------------
134 ----------------------------------------------------------------------
142 ----------------------------------------------------------------------
150 ----------------------------------------------------------------------
158 ----------------------------------------------------------------------
166 ------------------------------------------------------------------------