aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-05-02 06:54:21 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-06-03 03:22:20 -0400
commit999c3f1a440582083372b2c5842a1692b16be311 (patch)
treee2dae2ebe39302c0ae226ef4799c4ab2373771b9 /arch/arm
parent0bacb529f83583b0a3a786062432edcdc7bc93a8 (diff)
ARM: dts: am43x-epos-evm: add LCD data
Add DT data for am43x-epos-evm's LCD panel. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/am43x-epos-evm.dts96
1 files changed, 96 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index ad362c50e32e..19f1f7e87597 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -19,6 +19,10 @@
19 model = "TI AM43x EPOS EVM"; 19 model = "TI AM43x EPOS EVM";
20 compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43"; 20 compatible = "ti,am43x-epos-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";
@@ -27,6 +31,44 @@
27 enable-active-high; 31 enable-active-high;
28 }; 32 };
29 33
34 lcd0: display {
35 compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
36 label = "lcd";
37
38 pinctrl-names = "default";
39 pinctrl-0 = <&lcd_pins>;
40
41 /*
42 * SelLCDorHDMI, LOW to select HDMI. This is not really the
43 * panel's enable GPIO, but we don't have HDMI driver support nor
44 * support to switch between two displays, so using this gpio as
45 * panel's enable should be safe.
46 */
47 enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
48
49 panel-timing {
50 clock-frequency = <33000000>;
51 hactive = <800>;
52 vactive = <480>;
53 hfront-porch = <210>;
54 hback-porch = <16>;
55 hsync-len = <30>;
56 vback-porch = <10>;
57 vfront-porch = <22>;
58 vsync-len = <13>;
59 hsync-active = <0>;
60 vsync-active = <0>;
61 de-active = <1>;
62 pixelclk-active = <1>;
63 };
64
65 port {
66 lcd_in: endpoint {
67 remote-endpoint = <&dpi_out>;
68 };
69 };
70 };
71
30 am43xx_pinmux: pinmux@44e10800 { 72 am43xx_pinmux: pinmux@44e10800 {
31 cpsw_default: cpsw_default { 73 cpsw_default: cpsw_default {
32 pinctrl-single,pins = < 74 pinctrl-single,pins = <
@@ -161,6 +203,46 @@
161 0x234 (PIN_INPUT_PULLUP | MUX_MODE1) /* cam1_wen.hdq_gpio */ 203 0x234 (PIN_INPUT_PULLUP | MUX_MODE1) /* cam1_wen.hdq_gpio */
162 >; 204 >;
163 }; 205 };
206
207 dss_pins: dss_pins {
208 pinctrl-single,pins = <
209 0x020 (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
210 0x024 (PIN_OUTPUT_PULLUP | MUX_MODE1)
211 0x028 (PIN_OUTPUT_PULLUP | MUX_MODE1)
212 0x02C (PIN_OUTPUT_PULLUP | MUX_MODE1)
213 0x030 (PIN_OUTPUT_PULLUP | MUX_MODE1)
214 0x034 (PIN_OUTPUT_PULLUP | MUX_MODE1)
215 0x038 (PIN_OUTPUT_PULLUP | MUX_MODE1)
216 0x03C (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
217 0x0A0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
218 0x0A4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
219 0x0A8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
220 0x0AC (PIN_OUTPUT_PULLUP | MUX_MODE0)
221 0x0B0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
222 0x0B4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
223 0x0B8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
224 0x0BC (PIN_OUTPUT_PULLUP | MUX_MODE0)
225 0x0C0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
226 0x0C4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
227 0x0C8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
228 0x0CC (PIN_OUTPUT_PULLUP | MUX_MODE0)
229 0x0D0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
230 0x0D4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
231 0x0D8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
232 0x0DC (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
233 0x0E0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
234 0x0E4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
235 0x0E8 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
236 0x0EC (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
237 >;
238 };
239
240 lcd_pins: lcd_pins {
241 pinctrl-single,pins = <
242 /* GPMC CLK -> GPIO 2_1 to select LCD / HDMI */
243 0x08C (PIN_OUTPUT_PULLUP | MUX_MODE7)
244 >;
245 };
164 }; 246 };
165 247
166 matrix_keypad: matrix_keypad@0 { 248 matrix_keypad: matrix_keypad@0 {
@@ -468,3 +550,17 @@
468 pinctrl-names = "default"; 550 pinctrl-names = "default";
469 pinctrl-0 = <&hdq_pins>; 551 pinctrl-0 = <&hdq_pins>;
470}; 552};
553
554&dss {
555 status = "ok";
556
557 pinctrl-names = "default";
558 pinctrl-0 = <&dss_pins>;
559
560 port {
561 dpi_out: endpoint@0 {
562 remote-endpoint = <&lcd_in>;
563 data-lines = <24>;
564 };
565 };
566};