xref: /linux/arch/arm/boot/dts/ti/omap/omap3-cm-t3x.dtsi (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Common support for CompuLab CM-T3x CoMs
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring/ {
7724ba675SRob Herring
8724ba675SRob Herring	memory@80000000 {
9724ba675SRob Herring		device_type = "memory";
10724ba675SRob Herring		reg = <0x80000000 0x10000000>; /* 256 MB */
11724ba675SRob Herring	};
12724ba675SRob Herring
13724ba675SRob Herring	leds {
14724ba675SRob Herring		compatible = "gpio-leds";
15724ba675SRob Herring		pinctrl-names = "default";
16724ba675SRob Herring		pinctrl-0 = <&green_led_pins>;
17724ba675SRob Herring		ledb {
18724ba675SRob Herring			label = "cm-t3x:green";
19724ba675SRob Herring			gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>;  /* gpio186 */
20724ba675SRob Herring			linux,default-trigger = "heartbeat";
21724ba675SRob Herring		};
22724ba675SRob Herring	};
23724ba675SRob Herring
24724ba675SRob Herring	/* HS USB Port 1 Power */
25724ba675SRob Herring	hsusb1_power: hsusb1_power_reg {
26724ba675SRob Herring		compatible = "regulator-fixed";
27724ba675SRob Herring		regulator-name = "hsusb1_vbus";
28724ba675SRob Herring		regulator-min-microvolt = <3300000>;
29724ba675SRob Herring		regulator-max-microvolt = <3300000>;
30724ba675SRob Herring		startup-delay-us = <70000>;
31724ba675SRob Herring	};
32724ba675SRob Herring
33724ba675SRob Herring	/* HS USB Port 2 Power */
34724ba675SRob Herring	hsusb2_power: hsusb2_power_reg {
35724ba675SRob Herring		compatible = "regulator-fixed";
36724ba675SRob Herring		regulator-name = "hsusb2_vbus";
37724ba675SRob Herring		regulator-min-microvolt = <3300000>;
38724ba675SRob Herring		regulator-max-microvolt = <3300000>;
39724ba675SRob Herring		startup-delay-us = <70000>;
40724ba675SRob Herring	};
41724ba675SRob Herring
42724ba675SRob Herring	/* HS USB Host PHY on PORT 1 */
43724ba675SRob Herring	hsusb1_phy: hsusb1_phy {
44724ba675SRob Herring		compatible = "usb-nop-xceiv";
45724ba675SRob Herring		vcc-supply = <&hsusb1_power>;
46724ba675SRob Herring		#phy-cells = <0>;
47724ba675SRob Herring	};
48724ba675SRob Herring
49724ba675SRob Herring	/* HS USB Host PHY on PORT 2 */
50724ba675SRob Herring	hsusb2_phy: hsusb2-phy-pins {
51724ba675SRob Herring		compatible = "usb-nop-xceiv";
52724ba675SRob Herring		vcc-supply = <&hsusb2_power>;
53724ba675SRob Herring		#phy-cells = <0>;
54724ba675SRob Herring	};
55724ba675SRob Herring
56724ba675SRob Herring	ads7846reg: ads7846-reg {
57724ba675SRob Herring		compatible = "regulator-fixed";
58724ba675SRob Herring		regulator-name = "ads7846-reg";
59724ba675SRob Herring		regulator-min-microvolt = <3300000>;
60724ba675SRob Herring		regulator-max-microvolt = <3300000>;
61724ba675SRob Herring	};
62724ba675SRob Herring
63724ba675SRob Herring	tv0: svideo-connector {
64724ba675SRob Herring		compatible = "svideo-connector";
65724ba675SRob Herring		label = "tv";
66724ba675SRob Herring
67724ba675SRob Herring		port {
68724ba675SRob Herring			tv_connector_in: endpoint {
69724ba675SRob Herring				remote-endpoint = <&venc_out>;
70724ba675SRob Herring			};
71724ba675SRob Herring		};
72724ba675SRob Herring	};
73724ba675SRob Herring};
74724ba675SRob Herring
75724ba675SRob Herring&omap3_pmx_core {
76724ba675SRob Herring
77724ba675SRob Herring	uart3_pins: uart3-pins {
78724ba675SRob Herring		pinctrl-single,pins = <
79724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT  | MUX_MODE0)	/* uart3_rx_irrx.uart3_rx_irrx */
80724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)	/* uart3_tx_irtx.uart3_tx_irtx */
81724ba675SRob Herring		>;
82724ba675SRob Herring	};
83724ba675SRob Herring
84724ba675SRob Herring	mmc1_pins: mmc1-pins {
85724ba675SRob Herring		pinctrl-single,pins = <
86724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
87724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
88724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
89724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
90724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
91724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
92724ba675SRob Herring		>;
93724ba675SRob Herring	};
94724ba675SRob Herring
95724ba675SRob Herring	green_led_pins: green-led-pins {
96724ba675SRob Herring		pinctrl-single,pins = <
97724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21e2, PIN_OUTPUT | MUX_MODE4)	/* sys_clkout2.gpio_186 */
98724ba675SRob Herring		>;
99724ba675SRob Herring	};
100724ba675SRob Herring
101724ba675SRob Herring	dss_dpi_pins_common: dss-dpi-common-pins {
102724ba675SRob Herring		pinctrl-single,pins = <
103724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)	/* dss_pclk.dss_pclk */
104724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)	/* dss_hsync.dss_hsync */
105724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)	/* dss_vsync.dss_vsync */
106724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)	/* dss_acbias.dss_acbias */
107724ba675SRob Herring
108724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)	/* dss_data6.dss_data6 */
109724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)	/* dss_data7.dss_data7 */
110724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)	/* dss_data8.dss_data8 */
111724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)	/* dss_data9.dss_data9 */
112724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)	/* dss_data10.dss_data10 */
113724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)	/* dss_data11.dss_data11 */
114724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)	/* dss_data12.dss_data12 */
115724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)	/* dss_data13.dss_data13 */
116724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)	/* dss_data14.dss_data14 */
117724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)	/* dss_data15.dss_data15 */
118724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)	/* dss_data16.dss_data16 */
119724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)	/* dss_data17.dss_data17 */
120724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)	/* dss_data18.dss_data18 */
121724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)	/* dss_data19.dss_data19 */
122724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)	/* dss_data20.dss_data20 */
123724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)	/* dss_data21.dss_data21 */
124724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)	/* dss_data22.dss_data22 */
125724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)	/* dss_data23.dss_data23 */
126724ba675SRob Herring		>;
127724ba675SRob Herring	};
128724ba675SRob Herring
129724ba675SRob Herring	dss_dpi_pins_cm_t35x: dss-dpi-cm-t35x-pins {
130724ba675SRob Herring		pinctrl-single,pins = <
131724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)	/* dss_data0.dss_data0 */
132724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)	/* dss_data1.dss_data1 */
133724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)	/* dss_data2.dss_data2 */
134724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)	/* dss_data3.dss_data3 */
135724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)	/* dss_data4.dss_data4 */
136724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)	/* dss_data5.dss_data5 */
137724ba675SRob Herring		>;
138724ba675SRob Herring	};
139724ba675SRob Herring
140724ba675SRob Herring	ads7846_pins: ads7846-pins {
141724ba675SRob Herring		pinctrl-single,pins = <
142724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x20ba, PIN_INPUT_PULLUP | MUX_MODE4)	/* gpmc_ncs6.gpio_57 */
143724ba675SRob Herring		>;
144724ba675SRob Herring	};
145724ba675SRob Herring
146724ba675SRob Herring	mcspi1_pins: mcspi1-pins {
147724ba675SRob Herring		pinctrl-single,pins = <
148724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0)	/* mcspi1_clk */
149724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21ca, PIN_INPUT | MUX_MODE0)	/* mcspi1_simo */
150724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT | MUX_MODE0)	/* mcspi1_somi */
151724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcspi1_cs0 */
152724ba675SRob Herring		>;
153724ba675SRob Herring	};
154724ba675SRob Herring
155724ba675SRob Herring	i2c1_pins: i2c1-pins {
156724ba675SRob Herring		pinctrl-single,pins = <
157724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_scl */
158724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_sda */
159724ba675SRob Herring		>;
160724ba675SRob Herring	};
161724ba675SRob Herring
162724ba675SRob Herring	mcbsp2_pins: mcbsp2-pins {
163724ba675SRob Herring		pinctrl-single,pins = <
164724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx */
165724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)	/* mcbsp2_clkx */
166724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)	/* mcbsp2_dr */
167724ba675SRob Herring			OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)	/* mcbsp2_dx */
168724ba675SRob Herring		>;
169724ba675SRob Herring	};
170724ba675SRob Herring};
171724ba675SRob Herring
172724ba675SRob Herring&uart3 {
173724ba675SRob Herring	pinctrl-names = "default";
174724ba675SRob Herring	pinctrl-0 = <&uart3_pins>;
175724ba675SRob Herring};
176724ba675SRob Herring
177724ba675SRob Herring&mmc1 {
178724ba675SRob Herring	pinctrl-names = "default";
179724ba675SRob Herring	pinctrl-0 = <&mmc1_pins>;
180724ba675SRob Herring	bus-width = <4>;
181724ba675SRob Herring};
182724ba675SRob Herring
183724ba675SRob Herring&mmc3 {
184724ba675SRob Herring	status = "disabled";
185724ba675SRob Herring};
186724ba675SRob Herring
187724ba675SRob Herring&i2c1 {
188724ba675SRob Herring	pinctrl-names = "default";
189724ba675SRob Herring	pinctrl-0 = <&i2c1_pins>;
190724ba675SRob Herring
191724ba675SRob Herring	clock-frequency = <400000>;
192724ba675SRob Herring
193724ba675SRob Herring	at24@50 {
194724ba675SRob Herring		compatible = "atmel,24c02";
195724ba675SRob Herring		pagesize = <16>;
196724ba675SRob Herring		reg = <0x50>;
197724ba675SRob Herring	};
198724ba675SRob Herring};
199724ba675SRob Herring
200724ba675SRob Herring&i2c3 {
201724ba675SRob Herring	clock-frequency = <400000>;
202724ba675SRob Herring};
203724ba675SRob Herring
204724ba675SRob Herring&usbhshost {
205724ba675SRob Herring	port1-mode = "ehci-phy";
206724ba675SRob Herring	port2-mode = "ehci-phy";
207724ba675SRob Herring};
208724ba675SRob Herring
209724ba675SRob Herring&usbhsehci {
210724ba675SRob Herring	phys = <&hsusb1_phy &hsusb2_phy>;
211724ba675SRob Herring};
212724ba675SRob Herring
213724ba675SRob Herring&mcspi1 {
214724ba675SRob Herring	pinctrl-names = "default";
215724ba675SRob Herring	pinctrl-0 = <&mcspi1_pins>;
216724ba675SRob Herring
217724ba675SRob Herring	/* touch controller */
218724ba675SRob Herring	ads7846@0 {
219724ba675SRob Herring		pinctrl-names = "default";
220724ba675SRob Herring		pinctrl-0 = <&ads7846_pins>;
221724ba675SRob Herring
222724ba675SRob Herring		compatible = "ti,ads7846";
223724ba675SRob Herring		vcc-supply = <&ads7846reg>;
224724ba675SRob Herring
225724ba675SRob Herring		reg = <0>;			/* CS0 */
226724ba675SRob Herring		spi-max-frequency = <1500000>;
227724ba675SRob Herring
228724ba675SRob Herring		interrupt-parent = <&gpio2>;
229724ba675SRob Herring		interrupts = <25 0>;		/* gpio_57 */
230*6c1561fbSLinus Torvalds		pendown-gpio = <&gpio2 25 GPIO_ACTIVE_LOW>;
231724ba675SRob Herring
232724ba675SRob Herring		ti,x-min = /bits/ 16 <0x0>;
233724ba675SRob Herring		ti,x-max = /bits/ 16 <0x0fff>;
234724ba675SRob Herring		ti,y-min = /bits/ 16 <0x0>;
235724ba675SRob Herring		ti,y-max = /bits/ 16 <0x0fff>;
236724ba675SRob Herring
237724ba675SRob Herring		ti,x-plate-ohms = /bits/ 16 <180>;
238724ba675SRob Herring		ti,pressure-max = /bits/ 16 <255>;
239724ba675SRob Herring
240724ba675SRob Herring		ti,debounce-max = /bits/ 16 <30>;
241724ba675SRob Herring		ti,debounce-tol = /bits/ 16 <10>;
242724ba675SRob Herring		ti,debounce-rep = /bits/ 16 <1>;
243724ba675SRob Herring
244724ba675SRob Herring		wakeup-source;
245724ba675SRob Herring	};
246724ba675SRob Herring};
247724ba675SRob Herring
248724ba675SRob Herring&venc {
249724ba675SRob Herring	status = "okay";
250724ba675SRob Herring
251724ba675SRob Herring	port {
252724ba675SRob Herring		venc_out: endpoint {
253724ba675SRob Herring			remote-endpoint = <&tv_connector_in>;
254724ba675SRob Herring			ti,channels = <2>;
255724ba675SRob Herring		};
256724ba675SRob Herring	};
257724ba675SRob Herring};
258724ba675SRob Herring
259724ba675SRob Herring&mcbsp2 {
260724ba675SRob Herring	status = "okay";
261724ba675SRob Herring
262724ba675SRob Herring	pinctrl-names = "default";
263724ba675SRob Herring	pinctrl-0 = <&mcbsp2_pins>;
264724ba675SRob Herring};
265724ba675SRob Herring
266724ba675SRob Herring&gpmc {
267724ba675SRob Herring	ranges = <0 0 0x30000000 0x01000000>;	/* CS0: 16MB for NAND */
268724ba675SRob Herring
269724ba675SRob Herring	nand@0,0 {
270724ba675SRob Herring		compatible = "ti,omap2-nand";
271724ba675SRob Herring		reg = <0 0 4>;	/* CS0, offset 0, IO size 4 */
272724ba675SRob Herring		interrupt-parent = <&gpmc>;
273724ba675SRob Herring		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
274724ba675SRob Herring			     <1 IRQ_TYPE_NONE>;	/* termcount */
275724ba675SRob Herring		nand-bus-width = <8>;
276724ba675SRob Herring		gpmc,device-width = <1>;
277724ba675SRob Herring		ti,nand-ecc-opt = "sw";
278724ba675SRob Herring
279724ba675SRob Herring		gpmc,cs-on-ns = <0>;
280724ba675SRob Herring		gpmc,cs-rd-off-ns = <120>;
281724ba675SRob Herring		gpmc,cs-wr-off-ns = <120>;
282724ba675SRob Herring
283724ba675SRob Herring		gpmc,adv-on-ns = <0>;
284724ba675SRob Herring		gpmc,adv-rd-off-ns = <120>;
285724ba675SRob Herring		gpmc,adv-wr-off-ns = <120>;
286724ba675SRob Herring
287724ba675SRob Herring		gpmc,we-on-ns = <6>;
288724ba675SRob Herring		gpmc,we-off-ns = <90>;
289724ba675SRob Herring
290724ba675SRob Herring		gpmc,oe-on-ns = <6>;
291724ba675SRob Herring		gpmc,oe-off-ns = <90>;
292724ba675SRob Herring
293724ba675SRob Herring		gpmc,page-burst-access-ns = <6>;
294724ba675SRob Herring		gpmc,access-ns = <72>;
295724ba675SRob Herring		gpmc,cycle2cycle-delay-ns = <60>;
296724ba675SRob Herring
297724ba675SRob Herring		gpmc,rd-cycle-ns = <120>;
298724ba675SRob Herring		gpmc,wr-cycle-ns = <120>;
299724ba675SRob Herring		gpmc,wr-access-ns = <186>;
300724ba675SRob Herring		gpmc,wr-data-mux-bus-ns = <90>;
301724ba675SRob Herring
302724ba675SRob Herring		#address-cells = <1>;
303724ba675SRob Herring		#size-cells = <1>;
304724ba675SRob Herring
305724ba675SRob Herring		partition@0 {
306724ba675SRob Herring			label = "xloader";
307724ba675SRob Herring			reg = <0 0x80000>;
308724ba675SRob Herring		};
309724ba675SRob Herring		partition@80000 {
310724ba675SRob Herring			label = "uboot";
311724ba675SRob Herring			reg = <0x80000 0x1e0000>;
312724ba675SRob Herring		};
313724ba675SRob Herring		partition@260000 {
314724ba675SRob Herring			label = "uboot environment";
315724ba675SRob Herring			reg = <0x260000 0x40000>;
316724ba675SRob Herring		};
317724ba675SRob Herring		partition@2a0000 {
318724ba675SRob Herring			label = "linux";
319724ba675SRob Herring			reg = <0x2a0000 0x400000>;
320724ba675SRob Herring		};
321724ba675SRob Herring		partition@6a0000 {
322724ba675SRob Herring			label = "rootfs";
323724ba675SRob Herring			reg = <0x6a0000 0x1f880000>;
324724ba675SRob Herring		};
325724ba675SRob Herring	};
326724ba675SRob Herring};
327