vfront-porch, vback-porch, vsync-len: vertical display timing parameters in
lines
- clock-frequency: display clock in Hz
-
+ - screen-type: screen interface type,such as SCREEN_LVDS/SCREEN_RGB/SCREEN_DEP/SCREEN_MIPI,
+ defined in include/dt-bindings/rkfb/rk_fb.h,this is used on RockChip platform
+ - out-face : screen data width, such as OUT_P888/OUT_D888_P666/OUT_P666/OUT_P565,
+ defined in include/dt-bindings/rkfb/rk_fb.h,this is used on RockChip platform
+ - lvds-format: lvds data format for lvds screen,such as LVDS_8BIT_1/2/3/LVDS_6BIT,
+ defined in include/dt-bindings/rkfb/rk_fb.h,this is used on RockChip platform
+ - swap-rb/rg/gb: set to 1 if some screen rgb need to swap,this is used on RockChip platform
optional properties:
- hsync-active: hsync pulse is active low/high/ignored
- vsync-active: vsync pulse is active low/high/ignored
compatible = "rockchip,rk-fb";
rockchip,disp-mode = <DUAL>;
};
-
+
+Device-Tree bindings for RockChip screen driver
+
+Required properties:
+- compatible: value should be "rockchip,screen"
+- display-timings: value should be disp_timings, which defined in
+ lcd-xxx.dtsi file,the file should include by your board dts
+
+Example:
+ creen: rk_screen{
+ compatible = "rockchip,screen";
+ display-timings = <&disp_timings>;
+ };
+
+/*
+ * RockChip. LCD_B101ew05 lcd-b101ew05.dtsi
+ *
+ */
+
+/ {
+
+ disp_timings: display-timings {
+ native-mode = <&timing0>;
+ timing0: timing0 {
+ screen-type = <SCREEN_LVDS>;
+ lvds-format = <LVDS_8BIT_2>;
+ out-face = <OUT_D888_P666>;
+ clock-frequency = <71000000>;
+ hactive = <1280>;
+ vactive = <800>;
+ hback-porch = <100>;
+ hfront-porch = <18>;
+ vback-porch = <8>;
+ vfront-porch = <6>;
+ hsync-len = <10>;
+ vsync-len = <2>;
+ hsync-active = <0>;
+ vsync-active = <0>;
+ de-active = <0>;
+ pixelclk-active = <0>;
+ swap-rb = <0>;
+ swap-rg = <0>;
+ swap-gb = <0>;
+ };
+ };
+};
+
+
+
+
+note: reference for display-timing.txt for display-timing bindings