xref: /openbmc/linux/arch/arm/boot/dts/ti/omap/omap3-ha-lcd.dts (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4*724ba675SRob Herring * Copyright (C) 2014 Stefan Roese <sr@denx.de>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring#include "omap3-ha-common.dtsi"
8*724ba675SRob Herring
9*724ba675SRob Herring/ {
10*724ba675SRob Herring	model = "TI OMAP3 HEAD acoustics LCD-baseboard with TAO3530 SOM";
11*724ba675SRob Herring	compatible = "headacoustics,omap3-ha-lcd", "technexion,omap3-tao3530", "ti,omap3430", "ti,omap34xx", "ti,omap3";
12*724ba675SRob Herring};
13*724ba675SRob Herring
14*724ba675SRob Herring&omap3_pmx_core {
15*724ba675SRob Herring	pinctrl-names = "default";
16*724ba675SRob Herring	pinctrl-0 = <
17*724ba675SRob Herring		&hsusbb2_pins
18*724ba675SRob Herring		&powerdown_input_pins
19*724ba675SRob Herring		&fpga_boot0_pins
20*724ba675SRob Herring		&fpga_boot1_pins
21*724ba675SRob Herring		&led_blue_pins
22*724ba675SRob Herring		&led_green_pins
23*724ba675SRob Herring		&led_red_pins
24*724ba675SRob Herring		&touchscreen_wake_pins
25*724ba675SRob Herring	>;
26*724ba675SRob Herring
27*724ba675SRob Herring	touchscreen_irq_pins: touchscreen-irq-pins {
28*724ba675SRob Herring		pinctrl-single,pins = <
29*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE4)	/* gpio_136, Touchscreen IRQ */
30*724ba675SRob Herring		>;
31*724ba675SRob Herring	};
32*724ba675SRob Herring
33*724ba675SRob Herring	touchscreen_wake_pins: touchscreen-wake-pins {
34*724ba675SRob Herring		pinctrl-single,pins = <
35*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x212c, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* gpio_110, Touchscreen Wake */
36*724ba675SRob Herring		>;
37*724ba675SRob Herring	};
38*724ba675SRob Herring
39*724ba675SRob Herring	dss_dpi_pins: dss-dpi-pins {
40*724ba675SRob Herring		pinctrl-single,pins = <
41*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)	/* dss_pclk.dss_pclk */
42*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)	/* dss_hsync.dss_hsync */
43*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)	/* dss_vsync.dss_vsync */
44*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)	/* dss_acbias.dss_acbias */
45*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)	/* dss_data0.dss_data0 */
46*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)	/* dss_data1.dss_data1 */
47*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)	/* dss_data2.dss_data2 */
48*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)	/* dss_data3.dss_data3 */
49*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)	/* dss_data4.dss_data4 */
50*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)	/* dss_data5.dss_data5 */
51*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)	/* dss_data6.dss_data6 */
52*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)	/* dss_data7.dss_data7 */
53*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)	/* dss_data8.dss_data8 */
54*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)	/* dss_data9.dss_data9 */
55*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)	/* dss_data10.dss_data10 */
56*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)	/* dss_data11.dss_data11 */
57*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)	/* dss_data12.dss_data12 */
58*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)	/* dss_data13.dss_data13 */
59*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)	/* dss_data14.dss_data14 */
60*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)	/* dss_data15.dss_data15 */
61*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)	/* dss_data16.dss_data16 */
62*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)	/* dss_data17.dss_data17 */
63*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)	/* dss_data18.dss_data18 */
64*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)	/* dss_data19.dss_data19 */
65*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)	/* dss_data20.dss_data20 */
66*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)	/* dss_data21.dss_data21 */
67*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)	/* dss_data22.dss_data22 */
68*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)	/* dss_data23.dss_data23 */
69*724ba675SRob Herring		>;
70*724ba675SRob Herring	};
71*724ba675SRob Herring
72*724ba675SRob Herring	lte430_pins: lte430-pins {
73*724ba675SRob Herring		pinctrl-single,pins = <
74*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4)	/* sdmmc2_dat6.gpio_138 */
75*724ba675SRob Herring		>;
76*724ba675SRob Herring	};
77*724ba675SRob Herring
78*724ba675SRob Herring	backlight_pins: backlight-pins {
79*724ba675SRob Herring		pinctrl-single,pins = <
80*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x216a, PIN_OUTPUT | MUX_MODE4)	/* sdmmc2_dat7.gpio_139 */
81*724ba675SRob Herring		>;
82*724ba675SRob Herring	};
83*724ba675SRob Herring};
84*724ba675SRob Herring
85*724ba675SRob Herring/* I2C2: mux'ed with GPIO168 which is connected to nKILL_POWER */
86*724ba675SRob Herring&i2c2 {
87*724ba675SRob Herring	status = "disabled";
88*724ba675SRob Herring};
89*724ba675SRob Herring
90*724ba675SRob Herring&i2c3 {
91*724ba675SRob Herring	clock-frequency = <100000>;
92*724ba675SRob Herring
93*724ba675SRob Herring	pinctrl-names = "default";
94*724ba675SRob Herring	pinctrl-0 = <&i2c3_pins>;
95*724ba675SRob Herring};
96*724ba675SRob Herring
97*724ba675SRob Herring/* Needed to power the DPI pins */
98*724ba675SRob Herring&vpll2 {
99*724ba675SRob Herring	regulator-always-on;
100*724ba675SRob Herring};
101*724ba675SRob Herring
102*724ba675SRob Herring&dss {
103*724ba675SRob Herring	status = "okay";
104*724ba675SRob Herring
105*724ba675SRob Herring	pinctrl-names = "default";
106*724ba675SRob Herring	pinctrl-0 = <&dss_dpi_pins>;
107*724ba675SRob Herring
108*724ba675SRob Herring	port {
109*724ba675SRob Herring		dpi_out: endpoint {
110*724ba675SRob Herring			remote-endpoint = <&lcd_in>;
111*724ba675SRob Herring			data-lines = <24>;
112*724ba675SRob Herring		};
113*724ba675SRob Herring	};
114*724ba675SRob Herring};
115*724ba675SRob Herring
116*724ba675SRob Herring/ {
117*724ba675SRob Herring	aliases {
118*724ba675SRob Herring		display0 = &lcd0;
119*724ba675SRob Herring	};
120*724ba675SRob Herring
121*724ba675SRob Herring	lcd0: display {
122*724ba675SRob Herring		compatible = "panel-dpi";
123*724ba675SRob Herring		label = "lcd";
124*724ba675SRob Herring
125*724ba675SRob Herring		pinctrl-names = "default";
126*724ba675SRob Herring		pinctrl-0 = <&lte430_pins>;
127*724ba675SRob Herring		enable-gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;	/* gpio_138 */
128*724ba675SRob Herring
129*724ba675SRob Herring		port {
130*724ba675SRob Herring			lcd_in: endpoint {
131*724ba675SRob Herring				remote-endpoint = <&dpi_out>;
132*724ba675SRob Herring			};
133*724ba675SRob Herring		};
134*724ba675SRob Herring
135*724ba675SRob Herring		panel-timing {
136*724ba675SRob Herring			clock-frequency = <31250000>;
137*724ba675SRob Herring			hactive = <800>;
138*724ba675SRob Herring			vactive = <480>;
139*724ba675SRob Herring			hfront-porch = <40>;
140*724ba675SRob Herring			hback-porch = <86>;
141*724ba675SRob Herring			hsync-len = <1>;
142*724ba675SRob Herring			vback-porch = <30>;
143*724ba675SRob Herring			vfront-porch = <13>;
144*724ba675SRob Herring			vsync-len = <3>;
145*724ba675SRob Herring
146*724ba675SRob Herring			hsync-active = <0>;
147*724ba675SRob Herring			vsync-active = <0>;
148*724ba675SRob Herring			de-active = <1>;
149*724ba675SRob Herring			pixelclk-active = <1>;
150*724ba675SRob Herring		};
151*724ba675SRob Herring	};
152*724ba675SRob Herring
153*724ba675SRob Herring	backlight {
154*724ba675SRob Herring		compatible = "gpio-backlight";
155*724ba675SRob Herring
156*724ba675SRob Herring		pinctrl-names = "default";
157*724ba675SRob Herring		pinctrl-0 = <&backlight_pins>;
158*724ba675SRob Herring		gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>;		/* gpio_139 */
159*724ba675SRob Herring
160*724ba675SRob Herring		default-on;
161*724ba675SRob Herring	};
162*724ba675SRob Herring};
163