diff options
Diffstat (limited to 'arch/arm/boot/dts/am437x-gp-evm.dts')
-rw-r--r-- | arch/arm/boot/dts/am437x-gp-evm.dts | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index c25d15837ce9..003766c47bbf 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts | |||
@@ -19,6 +19,10 @@ | |||
19 | model = "TI AM437x GP EVM"; | 19 | model = "TI AM437x GP EVM"; |
20 | compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; | 20 | compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; |
21 | 21 | ||
22 | aliases { | ||
23 | display0 = &lcd0; | ||
24 | }; | ||
25 | |||
22 | vmmcsd_fixed: fixedregulator-sd { | 26 | vmmcsd_fixed: fixedregulator-sd { |
23 | compatible = "regulator-fixed"; | 27 | compatible = "regulator-fixed"; |
24 | regulator-name = "vmmcsd_fixed"; | 28 | regulator-name = "vmmcsd_fixed"; |
@@ -64,6 +68,44 @@ | |||
64 | 0x02000069 /* LEFT */ | 68 | 0x02000069 /* LEFT */ |
65 | 0x0201006c>; /* DOWN */ | 69 | 0x0201006c>; /* DOWN */ |
66 | }; | 70 | }; |
71 | |||
72 | lcd0: display { | ||
73 | compatible = "osddisplays,osd057T0559-34ts", "panel-dpi"; | ||
74 | label = "lcd"; | ||
75 | |||
76 | pinctrl-names = "default"; | ||
77 | pinctrl-0 = <&lcd_pins>; | ||
78 | |||
79 | /* | ||
80 | * SelLCDorHDMI, LOW to select HDMI. This is not really the | ||
81 | * panel's enable GPIO, but we don't have HDMI driver support nor | ||
82 | * support to switch between two displays, so using this gpio as | ||
83 | * panel's enable should be safe. | ||
84 | */ | ||
85 | enable-gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>; | ||
86 | |||
87 | panel-timing { | ||
88 | clock-frequency = <33000000>; | ||
89 | hactive = <800>; | ||
90 | vactive = <480>; | ||
91 | hfront-porch = <210>; | ||
92 | hback-porch = <16>; | ||
93 | hsync-len = <30>; | ||
94 | vback-porch = <10>; | ||
95 | vfront-porch = <22>; | ||
96 | vsync-len = <13>; | ||
97 | hsync-active = <0>; | ||
98 | vsync-active = <0>; | ||
99 | de-active = <1>; | ||
100 | pixelclk-active = <1>; | ||
101 | }; | ||
102 | |||
103 | port { | ||
104 | lcd_in: endpoint { | ||
105 | remote-endpoint = <&dpi_out>; | ||
106 | }; | ||
107 | }; | ||
108 | }; | ||
67 | }; | 109 | }; |
68 | 110 | ||
69 | &am43xx_pinmux { | 111 | &am43xx_pinmux { |
@@ -171,6 +213,47 @@ | |||
171 | 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */ | 213 | 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */ |
172 | >; | 214 | >; |
173 | }; | 215 | }; |
216 | |||
217 | dss_pins: dss_pins { | ||
218 | pinctrl-single,pins = < | ||
219 | 0x020 (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */ | ||
220 | 0x024 (PIN_OUTPUT_PULLUP | MUX_MODE1) | ||
221 | 0x028 (PIN_OUTPUT_PULLUP | MUX_MODE1) | ||
222 | 0x02c (PIN_OUTPUT_PULLUP | MUX_MODE1) | ||
223 | 0x030 (PIN_OUTPUT_PULLUP | MUX_MODE1) | ||
224 | 0x034 (PIN_OUTPUT_PULLUP | MUX_MODE1) | ||
225 | 0x038 (PIN_OUTPUT_PULLUP | MUX_MODE1) | ||
226 | 0x03c (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */ | ||
227 | 0x0a0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */ | ||
228 | 0x0a4 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
229 | 0x0a8 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
230 | 0x0ac (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
231 | 0x0b0 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
232 | 0x0b4 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
233 | 0x0b8 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
234 | 0x0bc (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
235 | 0x0c0 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
236 | 0x0c4 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
237 | 0x0c8 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
238 | 0x0cc (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
239 | 0x0d0 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
240 | 0x0d4 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
241 | 0x0d8 (PIN_OUTPUT_PULLUP | MUX_MODE0) | ||
242 | 0x0dc (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */ | ||
243 | 0x0e0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */ | ||
244 | 0x0e4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */ | ||
245 | 0x0e8 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */ | ||
246 | 0x0ec (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */ | ||
247 | |||
248 | >; | ||
249 | }; | ||
250 | |||
251 | lcd_pins: lcd_pins { | ||
252 | pinctrl-single,pins = < | ||
253 | /* GPIO 5_8 to select LCD / HDMI */ | ||
254 | 0x238 (PIN_OUTPUT_PULLUP | MUX_MODE7) | ||
255 | >; | ||
256 | }; | ||
174 | }; | 257 | }; |
175 | 258 | ||
176 | &i2c0 { | 259 | &i2c0 { |
@@ -359,3 +442,17 @@ | |||
359 | }; | 442 | }; |
360 | }; | 443 | }; |
361 | }; | 444 | }; |
445 | |||
446 | &dss { | ||
447 | status = "ok"; | ||
448 | |||
449 | pinctrl-names = "default"; | ||
450 | pinctrl-0 = <&dss_pins>; | ||
451 | |||
452 | port { | ||
453 | dpi_out: endpoint@0 { | ||
454 | remote-endpoint = <&lcd_in>; | ||
455 | data-lines = <24>; | ||
456 | }; | ||
457 | }; | ||
458 | }; | ||