diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-03-13 22:57:34 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-04-04 09:22:41 -0400 |
commit | 669406534b4abb827d1bdc39bb5e2d5255818ae2 (patch) | |
tree | 0999716da16a54cb37f66c1f7ebf75b025a1852b /Documentation/devicetree/bindings | |
parent | 36f3e99649baa77b2d22e385b2ea09e8f308c905 (diff) |
video: mxsfb: get display timings from device tree
Use videomode helpers to get display timings and configurations from
device tree when platform_data is absent.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/fb/mxsfb.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/fb/mxsfb.txt b/Documentation/devicetree/bindings/fb/mxsfb.txt index b41e5e52a676..7ba3b7663513 100644 --- a/Documentation/devicetree/bindings/fb/mxsfb.txt +++ b/Documentation/devicetree/bindings/fb/mxsfb.txt | |||
@@ -5,10 +5,20 @@ Required properties: | |||
5 | imx23 and imx28. | 5 | imx23 and imx28. |
6 | - reg: Address and length of the register set for lcdif | 6 | - reg: Address and length of the register set for lcdif |
7 | - interrupts: Should contain lcdif interrupts | 7 | - interrupts: Should contain lcdif interrupts |
8 | - display : phandle to display node (see below for details) | ||
8 | 9 | ||
9 | Optional properties: | 10 | Optional properties: |
10 | - panel-enable-gpios : Should specify the gpio for panel enable | 11 | - panel-enable-gpios : Should specify the gpio for panel enable |
11 | 12 | ||
13 | * display node | ||
14 | |||
15 | Required properties: | ||
16 | - bits-per-pixel : <16> for RGB565, <32> for RGB888/666. | ||
17 | - bus-width : number of data lines. Could be <8>, <16>, <18> or <24>. | ||
18 | |||
19 | Required sub-node: | ||
20 | - display-timings : Refer to binding doc display-timing.txt for details. | ||
21 | |||
12 | Examples: | 22 | Examples: |
13 | 23 | ||
14 | lcdif@80030000 { | 24 | lcdif@80030000 { |
@@ -16,4 +26,28 @@ lcdif@80030000 { | |||
16 | reg = <0x80030000 2000>; | 26 | reg = <0x80030000 2000>; |
17 | interrupts = <38 86>; | 27 | interrupts = <38 86>; |
18 | panel-enable-gpios = <&gpio3 30 0>; | 28 | panel-enable-gpios = <&gpio3 30 0>; |
29 | |||
30 | display: display { | ||
31 | bits-per-pixel = <32>; | ||
32 | bus-width = <24>; | ||
33 | |||
34 | display-timings { | ||
35 | native-mode = <&timing0>; | ||
36 | timing0: timing0 { | ||
37 | clock-frequency = <33500000>; | ||
38 | hactive = <800>; | ||
39 | vactive = <480>; | ||
40 | hfront-porch = <164>; | ||
41 | hback-porch = <89>; | ||
42 | hsync-len = <10>; | ||
43 | vback-porch = <23>; | ||
44 | vfront-porch = <10>; | ||
45 | vsync-len = <10>; | ||
46 | hsync-active = <0>; | ||
47 | vsync-active = <0>; | ||
48 | de-active = <1>; | ||
49 | pixelclk-active = <0>; | ||
50 | }; | ||
51 | }; | ||
52 | }; | ||
19 | }; | 53 | }; |