xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/omap3-zoom3.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot/dts-v1/;
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include "omap36xx.dtsi"
8*f126890aSEmmanuel Vadot#include "omap-zoom-common.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "TI Zoom3";
12*f126890aSEmmanuel Vadot	compatible = "ti,omap3-zoom3", "ti,omap3630", "ti,omap3";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	cpus {
15*f126890aSEmmanuel Vadot		cpu@0 {
16*f126890aSEmmanuel Vadot			cpu0-supply = <&vcc>;
17*f126890aSEmmanuel Vadot		};
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	memory@80000000 {
21*f126890aSEmmanuel Vadot		device_type = "memory";
22*f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>; /* 512 MB */
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	vddvario: regulator-vddvario {
26*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
27*f126890aSEmmanuel Vadot		regulator-name = "vddvario";
28*f126890aSEmmanuel Vadot		regulator-always-on;
29*f126890aSEmmanuel Vadot	};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot	vdd33a: regulator-vdd33a {
32*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
33*f126890aSEmmanuel Vadot		regulator-name = "vdd33a";
34*f126890aSEmmanuel Vadot		regulator-always-on;
35*f126890aSEmmanuel Vadot	};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot	wl12xx_vmmc: wl12xx_vmmc {
38*f126890aSEmmanuel Vadot		pinctrl-names = "default";
39*f126890aSEmmanuel Vadot		pinctrl-0 = <&wl12xx_gpio>;
40*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
41*f126890aSEmmanuel Vadot		regulator-name = "vwl1271";
42*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
43*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
44*f126890aSEmmanuel Vadot		gpio = <&gpio4 5 GPIO_ACTIVE_HIGH>;	/* gpio101 */
45*f126890aSEmmanuel Vadot		startup-delay-us = <70000>;
46*f126890aSEmmanuel Vadot		enable-active-high;
47*f126890aSEmmanuel Vadot	};
48*f126890aSEmmanuel Vadot};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot&omap3_pmx_core {
51*f126890aSEmmanuel Vadot	/* REVISIT: twl gpio0 is mmc0_cd */
52*f126890aSEmmanuel Vadot	mmc1_pins: mmc1-pins {
53*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
54*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT_PULLUP | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
55*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2146, PIN_OUTPUT_PULLUP | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
56*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
57*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
58*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
59*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
60*f126890aSEmmanuel Vadot		>;
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot	mmc2_pins: mmc2-pins {
64*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
65*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc2_clk.sdmmc2_clk */
66*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc2_cmd.sdmmc2_cmd */
67*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat0.sdmmc2_dat0 */
68*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat1.sdmmc2_dat1 */
69*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat2.sdmmc2_dat2 */
70*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat3.sdmmc2_dat3 */
71*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat4.sdmmc2_dat4 */
72*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat5.sdmmc2_dat5 */
73*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat6.sdmmc2_dat6 */
74*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0)		/* sdmmc2_dat7.sdmmc2_dat7 */
75*f126890aSEmmanuel Vadot		>;
76*f126890aSEmmanuel Vadot	};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot	mmc3_pins: mmc3-pins {
79*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
80*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2198, PIN_INPUT | MUX_MODE4)	/* mcbsp1_clkx.gpio_162 WLAN IRQ */
81*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3)	/* mcspi1_cs1.sdmmc3_cmd */
82*f126890aSEmmanuel Vadot		>;
83*f126890aSEmmanuel Vadot	};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot	uart1_pins: uart1-pins {
86*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
87*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2180, PIN_INPUT | MUX_MODE0)		/* uart1_cts.uart1_cts */
88*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x217e, PIN_OUTPUT | MUX_MODE0)		/* uart1_rts.uart1_rts */
89*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2182, WAKEUP_EN | PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
90*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0)		/* uart1_tx.uart1_tx */
91*f126890aSEmmanuel Vadot		>;
92*f126890aSEmmanuel Vadot	};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot	uart2_pins: uart2-pins {
95*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
96*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart2_cts.uart2_cts */
97*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0)		/* uart2_rts.uart2_rts */
98*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)		/* uart2_rx.uart2_rx */
99*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)		/* uart2_tx.uart2_tx */
100*f126890aSEmmanuel Vadot		>;
101*f126890aSEmmanuel Vadot	};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot	uart3_pins: uart3-pins {
104*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
105*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* uart3_cts_rctx.uart3_cts_rctx */
106*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x219c, PIN_OUTPUT | MUX_MODE0)		/* uart3_rts_sd.uart3_rts_sd */
107*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)		/* uart3_rx_irrx.uart3_rx_irrx */
108*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)		/* uart3_tx_irtx.uart3_tx_irtx */
109*f126890aSEmmanuel Vadot		>;
110*f126890aSEmmanuel Vadot	};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot	/* wl12xx GPIO output for WLAN_EN */
113*f126890aSEmmanuel Vadot	wl12xx_gpio: wl12xx-gpio-pins {
114*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
115*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x211a, PIN_OUTPUT| MUX_MODE4)		/* cam_d2.gpio_101 */
116*f126890aSEmmanuel Vadot		>;
117*f126890aSEmmanuel Vadot	};
118*f126890aSEmmanuel Vadot};
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot&omap3_pmx_core2 {
121*f126890aSEmmanuel Vadot	mmc3_2_pins: mmc3-2-pins {
122*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
123*f126890aSEmmanuel Vadot			OMAP3630_CORE2_IOPAD(0x25d8, PIN_INPUT_PULLUP | MUX_MODE2)	/* etk_clk.sdmmc3_clk */
124*f126890aSEmmanuel Vadot			OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT_PULLUP | MUX_MODE2)	/* etk_d4.sdmmc3_dat0 */
125*f126890aSEmmanuel Vadot			OMAP3630_CORE2_IOPAD(0x25e6, PIN_INPUT_PULLUP | MUX_MODE2)	/* etk_d5.sdmmc3_dat1 */
126*f126890aSEmmanuel Vadot			OMAP3630_CORE2_IOPAD(0x25e8, PIN_INPUT_PULLUP | MUX_MODE2)	/* etk_d6.sdmmc3_dat2 */
127*f126890aSEmmanuel Vadot			OMAP3630_CORE2_IOPAD(0x25e2, PIN_INPUT_PULLUP | MUX_MODE2)	/* etk_d3.sdmmc3_dat3 */
128*f126890aSEmmanuel Vadot		>;
129*f126890aSEmmanuel Vadot	};
130*f126890aSEmmanuel Vadot};
131*f126890aSEmmanuel Vadot
132*f126890aSEmmanuel Vadot&omap3_pmx_wkup {
133*f126890aSEmmanuel Vadot	wlan_host_wkup: wlan-host-wkup-pins {
134*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
135*f126890aSEmmanuel Vadot			OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT_PULLUP | MUX_MODE4)	/* sys_clkout1.gpio_10 WLAN_HOST_WKUP */
136*f126890aSEmmanuel Vadot		>;
137*f126890aSEmmanuel Vadot	};
138*f126890aSEmmanuel Vadot};
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot&i2c1 {
141*f126890aSEmmanuel Vadot	clock-frequency = <2600000>;
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot	twl: twl@48 {
144*f126890aSEmmanuel Vadot		reg = <0x48>;
145*f126890aSEmmanuel Vadot		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
146*f126890aSEmmanuel Vadot		interrupt-parent = <&intc>;
147*f126890aSEmmanuel Vadot	};
148*f126890aSEmmanuel Vadot};
149*f126890aSEmmanuel Vadot
150*f126890aSEmmanuel Vadot#include "twl4030.dtsi"
151*f126890aSEmmanuel Vadot
152*f126890aSEmmanuel Vadot&i2c2 {
153*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
154*f126890aSEmmanuel Vadot};
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot&i2c3 {
157*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
158*f126890aSEmmanuel Vadot
159*f126890aSEmmanuel Vadot	/*
160*f126890aSEmmanuel Vadot	 * TVP5146 Video decoder-in for analog input support.
161*f126890aSEmmanuel Vadot	 */
162*f126890aSEmmanuel Vadot	tvp5146@5c {
163*f126890aSEmmanuel Vadot		compatible = "ti,tvp5146m2";
164*f126890aSEmmanuel Vadot		reg = <0x5c>;
165*f126890aSEmmanuel Vadot	};
166*f126890aSEmmanuel Vadot};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot&twl_gpio {
169*f126890aSEmmanuel Vadot	ti,use-leds;
170*f126890aSEmmanuel Vadot};
171*f126890aSEmmanuel Vadot
172*f126890aSEmmanuel Vadot&mmc1 {
173*f126890aSEmmanuel Vadot	vmmc-supply = <&vmmc1>;
174*f126890aSEmmanuel Vadot	vqmmc-supply = <&vsim>;
175*f126890aSEmmanuel Vadot	bus-width = <4>;
176*f126890aSEmmanuel Vadot	pinctrl-names = "default";
177*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc1_pins>;
178*f126890aSEmmanuel Vadot};
179*f126890aSEmmanuel Vadot/*
180*f126890aSEmmanuel Vadot&mmc2 {
181*f126890aSEmmanuel Vadot	vmmc-supply = <&vmmc2>;
182*f126890aSEmmanuel Vadot	ti,non-removable;
183*f126890aSEmmanuel Vadot	bus-width = <8>;
184*f126890aSEmmanuel Vadot	pinctrl-names = "default";
185*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc2_pins>;
186*f126890aSEmmanuel Vadot};
187*f126890aSEmmanuel Vadot*/
188*f126890aSEmmanuel Vadot&mmc3 {
189*f126890aSEmmanuel Vadot	vmmc-supply = <&wl12xx_vmmc>;
190*f126890aSEmmanuel Vadot	non-removable;
191*f126890aSEmmanuel Vadot	bus-width = <4>;
192*f126890aSEmmanuel Vadot	cap-power-off-card;
193*f126890aSEmmanuel Vadot	pinctrl-names = "default";
194*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc3_pins &mmc3_2_pins>;
195*f126890aSEmmanuel Vadot
196*f126890aSEmmanuel Vadot	#address-cells = <1>;
197*f126890aSEmmanuel Vadot	#size-cells = <0>;
198*f126890aSEmmanuel Vadot	wlcore: wlcore@2 {
199*f126890aSEmmanuel Vadot		compatible = "ti,wl1271";
200*f126890aSEmmanuel Vadot		reg = <2>;
201*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio6>;
202*f126890aSEmmanuel Vadot		interrupts = <2 IRQ_TYPE_EDGE_RISING>; /* gpio 162 */
203*f126890aSEmmanuel Vadot		ref-clock-frequency = <26000000>;
204*f126890aSEmmanuel Vadot	};
205*f126890aSEmmanuel Vadot};
206*f126890aSEmmanuel Vadot
207*f126890aSEmmanuel Vadot&uart1 {
208*f126890aSEmmanuel Vadot	pinctrl-names = "default";
209*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart1_pins>;
210*f126890aSEmmanuel Vadot};
211*f126890aSEmmanuel Vadot
212*f126890aSEmmanuel Vadot&uart2 {
213*f126890aSEmmanuel Vadot	pinctrl-names = "default";
214*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart2_pins>;
215*f126890aSEmmanuel Vadot};
216*f126890aSEmmanuel Vadot
217*f126890aSEmmanuel Vadot&uart3 {
218*f126890aSEmmanuel Vadot	pinctrl-names = "default";
219*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart3_pins>;
220*f126890aSEmmanuel Vadot};
221*f126890aSEmmanuel Vadot
222*f126890aSEmmanuel Vadot&uart4 {
223*f126890aSEmmanuel Vadot	status = "disabled";
224*f126890aSEmmanuel Vadot};
225*f126890aSEmmanuel Vadot
226*f126890aSEmmanuel Vadot&usb_otg_hs {
227*f126890aSEmmanuel Vadot	interface-type = <0>;
228*f126890aSEmmanuel Vadot	usb-phy = <&usb2_phy>;
229*f126890aSEmmanuel Vadot	mode = <3>;
230*f126890aSEmmanuel Vadot	power = <50>;
231*f126890aSEmmanuel Vadot};
232