xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/omap3-overo-base.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2012 Florian Vaussard, EPFL Mobots group
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/*
7*f126890aSEmmanuel Vadot * The Gumstix Overo must be combined with an expansion board.
8*f126890aSEmmanuel Vadot */
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot	memory@0 {
13*f126890aSEmmanuel Vadot		device_type = "memory";
14*f126890aSEmmanuel Vadot		reg = <0 0>;
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	led-controller {
18*f126890aSEmmanuel Vadot		compatible = "pwm-leds";
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot		led-1 {
21*f126890aSEmmanuel Vadot			label = "overo:blue:COM";
22*f126890aSEmmanuel Vadot			pwms = <&twl_pwmled 1 7812500>;
23*f126890aSEmmanuel Vadot			max-brightness = <127>;
24*f126890aSEmmanuel Vadot			linux,default-trigger = "mmc0";
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	sound {
29*f126890aSEmmanuel Vadot		compatible = "ti,omap-twl4030";
30*f126890aSEmmanuel Vadot		ti,model = "overo";
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot		ti,mcbsp = <&mcbsp2>;
33*f126890aSEmmanuel Vadot	};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot	/* HS USB Port 2 Power */
36*f126890aSEmmanuel Vadot	hsusb2_power: hsusb2_power_reg {
37*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
38*f126890aSEmmanuel Vadot		regulator-name = "hsusb2_vbus";
39*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
40*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
41*f126890aSEmmanuel Vadot		gpio = <&gpio6 8 GPIO_ACTIVE_HIGH>;		/* gpio_168: vbus enable */
42*f126890aSEmmanuel Vadot		startup-delay-us = <70000>;
43*f126890aSEmmanuel Vadot		enable-active-high;
44*f126890aSEmmanuel Vadot	};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot	/* HS USB Host PHY on PORT 2 */
47*f126890aSEmmanuel Vadot	hsusb2_phy: hsusb2-phy-pins {
48*f126890aSEmmanuel Vadot		compatible = "usb-nop-xceiv";
49*f126890aSEmmanuel Vadot		reset-gpios = <&gpio6 23 GPIO_ACTIVE_LOW>;	/* gpio_183 */
50*f126890aSEmmanuel Vadot		vcc-supply = <&hsusb2_power>;
51*f126890aSEmmanuel Vadot		#phy-cells = <0>;
52*f126890aSEmmanuel Vadot	};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot	/* Regulator to trigger the nPoweron signal of the Wifi module */
55*f126890aSEmmanuel Vadot	w3cbw003c_npoweron: regulator-w3cbw003c-npoweron {
56*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
57*f126890aSEmmanuel Vadot		regulator-name = "regulator-w3cbw003c-npoweron";
58*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
59*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
60*f126890aSEmmanuel Vadot		gpio = <&gpio2 22 GPIO_ACTIVE_HIGH>;		/* gpio_54: nPoweron */
61*f126890aSEmmanuel Vadot		enable-active-high;
62*f126890aSEmmanuel Vadot	};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot	/* Regulator to trigger the nReset signal of the Wifi module */
65*f126890aSEmmanuel Vadot	w3cbw003c_wifi_nreset: regulator-w3cbw003c-wifi-nreset {
66*f126890aSEmmanuel Vadot		pinctrl-names = "default";
67*f126890aSEmmanuel Vadot		pinctrl-0 = <&w3cbw003c_pins &w3cbw003c_2_pins>;
68*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
69*f126890aSEmmanuel Vadot		regulator-name = "regulator-w3cbw003c-wifi-nreset";
70*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
71*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
72*f126890aSEmmanuel Vadot		gpio = <&gpio1 16 GPIO_ACTIVE_HIGH>;		/* gpio_16: WiFi nReset */
73*f126890aSEmmanuel Vadot		startup-delay-us = <10000>;
74*f126890aSEmmanuel Vadot	};
75*f126890aSEmmanuel Vadot};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot&omap3_pmx_core {
78*f126890aSEmmanuel Vadot	pinctrl-names = "default";
79*f126890aSEmmanuel Vadot	pinctrl-0 = <
80*f126890aSEmmanuel Vadot			&hsusb2_pins
81*f126890aSEmmanuel Vadot	>;
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot	uart2_pins: uart2-pins {
84*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
85*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1)	/* mcbsp3_dx.uart2_cts */
86*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1)	/* mcbsp3_dr.uart2_rts */
87*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1)	/* mcbsp3_clk.uart2_tx */
88*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1)	/* mcbsp3_fsx.uart2_rx */
89*f126890aSEmmanuel Vadot		>;
90*f126890aSEmmanuel Vadot	};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot	i2c1_pins: i2c1-pins {
93*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
94*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)		/* i2c1_scl.i2c1_scl */
95*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)		/* i2c1_sda.i2c1_sda */
96*f126890aSEmmanuel Vadot		>;
97*f126890aSEmmanuel Vadot	};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot	mmc1_pins: mmc1-pins {
100*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
101*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_clk.sdmmc1_clk */
102*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_cmd.sdmmc1_cmd */
103*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat0.sdmmc1_dat0 */
104*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat1.sdmmc1_dat1 */
105*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat2.sdmmc1_dat2 */
106*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc1_dat3.sdmmc1_dat3 */
107*f126890aSEmmanuel Vadot		>;
108*f126890aSEmmanuel Vadot	};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot	mmc2_pins: mmc2-pins {
111*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
112*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc2_clk.sdmmc2_clk */
113*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc2_cmd.sdmmc2_cmd */
114*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc2_dat0.sdmmc2_dat0 */
115*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc2_dat1.sdmmc2_dat1 */
116*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc2_dat2.sdmmc2_dat2 */
117*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0)		/* sdmmc2_dat3.sdmmc2_dat3 */
118*f126890aSEmmanuel Vadot		>;
119*f126890aSEmmanuel Vadot	};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot	/* WiFi/BT combo */
122*f126890aSEmmanuel Vadot	w3cbw003c_pins: w3cbw003c-pins {
123*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
124*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20b4, PIN_OUTPUT | MUX_MODE4)		/* gpmc_ncs3.gpio_54 */
125*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x219c, PIN_OUTPUT | MUX_MODE4)		/* uart3_rts_sd.gpio_164 */
126*f126890aSEmmanuel Vadot		>;
127*f126890aSEmmanuel Vadot	};
128*f126890aSEmmanuel Vadot
129*f126890aSEmmanuel Vadot	hsusb2_pins: hsusb2-pins {
130*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
131*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi1_cs3.hsusb2_data2 */
132*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_clk.hsusb2_data7 */
133*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_simo.hsusb2_data4 */
134*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_somi.hsusb2_data5 */
135*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs0.hsusb2_data6 */
136*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs1.hsusb2_data3 */
137*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21be, PIN_OUTPUT | MUX_MODE4)		/* i2c2_scl.gpio_168 */
138*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21c0, PIN_OUTPUT | MUX_MODE4)		/* i2c2_sda.gpio_183 */
139*f126890aSEmmanuel Vadot		>;
140*f126890aSEmmanuel Vadot	};
141*f126890aSEmmanuel Vadot};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot&i2c1 {
144*f126890aSEmmanuel Vadot	pinctrl-names = "default";
145*f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
146*f126890aSEmmanuel Vadot	clock-frequency = <2600000>;
147*f126890aSEmmanuel Vadot
148*f126890aSEmmanuel Vadot	twl: twl@48 {
149*f126890aSEmmanuel Vadot		reg = <0x48>;
150*f126890aSEmmanuel Vadot		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
151*f126890aSEmmanuel Vadot		interrupt-parent = <&intc>;
152*f126890aSEmmanuel Vadot
153*f126890aSEmmanuel Vadot		twl_audio: audio {
154*f126890aSEmmanuel Vadot			compatible = "ti,twl4030-audio";
155*f126890aSEmmanuel Vadot			codec {
156*f126890aSEmmanuel Vadot			};
157*f126890aSEmmanuel Vadot		};
158*f126890aSEmmanuel Vadot	};
159*f126890aSEmmanuel Vadot};
160*f126890aSEmmanuel Vadot
161*f126890aSEmmanuel Vadot#include "twl4030.dtsi"
162*f126890aSEmmanuel Vadot#include "twl4030_omap3.dtsi"
163*f126890aSEmmanuel Vadot
164*f126890aSEmmanuel Vadot/* i2c2 pins are used for gpio */
165*f126890aSEmmanuel Vadot&i2c2 {
166*f126890aSEmmanuel Vadot	status = "disabled";
167*f126890aSEmmanuel Vadot};
168*f126890aSEmmanuel Vadot
169*f126890aSEmmanuel Vadot/* on board microSD slot */
170*f126890aSEmmanuel Vadot&mmc1 {
171*f126890aSEmmanuel Vadot	pinctrl-names = "default";
172*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc1_pins>;
173*f126890aSEmmanuel Vadot	vmmc-supply = <&vmmc1>;
174*f126890aSEmmanuel Vadot	bus-width = <4>;
175*f126890aSEmmanuel Vadot};
176*f126890aSEmmanuel Vadot
177*f126890aSEmmanuel Vadot/* optional on board WiFi */
178*f126890aSEmmanuel Vadot&mmc2 {
179*f126890aSEmmanuel Vadot	pinctrl-names = "default";
180*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc2_pins>;
181*f126890aSEmmanuel Vadot	vmmc-supply = <&w3cbw003c_npoweron>;
182*f126890aSEmmanuel Vadot	vqmmc-supply = <&w3cbw003c_wifi_nreset>;
183*f126890aSEmmanuel Vadot	bus-width = <4>;
184*f126890aSEmmanuel Vadot	cap-sdio-irq;
185*f126890aSEmmanuel Vadot	non-removable;
186*f126890aSEmmanuel Vadot};
187*f126890aSEmmanuel Vadot
188*f126890aSEmmanuel Vadot&twl_gpio {
189*f126890aSEmmanuel Vadot	ti,use-leds;
190*f126890aSEmmanuel Vadot};
191*f126890aSEmmanuel Vadot
192*f126890aSEmmanuel Vadot&usb_otg_hs {
193*f126890aSEmmanuel Vadot	interface-type = <0>;
194*f126890aSEmmanuel Vadot	usb-phy = <&usb2_phy>;
195*f126890aSEmmanuel Vadot	phys = <&usb2_phy>;
196*f126890aSEmmanuel Vadot	phy-names = "usb2-phy";
197*f126890aSEmmanuel Vadot	mode = <3>;
198*f126890aSEmmanuel Vadot	power = <50>;
199*f126890aSEmmanuel Vadot};
200*f126890aSEmmanuel Vadot
201*f126890aSEmmanuel Vadot&usbhshost {
202*f126890aSEmmanuel Vadot	port2-mode = "ehci-phy";
203*f126890aSEmmanuel Vadot};
204*f126890aSEmmanuel Vadot
205*f126890aSEmmanuel Vadot&usbhsehci {
206*f126890aSEmmanuel Vadot	phys = <0 &hsusb2_phy>;
207*f126890aSEmmanuel Vadot};
208*f126890aSEmmanuel Vadot
209*f126890aSEmmanuel Vadot&uart2 {
210*f126890aSEmmanuel Vadot	pinctrl-names = "default";
211*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart2_pins>;
212*f126890aSEmmanuel Vadot};
213*f126890aSEmmanuel Vadot
214*f126890aSEmmanuel Vadot&mcbsp2 {
215*f126890aSEmmanuel Vadot	status = "okay";
216*f126890aSEmmanuel Vadot};
217*f126890aSEmmanuel Vadot
218*f126890aSEmmanuel Vadot&gpmc {
219*f126890aSEmmanuel Vadot	ranges = <0 0 0x30000000 0x1000000>,	/* CS0 */
220*f126890aSEmmanuel Vadot		 <4 0 0x2b000000 0x1000000>,	/* CS4 */
221*f126890aSEmmanuel Vadot		 <5 0 0x2c000000 0x1000000>;	/* CS5 */
222*f126890aSEmmanuel Vadot
223*f126890aSEmmanuel Vadot	nand@0,0 {
224*f126890aSEmmanuel Vadot		compatible = "ti,omap2-nand";
225*f126890aSEmmanuel Vadot		linux,mtd-name = "micron,mt29c4g96maz";
226*f126890aSEmmanuel Vadot		reg = <0 0 4>;	/* CS0, offset 0, IO size 4 */
227*f126890aSEmmanuel Vadot		interrupt-parent = <&gpmc>;
228*f126890aSEmmanuel Vadot		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
229*f126890aSEmmanuel Vadot			     <1 IRQ_TYPE_NONE>;	/* termcount */
230*f126890aSEmmanuel Vadot		nand-bus-width = <16>;
231*f126890aSEmmanuel Vadot		gpmc,device-width = <2>;
232*f126890aSEmmanuel Vadot		ti,nand-ecc-opt = "bch8";
233*f126890aSEmmanuel Vadot
234*f126890aSEmmanuel Vadot		gpmc,sync-clk-ps = <0>;
235*f126890aSEmmanuel Vadot		gpmc,cs-on-ns = <0>;
236*f126890aSEmmanuel Vadot		gpmc,cs-rd-off-ns = <44>;
237*f126890aSEmmanuel Vadot		gpmc,cs-wr-off-ns = <44>;
238*f126890aSEmmanuel Vadot		gpmc,adv-on-ns = <6>;
239*f126890aSEmmanuel Vadot		gpmc,adv-rd-off-ns = <34>;
240*f126890aSEmmanuel Vadot		gpmc,adv-wr-off-ns = <44>;
241*f126890aSEmmanuel Vadot		gpmc,we-off-ns = <40>;
242*f126890aSEmmanuel Vadot		gpmc,oe-off-ns = <54>;
243*f126890aSEmmanuel Vadot		gpmc,access-ns = <64>;
244*f126890aSEmmanuel Vadot		gpmc,rd-cycle-ns = <82>;
245*f126890aSEmmanuel Vadot		gpmc,wr-cycle-ns = <82>;
246*f126890aSEmmanuel Vadot		gpmc,wr-access-ns = <40>;
247*f126890aSEmmanuel Vadot		gpmc,wr-data-mux-bus-ns = <0>;
248*f126890aSEmmanuel Vadot
249*f126890aSEmmanuel Vadot		#address-cells = <1>;
250*f126890aSEmmanuel Vadot		#size-cells = <1>;
251*f126890aSEmmanuel Vadot
252*f126890aSEmmanuel Vadot		partition@0 {
253*f126890aSEmmanuel Vadot			label = "SPL";
254*f126890aSEmmanuel Vadot			reg = <0 0x80000>; /* 512KiB */
255*f126890aSEmmanuel Vadot		};
256*f126890aSEmmanuel Vadot		partition@80000 {
257*f126890aSEmmanuel Vadot			label = "U-Boot";
258*f126890aSEmmanuel Vadot			reg = <0x80000 0x1C0000>; /* 1792KiB */
259*f126890aSEmmanuel Vadot		};
260*f126890aSEmmanuel Vadot		partition@1c0000 {
261*f126890aSEmmanuel Vadot			label = "Environment";
262*f126890aSEmmanuel Vadot			reg = <0x240000 0x40000>; /* 256KiB */
263*f126890aSEmmanuel Vadot		};
264*f126890aSEmmanuel Vadot		partition@280000 {
265*f126890aSEmmanuel Vadot			label = "Kernel";
266*f126890aSEmmanuel Vadot			reg = <0x280000 0x800000>; /* 8192KiB */
267*f126890aSEmmanuel Vadot		};
268*f126890aSEmmanuel Vadot		partition@780000 {
269*f126890aSEmmanuel Vadot			label = "Filesystem";
270*f126890aSEmmanuel Vadot			reg = <0xA80000 0>;
271*f126890aSEmmanuel Vadot			/* HACK: MTDPART_SIZ_FULL=0 so fill to end */
272*f126890aSEmmanuel Vadot		};
273*f126890aSEmmanuel Vadot	};
274*f126890aSEmmanuel Vadot};
275