add devicetree bindings for rk screen
authoryxj <yxj@rock-chips.com>
Wed, 7 May 2014 03:23:49 +0000 (11:23 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 8 May 2014 01:10:16 +0000 (09:10 +0800)
Documentation/devicetree/bindings/video/display-timing.txt
Documentation/devicetree/bindings/video/rockchip_fb.txt

index 150038552bc3047bad9c28548270d63592e34700..c6c1830ff9c545f571a8a21da62a6aedad4237bb 100644 (file)
@@ -21,7 +21,13 @@ required properties:
    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
index 9fff601c67b9c6c87431d1e6f398a8b973ec91b4..4b86bb65708603f81f738f3af4293a9ce3986399 100755 (executable)
@@ -12,4 +12,54 @@ DT entry:
                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