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
17 #define DEFAULT_MODE 0
18 #define ONE_VOP_DUAL_MIPI_HOR_SCAN 1
19 #define ONE_VOP_DUAL_MIPI_VER_SCAN 2
20 #define TWO_VOP_TWO_SCREEN 3
22 /********************************************************************
23 ** display output interface supported by rockchip **
24 ********************************************************************/
25 #define OUT_P888 0 //24bit screen,connect to lcdc D0~D23
26 #define OUT_P666 1 //18bit screen,connect to lcdc D0~D17
31 #define OUT_S888DUMY 12
32 #define OUT_YUV_420 14
33 #define OUT_P101010 15
34 #define OUT_YUV_420_10BIT 16
35 #define OUT_YUV_422 12
36 #define OUT_YUV_422_10BIT 17
37 #define OUT_P16BPP4 24
38 #define OUT_D888_P666 0x21 //18bit screen,connect to lcdc D2~D7, D10~D15, D18~D23
39 #define OUT_D888_P565 0x22
44 #define SCREEN_DUAL_LVDS 3
46 #define SCREEN_TVOUT 5
49 #define SCREEN_DUAL_MIPI 8
51 #define SCREEN_TVOUT_TEST 10
52 #define SCREEN_LVDS_10BIT 11
53 #define SCREEN_DUAL_LVDS_10BIT 12
60 #define LVDS_10BIT_1 4
61 #define LVDS_10BIT_2 5
63 /* x y mirror or rotate mode */
65 #define X_MIRROR 1 /* up-down flip*/
66 #define Y_MIRROR 2 /* left-right flip */
67 #define X_Y_MIRROR 3 /* the same as rotate 180 degrees */
68 #define ROTATE_90 4 /* clockwise rotate 90 degrees */
69 #define ROTATE_180 8 /* rotate 180 degrees
70 * It is recommended to use X_Y_MIRROR
71 * rather than ROTATE_180
73 #define ROTATE_270 12/* clockwise rotate 270 degrees */
76 #define COLOR_RGB_BT2020 1
77 /* default colorspace is bt601 */
79 #define COLOR_YCBCR_BT709 3
80 #define COLOR_YCBCR_BT2020 4
82 #define IS_YUV_COLOR(x) ((x) >= COLOR_YCBCR)
85 #define FB_DEFAULT_ORDER 0
86 #define FB0_WIN2_FB1_WIN1_FB2_WIN0 12
87 #define FB0_WIN1_FB1_WIN2_FB2_WIN0 21
88 #define FB0_WIN2_FB1_WIN0_FB2_WIN1 102
89 #define FB0_WIN0_FB1_WIN2_FB2_WIN1 120
90 #define FB0_WIN0_FB1_WIN1_FB2_WIN2 210
91 #define FB0_WIN1_FB1_WIN0_FB2_WIN2 201
92 #define FB0_WIN0_FB1_WIN1_FB2_WIN2_FB3_WIN3 3210
93 #define FB0_WIN0_FB1_WIN1_FB2_WIN2_FB3_WIN3_FB4_HWC 43210
95 #define DISPLAY_POLICY_SDK 0
96 #define DISPLAY_POLICY_BOX 1
98 /* lvds connect config
100 * LVDS_8BIT_1 LVDS_8BIT_2 LVDS_8BIT_3 LVDS_6BIT
101 ----------------------------------------------------------------------
109 ----------------------------------------------------------------------
117 ----------------------------------------------------------------------
122 2 TX24 HSYNC HSYNC HSYNC HSYNC
123 TX25 VSYNC VSYNC VSYNC VSYNC
124 TX26 ENABLE ENABLE ENABLE ENABLE
125 ----------------------------------------------------------------------
132 TX23 RSVD RSVD RSVD RSVD
133 ----------------------------------------------------------------------
135 * LVDS_10BIT_1 LVDS_10BIT_2
136 ----------------------------------------------------------------------
144 ----------------------------------------------------------------------
152 ----------------------------------------------------------------------
160 ----------------------------------------------------------------------
168 ----------------------------------------------------------------------
176 ------------------------------------------------------------------------