From: yxj Date: Wed, 7 May 2014 03:23:49 +0000 (+0800) Subject: add devicetree bindings for rk screen X-Git-Tag: firefly_0821_release~5337 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3bb54a06c7d3dbca7015f846f1ec3798c4202765;p=firefly-linux-kernel-4.4.55.git add devicetree bindings for rk screen --- diff --git a/Documentation/devicetree/bindings/video/display-timing.txt b/Documentation/devicetree/bindings/video/display-timing.txt index 150038552bc3..c6c1830ff9c5 100644 --- a/Documentation/devicetree/bindings/video/display-timing.txt +++ b/Documentation/devicetree/bindings/video/display-timing.txt @@ -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 diff --git a/Documentation/devicetree/bindings/video/rockchip_fb.txt b/Documentation/devicetree/bindings/video/rockchip_fb.txt index 9fff601c67b9..4b86bb657086 100755 --- a/Documentation/devicetree/bindings/video/rockchip_fb.txt +++ b/Documentation/devicetree/bindings/video/rockchip_fb.txt @@ -12,4 +12,54 @@ DT entry: compatible = "rockchip,rk-fb"; rockchip,disp-mode = ; }; - + +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 = ; + lvds-format = ; + out-face = ; + 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