xref: /linux/arch/arm/boot/dts/ti/omap/logicpd-som-lv.dtsi (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0-only
2
3#include <dt-bindings/input/input.h>
4
5/ {
6	cpus {
7		cpu@0 {
8			cpu0-supply = <&vcc>;
9		};
10	};
11
12	memory@80000000 {
13		device_type = "memory";
14		reg = <0x80000000 0>;
15	};
16
17	wl12xx_vmmc: wl12xx_vmmc {
18		compatible = "regulator-fixed";
19		regulator-name = "vwl1271";
20		regulator-min-microvolt = <1800000>;
21		regulator-max-microvolt = <1800000>;
22		gpio = <&gpio1 3 0>;   /* gpio_3 */
23		startup-delay-us = <70000>;
24		enable-active-high;
25		vin-supply = <&vaux3>;
26	};
27
28	/* HS USB Host PHY on PORT 1 */
29	hsusb2_phy: hsusb2_phy {
30		pinctrl-names = "default";
31		pinctrl-0 = <&hsusb2_reset_pin>;
32		compatible = "usb-nop-xceiv";
33		reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; /* gpio_4 */
34		#phy-cells = <0>;
35	};
36
37	/* fixed 26MHz oscillator */
38	hfclk_26m: oscillator {
39		#clock-cells = <0>;
40		compatible = "fixed-clock";
41		clock-frequency = <26000000>;
42	};
43};
44
45&gpmc {
46	ranges = <0 0 0x30000000 0x1000000>;	/* CS0: 16MB for NAND */
47
48	nand@0,0 {
49		compatible = "ti,omap2-nand";
50		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
51		interrupt-parent = <&gpmc>;
52		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
53			     <1 IRQ_TYPE_NONE>;	/* termcount */
54		nand-bus-width = <16>;
55		ti,nand-ecc-opt = "bch8";
56		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
57		gpmc,sync-clk-ps = <0>;
58		gpmc,cs-on-ns = <0>;
59		gpmc,cs-rd-off-ns = <44>;
60		gpmc,cs-wr-off-ns = <44>;
61		gpmc,adv-on-ns = <6>;
62		gpmc,adv-rd-off-ns = <34>;
63		gpmc,adv-wr-off-ns = <44>;
64		gpmc,we-off-ns = <40>;
65		gpmc,oe-off-ns = <54>;
66		gpmc,access-ns = <64>;
67		gpmc,rd-cycle-ns = <82>;
68		gpmc,wr-cycle-ns = <82>;
69		gpmc,wr-access-ns = <40>;
70		gpmc,wr-data-mux-bus-ns = <0>;
71		gpmc,device-width = <2>;
72		#address-cells = <1>;
73		#size-cells = <1>;
74	};
75};
76
77&i2c1 {
78	pinctrl-names = "default";
79	pinctrl-0 = <&i2c1_pins>;
80	clock-frequency = <2600000>;
81
82	twl: twl@48 {
83		reg = <0x48>;
84		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
85		interrupt-parent = <&intc>;
86		clocks = <&hfclk_26m>;
87		clock-names = "fck";
88		twl_audio: audio {
89			compatible = "ti,twl4030-audio";
90			codec {
91				ti,hs_extmute_gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
92			};
93		};
94	};
95};
96
97&i2c2 {
98	pinctrl-names = "default";
99	pinctrl-0 = <&i2c2_pins>;
100	clock-frequency = <400000>;
101};
102
103&i2c3 {
104	pinctrl-names = "default";
105	pinctrl-0 = <&i2c3_pins>;
106	clock-frequency = <400000>;
107
108	touchscreen: tsc2004@48 {
109		compatible = "ti,tsc2004";
110		reg = <0x48>;
111		vio-supply = <&vaux1>;
112		pinctrl-names = "default";
113		pinctrl-0 = <&tsc2004_pins>;
114		interrupts-extended = <&gpio5 25 IRQ_TYPE_EDGE_RISING>; /* gpio 153 */
115
116		touchscreen-fuzz-x = <4>;
117		touchscreen-fuzz-y = <7>;
118		touchscreen-fuzz-pressure = <2>;
119		touchscreen-size-x = <4096>;
120		touchscreen-size-y = <4096>;
121		touchscreen-max-pressure = <2048>;
122
123		ti,x-plate-ohms = <280>;
124		ti,esd-recovery-timeout-ms = <8000>;
125	};
126};
127
128&mmc3 {
129	interrupts-extended = <&intc 94 &omap3_pmx_core 0x136>;
130	pinctrl-0 = <&mmc3_pins &wl127x_gpio>;
131	pinctrl-names = "default";
132	vmmc-supply = <&wl12xx_vmmc>;
133	non-removable;
134	bus-width = <4>;
135	cap-power-off-card;
136	#address-cells = <1>;
137	#size-cells = <0>;
138	wlcore: wlcore@2 {
139		compatible = "ti,wl1273";
140		reg = <2>;
141		interrupt-parent = <&gpio1>;
142		interrupts = <2 IRQ_TYPE_EDGE_RISING>; /* gpio 2 */
143		ref-clock-frequency = <26000000>;
144	};
145};
146
147&usbhshost {
148	pinctrl-names = "default";
149	pinctrl-0 = <&hsusb2_pins>;
150	port2-mode = "ehci-phy";
151};
152
153&usbhsehci {
154	phys = <0 &hsusb2_phy>;
155};
156
157&omap3_pmx_core {
158
159	mmc3_pins: mm3-pins {
160		pinctrl-single,pins = <
161			OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3)	/* sdmmc2_dat4.sdmmc3_dat0 */
162			OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3)	/* sdmmc2_dat5.sdmmc3_dat1 */
163			OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3)	/* sdmmc2_dat6.sdmmc3_dat2 */
164			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3)	/* sdmmc2_dat6.sdmmc3_dat3 */
165			OMAP3_CORE1_IOPAD(0x21d0, PIN_INPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.sdmmc3_cmd */
166			OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT_PULLUP | MUX_MODE3)	/* mcspi1_cs2.sdmmc_clk */
167		>;
168	};
169	mcbsp2_pins: mcbsp2-pins {
170		pinctrl-single,pins = <
171			OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)        /* mcbsp2_fsx */
172			OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)        /* mcbsp2_clkx */
173			OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)        /* mcbsp2_dr */
174			OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)       /* mcbsp2_dx */
175		>;
176	};
177	uart2_pins: uart2-pins {
178		pinctrl-single,pins = <
179			OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0)	/* uart2_cts.uart2_cts */
180			OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0)	/* uart2_rts .uart2_rts*/
181			OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0)	/* uart2_tx.uart2_tx */
182			OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0)	/* uart2_rx.uart2_rx */
183			OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4)	/* GPIO_162,BT_EN */
184		>;
185	};
186	mcspi1_pins: mcspi1-pins {
187		pinctrl-single,pins = <
188			OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0)        /* mcspi1_clk.mcspi1_clk */
189			OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0)       /* mcspi1_simo.mcspi1_simo */
190			OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
191			OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0)       /* mcspi1_cs0.mcspi1_cs0 */
192		>;
193	};
194
195	hsusb2_pins: hsusb2-pins {
196		pinctrl-single,pins = <
197			OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi1_cs3.hsusb2_data2 */
198			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_clk.hsusb2_data7 */
199			OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_simo.hsusb2_data4 */
200			OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_somi.hsusb2_data5 */
201			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_cs0.hsusb2_data6 */
202			OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)       /* mcspi2_cs1.hsusb2_data3 */
203		>;
204	};
205
206	hsusb_otg_pins: hsusb-otg-pins {
207		pinctrl-single,pins = <
208			OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0)	/* hsusb0_clk.hsusb0_clk */
209			OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0)	/* hsusb0_stp.hsusb0_stp */
210			OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0)	/* hsusb0_dir.hsusb0_dir */
211			OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0)	/* hsusb0_nxt.hsusb0_nxt */
212			OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0)	/* hsusb0_data0.hsusb0_data0 */
213			OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0)	/* hsusb0_data1.hsusb0_data1 */
214			OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0)	/* hsusb0_data2.hsusb0_data2 */
215			OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0)	/* hsusb0_data3.hsusb0_data3 */
216			OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0)	/* hsusb0_data4.hsusb0_data4 */
217			OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0)	/* hsusb0_data5.hsusb0_data5 */
218			OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0)	/* hsusb0_data6.hsusb0_data6 */
219			OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0)	/* hsusb0_data7.hsusb0_data7 */
220		>;
221	};
222
223	i2c1_pins: i2c1-pins {
224		pinctrl-single,pins = <
225			OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)        /* i2c1_scl.i2c1_scl */
226			OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)        /* i2c1_sda.i2c1_sda */
227			OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4)        /* gpmc_ncs6.gpio_57 */
228		>;
229	};
230
231	i2c2_pins: i2c2-pins {
232		pinctrl-single,pins = <
233			OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0)	/* i2c2_scl */
234			OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0)	/* i2c2_sda */
235		>;
236	};
237
238	i2c3_pins: i2c3-pins {
239		pinctrl-single,pins = <
240			OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0)	/* i2c3_scl */
241			OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0)	/* i2c3_sda */
242		>;
243	};
244
245	tsc2004_pins: tsc2004-pins {
246		pinctrl-single,pins = <
247			OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE4)	/* mcbsp4_dr.gpio_153 */
248		>;
249	};
250};
251
252&omap3_pmx_wkup {
253
254	hsusb2_reset_pin: hsusb1-reset-pins {
255		pinctrl-single,pins = <
256			OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4)	/* sys_boot2.gpio_4 */
257		>;
258	};
259	wl127x_gpio: wl127x-gpio-pins {
260		pinctrl-single,pins = <
261			OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT | MUX_MODE4)		/* sys_boot0.gpio_2 */
262			OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4)	/* sys_boot1.gpio_3 */
263		>;
264	};
265};
266
267&uart2 {
268	interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
269	pinctrl-names = "default";
270	pinctrl-0 = <&uart2_pins>;
271};
272
273&mcspi1 {
274	pinctrl-names = "default";
275	pinctrl-0 = <&mcspi1_pins>;
276};
277
278#include "twl4030.dtsi"
279#include "twl4030_omap3.dtsi"
280
281&vaux3 {
282	regulator-min-microvolt = <2800000>;
283	regulator-max-microvolt = <2800000>;
284};
285
286&twl {
287	twl_power: power {
288		compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
289		ti,use_poweroff;
290	};
291};
292
293&twl_gpio {
294	ti,use-leds;
295};
296