xref: /openbmc/linux/arch/arm/boot/dts/ti/omap/omap3-igep0020-common.dtsi (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Common Device Tree Source for IGEPv2
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2014 Javier Martinez Canillas <javier@dowhile0.org>
6*724ba675SRob Herring * Copyright (C) 2014 Enric Balletbo i Serra <eballetbo@gmail.com>
7*724ba675SRob Herring */
8*724ba675SRob Herring
9*724ba675SRob Herring#include "omap3-igep.dtsi"
10*724ba675SRob Herring#include "omap-gpmc-smsc9221.dtsi"
11*724ba675SRob Herring
12*724ba675SRob Herring/ {
13*724ba675SRob Herring
14*724ba675SRob Herring	leds {
15*724ba675SRob Herring		pinctrl-names = "default";
16*724ba675SRob Herring		pinctrl-0 = <&leds_pins>;
17*724ba675SRob Herring		compatible = "gpio-leds";
18*724ba675SRob Herring
19*724ba675SRob Herring		boot {
20*724ba675SRob Herring			 label = "omap3:green:boot";
21*724ba675SRob Herring			 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
22*724ba675SRob Herring			 default-state = "on";
23*724ba675SRob Herring		};
24*724ba675SRob Herring
25*724ba675SRob Herring		user0 {
26*724ba675SRob Herring			 label = "omap3:red:user0";
27*724ba675SRob Herring			 gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
28*724ba675SRob Herring			 default-state = "off";
29*724ba675SRob Herring		};
30*724ba675SRob Herring
31*724ba675SRob Herring		user1 {
32*724ba675SRob Herring			 label = "omap3:red:user1";
33*724ba675SRob Herring			 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
34*724ba675SRob Herring			 default-state = "off";
35*724ba675SRob Herring		};
36*724ba675SRob Herring
37*724ba675SRob Herring		user2 {
38*724ba675SRob Herring			label = "omap3:green:user1";
39*724ba675SRob Herring			gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>;
40*724ba675SRob Herring		};
41*724ba675SRob Herring	};
42*724ba675SRob Herring
43*724ba675SRob Herring	/* HS USB Port 1 Power */
44*724ba675SRob Herring	hsusb1_power: hsusb1_power_reg {
45*724ba675SRob Herring		compatible = "regulator-fixed";
46*724ba675SRob Herring		regulator-name = "hsusb1_vbus";
47*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
48*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
49*724ba675SRob Herring		gpio = <&twl_gpio 18 GPIO_ACTIVE_LOW>;	/* GPIO LEDA */
50*724ba675SRob Herring		startup-delay-us = <70000>;
51*724ba675SRob Herring	};
52*724ba675SRob Herring
53*724ba675SRob Herring	/* HS USB Host PHY on PORT 1 */
54*724ba675SRob Herring	hsusb1_phy: hsusb1_phy {
55*724ba675SRob Herring		compatible = "usb-nop-xceiv";
56*724ba675SRob Herring		reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; /* gpio_24 */
57*724ba675SRob Herring		vcc-supply = <&hsusb1_power>;
58*724ba675SRob Herring		#phy-cells = <0>;
59*724ba675SRob Herring	};
60*724ba675SRob Herring
61*724ba675SRob Herring	tfp410: encoder {
62*724ba675SRob Herring		compatible = "ti,tfp410";
63*724ba675SRob Herring		powerdown-gpios = <&gpio6 10 GPIO_ACTIVE_LOW>; /* gpio_170 */
64*724ba675SRob Herring
65*724ba675SRob Herring		ports {
66*724ba675SRob Herring			#address-cells = <1>;
67*724ba675SRob Herring			#size-cells = <0>;
68*724ba675SRob Herring
69*724ba675SRob Herring			port@0 {
70*724ba675SRob Herring				reg = <0>;
71*724ba675SRob Herring
72*724ba675SRob Herring				tfp410_in: endpoint {
73*724ba675SRob Herring					remote-endpoint = <&dpi_out>;
74*724ba675SRob Herring				};
75*724ba675SRob Herring			};
76*724ba675SRob Herring
77*724ba675SRob Herring			port@1 {
78*724ba675SRob Herring				reg = <1>;
79*724ba675SRob Herring
80*724ba675SRob Herring				tfp410_out: endpoint {
81*724ba675SRob Herring					remote-endpoint = <&dvi_connector_in>;
82*724ba675SRob Herring				};
83*724ba675SRob Herring			};
84*724ba675SRob Herring		};
85*724ba675SRob Herring	};
86*724ba675SRob Herring
87*724ba675SRob Herring	dvi0: connector {
88*724ba675SRob Herring		compatible = "dvi-connector";
89*724ba675SRob Herring		label = "dvi";
90*724ba675SRob Herring
91*724ba675SRob Herring		digital;
92*724ba675SRob Herring
93*724ba675SRob Herring		ddc-i2c-bus = <&i2c3>;
94*724ba675SRob Herring
95*724ba675SRob Herring		port {
96*724ba675SRob Herring			dvi_connector_in: endpoint {
97*724ba675SRob Herring				remote-endpoint = <&tfp410_out>;
98*724ba675SRob Herring			};
99*724ba675SRob Herring		};
100*724ba675SRob Herring	};
101*724ba675SRob Herring};
102*724ba675SRob Herring
103*724ba675SRob Herring&omap3_pmx_core {
104*724ba675SRob Herring	pinctrl-names = "default";
105*724ba675SRob Herring	pinctrl-0 = <
106*724ba675SRob Herring		&tfp410_pins
107*724ba675SRob Herring		&dss_dpi_pins
108*724ba675SRob Herring	>;
109*724ba675SRob Herring
110*724ba675SRob Herring	tfp410_pins: tfp410-pins {
111*724ba675SRob Herring		pinctrl-single,pins = <
112*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21c6, PIN_OUTPUT | MUX_MODE4)   /* hdq_sio.gpio_170 */
113*724ba675SRob Herring		>;
114*724ba675SRob Herring	};
115*724ba675SRob Herring
116*724ba675SRob Herring	dss_dpi_pins: dss-dpi-pins {
117*724ba675SRob Herring		pinctrl-single,pins = <
118*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
119*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   /* dss_hsync.dss_hsync */
120*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   /* dss_vsync.dss_vsync */
121*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)   /* dss_acbias.dss_acbias */
122*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   /* dss_data0.dss_data0 */
123*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   /* dss_data1.dss_data1 */
124*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   /* dss_data2.dss_data2 */
125*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   /* dss_data3.dss_data3 */
126*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   /* dss_data4.dss_data4 */
127*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   /* dss_data5.dss_data5 */
128*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)   /* dss_data6.dss_data6 */
129*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)   /* dss_data7.dss_data7 */
130*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)   /* dss_data8.dss_data8 */
131*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)   /* dss_data9.dss_data9 */
132*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)   /* dss_data10.dss_data10 */
133*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)   /* dss_data11.dss_data11 */
134*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)   /* dss_data12.dss_data12 */
135*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)   /* dss_data13.dss_data13 */
136*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)   /* dss_data14.dss_data14 */
137*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)   /* dss_data15.dss_data15 */
138*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)   /* dss_data16.dss_data16 */
139*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)   /* dss_data17.dss_data17 */
140*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)   /* dss_data18.dss_data18 */
141*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)   /* dss_data19.dss_data19 */
142*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)   /* dss_data20.dss_data20 */
143*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)   /* dss_data21.dss_data21 */
144*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)   /* dss_data22.dss_data22 */
145*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)   /* dss_data23.dss_data23 */
146*724ba675SRob Herring		>;
147*724ba675SRob Herring	};
148*724ba675SRob Herring
149*724ba675SRob Herring	uart2_pins: uart2-pins {
150*724ba675SRob Herring		pinctrl-single,pins = <
151*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0)	/* uart2_cts.uart2_cts */
152*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0)	/* uart2_rts .uart2_rts*/
153*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)	/* uart2_tx.uart2_tx */
154*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)	/* uart2_rx.uart2_rx */
155*724ba675SRob Herring		>;
156*724ba675SRob Herring	};
157*724ba675SRob Herring
158*724ba675SRob Herring	smsc9221_pins: smsc9221-pins {
159*724ba675SRob Herring		pinctrl-single,pins = <
160*724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT | MUX_MODE4)	/* mcspi1_cs2.gpio_176 */
161*724ba675SRob Herring		>;
162*724ba675SRob Herring	};
163*724ba675SRob Herring};
164*724ba675SRob Herring
165*724ba675SRob Herring&omap3_pmx_core2 {
166*724ba675SRob Herring	pinctrl-names = "default";
167*724ba675SRob Herring	pinctrl-0 = <
168*724ba675SRob Herring		&hsusbb1_pins
169*724ba675SRob Herring	>;
170*724ba675SRob Herring
171*724ba675SRob Herring	hsusbb1_pins: hsusbb1-pins {
172*724ba675SRob Herring		pinctrl-single,pins = <
173*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3)		/* etk_ctl.hsusb1_clk */
174*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3)		/* etk_clk.hsusb1_stp */
175*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25ec, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d8.hsusb1_dir */
176*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25ee, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d9.hsusb1_nxt */
177*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25dc, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d0.hsusb1_data0 */
178*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25de, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d1.hsusb1_data1 */
179*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25e0, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d2.hsusb1_data2 */
180*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25e2, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d3.hsusb1_data7 */
181*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d4.hsusb1_data4 */
182*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25e6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d5.hsusb1_data5 */
183*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25e8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d6.hsusb1_data6 */
184*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25ea, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d7.hsusb1_data3 */
185*724ba675SRob Herring		>;
186*724ba675SRob Herring	};
187*724ba675SRob Herring
188*724ba675SRob Herring	leds_pins: leds-pins {
189*724ba675SRob Herring		pinctrl-single,pins = <
190*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25f4, PIN_OUTPUT | MUX_MODE4) /* etk_d12.gpio_26 */
191*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25f6, PIN_OUTPUT | MUX_MODE4) /* etk_d13.gpio_27 */
192*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25f8, PIN_OUTPUT | MUX_MODE4) /* etk_d14.gpio_28 */
193*724ba675SRob Herring		>;
194*724ba675SRob Herring	};
195*724ba675SRob Herring
196*724ba675SRob Herring	mmc1_wp_pins: mmc1-cd-pins {
197*724ba675SRob Herring		pinctrl-single,pins = <
198*724ba675SRob Herring			OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT | MUX_MODE4)   /* etk_d15.gpio_29 */
199*724ba675SRob Herring		>;
200*724ba675SRob Herring	};
201*724ba675SRob Herring};
202*724ba675SRob Herring
203*724ba675SRob Herring&i2c3 {
204*724ba675SRob Herring	clock-frequency = <100000>;
205*724ba675SRob Herring
206*724ba675SRob Herring	/*
207*724ba675SRob Herring	 * Display monitor features are burnt in the EEPROM
208*724ba675SRob Herring	 * as EDID data.
209*724ba675SRob Herring	 */
210*724ba675SRob Herring	eeprom@50 {
211*724ba675SRob Herring		compatible = "ti,eeprom";
212*724ba675SRob Herring		reg = <0x50>;
213*724ba675SRob Herring	};
214*724ba675SRob Herring};
215*724ba675SRob Herring
216*724ba675SRob Herring&gpmc {
217*724ba675SRob Herring	ranges = <0 0 0x30000000 0x01000000>,	/* CS0: 16MB for NAND */
218*724ba675SRob Herring		 <5 0 0x2c000000 0x01000000>;	/* CS5: 16MB for ethernet */
219*724ba675SRob Herring
220*724ba675SRob Herring	ethernet@gpmc {
221*724ba675SRob Herring		pinctrl-names = "default";
222*724ba675SRob Herring		pinctrl-0 = <&smsc9221_pins>;
223*724ba675SRob Herring		reg = <5 0 0xff>;
224*724ba675SRob Herring		interrupt-parent = <&gpio6>;
225*724ba675SRob Herring		interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
226*724ba675SRob Herring	};
227*724ba675SRob Herring};
228*724ba675SRob Herring
229*724ba675SRob Herring&uart2 {
230*724ba675SRob Herring	pinctrl-names = "default";
231*724ba675SRob Herring	pinctrl-0 = <&uart2_pins>;
232*724ba675SRob Herring};
233*724ba675SRob Herring
234*724ba675SRob Herring&usbhshost {
235*724ba675SRob Herring	port1-mode = "ehci-phy";
236*724ba675SRob Herring};
237*724ba675SRob Herring
238*724ba675SRob Herring&usbhsehci {
239*724ba675SRob Herring	phys = <&hsusb1_phy>;
240*724ba675SRob Herring};
241*724ba675SRob Herring
242*724ba675SRob Herring&vpll2 {
243*724ba675SRob Herring	/* Needed for DSS */
244*724ba675SRob Herring	regulator-name = "vdds_dsi";
245*724ba675SRob Herring};
246*724ba675SRob Herring
247*724ba675SRob Herring&dss {
248*724ba675SRob Herring	status = "okay";
249*724ba675SRob Herring
250*724ba675SRob Herring	port {
251*724ba675SRob Herring		dpi_out: endpoint {
252*724ba675SRob Herring			remote-endpoint = <&tfp410_in>;
253*724ba675SRob Herring			data-lines = <24>;
254*724ba675SRob Herring		};
255*724ba675SRob Herring	};
256*724ba675SRob Herring};
257*724ba675SRob Herring
258*724ba675SRob Herring&mmc1 {
259*724ba675SRob Herring	pinctrl-0 = <&mmc1_pins &mmc1_wp_pins>;
260*724ba675SRob Herring	wp-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;	/* gpio_29 */
261*724ba675SRob Herring};
262