xref: /linux/arch/arm/boot/dts/ti/omap/omap4-var-som-om44.dtsi (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
4*724ba675SRob Herring * Copyright (C) 2012 Variscite Ltd. - https://www.variscite.com
5*724ba675SRob Herring */
6*724ba675SRob Herring#include "omap4460.dtsi"
7*724ba675SRob Herring#include "omap4-mcpdm.dtsi"
8*724ba675SRob Herring
9*724ba675SRob Herring/ {
10*724ba675SRob Herring	model = "Variscite VAR-SOM-OM44";
11*724ba675SRob Herring	compatible = "variscite,var-som-om44", "ti,omap4460", "ti,omap4";
12*724ba675SRob Herring
13*724ba675SRob Herring	memory@80000000 {
14*724ba675SRob Herring		device_type = "memory";
15*724ba675SRob Herring		reg = <0x80000000 0x40000000>; /* 1 GB */
16*724ba675SRob Herring	};
17*724ba675SRob Herring
18*724ba675SRob Herring	sound: sound {
19*724ba675SRob Herring		compatible = "ti,abe-twl6040";
20*724ba675SRob Herring		ti,model = "VAR-SOM-OM44";
21*724ba675SRob Herring
22*724ba675SRob Herring		ti,mclk-freq = <38400000>;
23*724ba675SRob Herring		ti,mcpdm = <&mcpdm>;
24*724ba675SRob Herring		ti,twl6040 = <&twl6040>;
25*724ba675SRob Herring
26*724ba675SRob Herring		/* Audio routing */
27*724ba675SRob Herring		ti,audio-routing =
28*724ba675SRob Herring			"Headset Stereophone", "HSOL",
29*724ba675SRob Herring			"Headset Stereophone", "HSOR",
30*724ba675SRob Herring			"AFML", "Line In",
31*724ba675SRob Herring			"AFMR", "Line In";
32*724ba675SRob Herring	};
33*724ba675SRob Herring
34*724ba675SRob Herring	/* HS USB Host PHY on PORT 1 */
35*724ba675SRob Herring	hsusb1_phy: hsusb1_phy {
36*724ba675SRob Herring		compatible = "usb-nop-xceiv";
37*724ba675SRob Herring		pinctrl-names = "default";
38*724ba675SRob Herring		pinctrl-0 = <
39*724ba675SRob Herring			&hsusbb1_phy_clk_pins
40*724ba675SRob Herring			&hsusbb1_phy_rst_pins
41*724ba675SRob Herring		>;
42*724ba675SRob Herring
43*724ba675SRob Herring		reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; /* gpio 177 */
44*724ba675SRob Herring		vcc-supply = <&vbat>;
45*724ba675SRob Herring		#phy-cells = <0>;
46*724ba675SRob Herring
47*724ba675SRob Herring		clocks = <&auxclk3_ck>;
48*724ba675SRob Herring		clock-names = "main_clk";
49*724ba675SRob Herring		clock-frequency = <19200000>;
50*724ba675SRob Herring	};
51*724ba675SRob Herring
52*724ba675SRob Herring	vbat: fixedregulator-vbat {
53*724ba675SRob Herring		compatible = "regulator-fixed";
54*724ba675SRob Herring		regulator-name = "VBAT";
55*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
56*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
57*724ba675SRob Herring		regulator-always-on;
58*724ba675SRob Herring		regulator-boot-on;
59*724ba675SRob Herring	};
60*724ba675SRob Herring};
61*724ba675SRob Herring
62*724ba675SRob Herring&omap4_pmx_core {
63*724ba675SRob Herring	pinctrl-names = "default";
64*724ba675SRob Herring	pinctrl-0 = <
65*724ba675SRob Herring			&hsusbb1_pins
66*724ba675SRob Herring	>;
67*724ba675SRob Herring
68*724ba675SRob Herring	twl6040_pins: twl6040-pins {
69*724ba675SRob Herring		pinctrl-single,pins = <
70*724ba675SRob Herring			OMAP4_IOPAD(0x19c, PIN_OUTPUT | MUX_MODE3)		/* fref_clk2_out.gpio_182 */
71*724ba675SRob Herring			OMAP4_IOPAD(0x1a0, PIN_INPUT | MUX_MODE0)		/* sys_nirq2.sys_nirq2 */
72*724ba675SRob Herring		>;
73*724ba675SRob Herring	};
74*724ba675SRob Herring
75*724ba675SRob Herring	tsc2004_pins: tsc2004-pins {
76*724ba675SRob Herring		pinctrl-single,pins = <
77*724ba675SRob Herring			OMAP4_IOPAD(0x090, PIN_INPUT | MUX_MODE3)		/* gpmc_ncs4.gpio_101 (irq) */
78*724ba675SRob Herring			OMAP4_IOPAD(0x092, PIN_OUTPUT | MUX_MODE3)		/* gpmc_ncs5.gpio_102 (rst) */
79*724ba675SRob Herring		>;
80*724ba675SRob Herring	};
81*724ba675SRob Herring
82*724ba675SRob Herring	uart3_pins: uart3-pins {
83*724ba675SRob Herring		pinctrl-single,pins = <
84*724ba675SRob Herring			OMAP4_IOPAD(0x140, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart3_cts_rctx.uart3_cts_rctx */
85*724ba675SRob Herring			OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE0)		/* uart3_rts_sd.uart3_rts_sd */
86*724ba675SRob Herring			OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0)		/* uart3_rx_irrx.uart3_rx_irrx */
87*724ba675SRob Herring			OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0)		/* uart3_tx_irtx.uart3_tx_irtx */
88*724ba675SRob Herring		>;
89*724ba675SRob Herring	};
90*724ba675SRob Herring
91*724ba675SRob Herring	hsusbb1_pins: hsusbb1-pins {
92*724ba675SRob Herring		pinctrl-single,pins = <
93*724ba675SRob Herring			OMAP4_IOPAD(0x0c2, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
94*724ba675SRob Herring			OMAP4_IOPAD(0x0c4, PIN_OUTPUT | MUX_MODE4)		/* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
95*724ba675SRob Herring			OMAP4_IOPAD(0x0c6, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
96*724ba675SRob Herring			OMAP4_IOPAD(0x0c8, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
97*724ba675SRob Herring			OMAP4_IOPAD(0x0ca, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
98*724ba675SRob Herring			OMAP4_IOPAD(0x0cc, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
99*724ba675SRob Herring			OMAP4_IOPAD(0x0ce, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
100*724ba675SRob Herring			OMAP4_IOPAD(0x0d0, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
101*724ba675SRob Herring			OMAP4_IOPAD(0x0d2, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
102*724ba675SRob Herring			OMAP4_IOPAD(0x0d4, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
103*724ba675SRob Herring			OMAP4_IOPAD(0x0d6, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
104*724ba675SRob Herring			OMAP4_IOPAD(0x0d8, PIN_INPUT_PULLDOWN | MUX_MODE4)	/* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
105*724ba675SRob Herring		>;
106*724ba675SRob Herring	};
107*724ba675SRob Herring
108*724ba675SRob Herring	hsusbb1_phy_rst_pins: hsusbb1-phy-rst-pins {
109*724ba675SRob Herring		pinctrl-single,pins = <
110*724ba675SRob Herring			OMAP4_IOPAD(0x18c, PIN_OUTPUT | MUX_MODE3)		/* kpd_row2.gpio_177 */
111*724ba675SRob Herring		>;
112*724ba675SRob Herring	};
113*724ba675SRob Herring
114*724ba675SRob Herring	i2c1_pins: i2c1-pins {
115*724ba675SRob Herring		pinctrl-single,pins = <
116*724ba675SRob Herring			OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_scl */
117*724ba675SRob Herring			OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_sda */
118*724ba675SRob Herring		>;
119*724ba675SRob Herring	};
120*724ba675SRob Herring
121*724ba675SRob Herring	i2c3_pins: i2c3-pins {
122*724ba675SRob Herring		pinctrl-single,pins = <
123*724ba675SRob Herring			OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_scl */
124*724ba675SRob Herring			OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_sda */
125*724ba675SRob Herring		>;
126*724ba675SRob Herring	};
127*724ba675SRob Herring
128*724ba675SRob Herring	mmc1_pins: mmc1-pins {
129*724ba675SRob Herring		pinctrl-single,pins = <
130*724ba675SRob Herring			OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
131*724ba675SRob Herring			OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
132*724ba675SRob Herring			OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
133*724ba675SRob Herring			OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
134*724ba675SRob Herring			OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
135*724ba675SRob Herring			OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
136*724ba675SRob Herring		>;
137*724ba675SRob Herring	};
138*724ba675SRob Herring};
139*724ba675SRob Herring
140*724ba675SRob Herring&omap4_pmx_wkup {
141*724ba675SRob Herring	pinctrl-names = "default";
142*724ba675SRob Herring	pinctrl-0 = <
143*724ba675SRob Herring		&hsusbb1_hub_rst_pins
144*724ba675SRob Herring		&lan7500_rst_pins
145*724ba675SRob Herring	>;
146*724ba675SRob Herring
147*724ba675SRob Herring	hsusbb1_phy_clk_pins: hsusbb1-phy-clk-pins {
148*724ba675SRob Herring		pinctrl-single,pins = <
149*724ba675SRob Herring			OMAP4_IOPAD(0x058, PIN_OUTPUT | MUX_MODE0)	/* fref_clk3_out */
150*724ba675SRob Herring		>;
151*724ba675SRob Herring	};
152*724ba675SRob Herring
153*724ba675SRob Herring	hsusbb1_hub_rst_pins: hsusbb1-hub-rst-pins {
154*724ba675SRob Herring		pinctrl-single,pins = <
155*724ba675SRob Herring			OMAP4_IOPAD(0x042, PIN_OUTPUT | MUX_MODE3)	/* gpio_wk1 */
156*724ba675SRob Herring		>;
157*724ba675SRob Herring	};
158*724ba675SRob Herring
159*724ba675SRob Herring	lan7500_rst_pins: lan7500-rst-pins {
160*724ba675SRob Herring		pinctrl-single,pins = <
161*724ba675SRob Herring			OMAP4_IOPAD(0x040, PIN_OUTPUT | MUX_MODE3)	/* gpio_wk0 */
162*724ba675SRob Herring		>;
163*724ba675SRob Herring	};
164*724ba675SRob Herring};
165*724ba675SRob Herring
166*724ba675SRob Herring&i2c1 {
167*724ba675SRob Herring	pinctrl-names = "default";
168*724ba675SRob Herring	pinctrl-0 = <&i2c1_pins>;
169*724ba675SRob Herring	status = "okay";
170*724ba675SRob Herring
171*724ba675SRob Herring	clock-frequency = <400000>;
172*724ba675SRob Herring
173*724ba675SRob Herring	twl: twl@48 {
174*724ba675SRob Herring		reg = <0x48>;
175*724ba675SRob Herring		/* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
176*724ba675SRob Herring		interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
177*724ba675SRob Herring	};
178*724ba675SRob Herring
179*724ba675SRob Herring	twl6040: twl@4b {
180*724ba675SRob Herring		compatible = "ti,twl6040";
181*724ba675SRob Herring		#clock-cells = <0>;
182*724ba675SRob Herring		reg = <0x4b>;
183*724ba675SRob Herring
184*724ba675SRob Herring		pinctrl-names = "default";
185*724ba675SRob Herring		pinctrl-0 = <&twl6040_pins>;
186*724ba675SRob Herring
187*724ba675SRob Herring		/* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
188*724ba675SRob Herring		interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
189*724ba675SRob Herring		ti,audpwron-gpio = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio 182 */
190*724ba675SRob Herring
191*724ba675SRob Herring		vio-supply = <&v1v8>;
192*724ba675SRob Herring		v2v1-supply = <&v2v1>;
193*724ba675SRob Herring		enable-active-high;
194*724ba675SRob Herring	};
195*724ba675SRob Herring};
196*724ba675SRob Herring
197*724ba675SRob Herring#include "twl6030.dtsi"
198*724ba675SRob Herring#include "twl6030_omap4.dtsi"
199*724ba675SRob Herring
200*724ba675SRob Herring&vusim {
201*724ba675SRob Herring	regulator-min-microvolt = <3000000>;
202*724ba675SRob Herring	regulator-max-microvolt = <3000000>;
203*724ba675SRob Herring	regulator-always-on;
204*724ba675SRob Herring};
205*724ba675SRob Herring
206*724ba675SRob Herring&i2c2 {
207*724ba675SRob Herring	status = "disabled";
208*724ba675SRob Herring};
209*724ba675SRob Herring
210*724ba675SRob Herring&i2c3 {
211*724ba675SRob Herring	pinctrl-names = "default";
212*724ba675SRob Herring	pinctrl-0 = <&i2c3_pins>;
213*724ba675SRob Herring	status = "okay";
214*724ba675SRob Herring
215*724ba675SRob Herring	clock-frequency = <400000>;
216*724ba675SRob Herring
217*724ba675SRob Herring	touchscreen: tsc2004@48 {
218*724ba675SRob Herring		compatible = "ti,tsc2004";
219*724ba675SRob Herring		reg = <0x48>;
220*724ba675SRob Herring		pinctrl-names = "default";
221*724ba675SRob Herring		pinctrl-0 = <&tsc2004_pins>;
222*724ba675SRob Herring		interrupt-parent = <&gpio4>;
223*724ba675SRob Herring		interrupts = <5 IRQ_TYPE_LEVEL_LOW>; /* gpio 101 */
224*724ba675SRob Herring		status = "disabled";
225*724ba675SRob Herring	};
226*724ba675SRob Herring
227*724ba675SRob Herring	tmp105@49 {
228*724ba675SRob Herring		compatible = "ti,tmp105";
229*724ba675SRob Herring		reg = <0x49>;
230*724ba675SRob Herring	};
231*724ba675SRob Herring
232*724ba675SRob Herring	eeprom@50 {
233*724ba675SRob Herring		compatible = "microchip,24c32", "atmel,24c32";
234*724ba675SRob Herring		reg = <0x50>;
235*724ba675SRob Herring	};
236*724ba675SRob Herring};
237*724ba675SRob Herring
238*724ba675SRob Herring&i2c4 {
239*724ba675SRob Herring	status = "disabled";
240*724ba675SRob Herring};
241*724ba675SRob Herring
242*724ba675SRob Herring&gpmc {
243*724ba675SRob Herring	status = "disabled";
244*724ba675SRob Herring};
245*724ba675SRob Herring
246*724ba675SRob Herring&mcspi1 {
247*724ba675SRob Herring	status = "disabled";
248*724ba675SRob Herring};
249*724ba675SRob Herring
250*724ba675SRob Herring&mcspi2 {
251*724ba675SRob Herring	status = "disabled";
252*724ba675SRob Herring};
253*724ba675SRob Herring
254*724ba675SRob Herring&mcspi3 {
255*724ba675SRob Herring	status = "disabled";
256*724ba675SRob Herring};
257*724ba675SRob Herring
258*724ba675SRob Herring&mcspi4 {
259*724ba675SRob Herring	status = "disabled";
260*724ba675SRob Herring};
261*724ba675SRob Herring
262*724ba675SRob Herring&mmc1 {
263*724ba675SRob Herring	pinctrl-names = "default";
264*724ba675SRob Herring	pinctrl-0 = <&mmc1_pins>;
265*724ba675SRob Herring	vmmc-supply = <&vmmc>;
266*724ba675SRob Herring	bus-width = <4>;
267*724ba675SRob Herring	ti,non-removable;
268*724ba675SRob Herring	status = "okay";
269*724ba675SRob Herring};
270*724ba675SRob Herring
271*724ba675SRob Herring&mmc2 {
272*724ba675SRob Herring	status = "disabled";
273*724ba675SRob Herring};
274*724ba675SRob Herring
275*724ba675SRob Herring&mmc3 {
276*724ba675SRob Herring	status = "disabled";
277*724ba675SRob Herring};
278*724ba675SRob Herring
279*724ba675SRob Herring&mmc4 {
280*724ba675SRob Herring	status = "disabled";
281*724ba675SRob Herring};
282*724ba675SRob Herring
283*724ba675SRob Herring&mmc5 {
284*724ba675SRob Herring	status = "disabled";
285*724ba675SRob Herring};
286*724ba675SRob Herring
287*724ba675SRob Herring&uart1 {
288*724ba675SRob Herring	status = "disabled";
289*724ba675SRob Herring};
290*724ba675SRob Herring
291*724ba675SRob Herring&uart2 {
292*724ba675SRob Herring	status = "disabled";
293*724ba675SRob Herring};
294*724ba675SRob Herring
295*724ba675SRob Herring&uart3 {
296*724ba675SRob Herring	pinctrl-names = "default";
297*724ba675SRob Herring	pinctrl-0 = <&uart3_pins>;
298*724ba675SRob Herring	status = "okay";
299*724ba675SRob Herring};
300*724ba675SRob Herring
301*724ba675SRob Herring&uart4 {
302*724ba675SRob Herring	status = "disabled";
303*724ba675SRob Herring};
304*724ba675SRob Herring
305*724ba675SRob Herring&keypad {
306*724ba675SRob Herring	status = "disabled";
307*724ba675SRob Herring};
308*724ba675SRob Herring
309*724ba675SRob Herring&twl_usb_comparator {
310*724ba675SRob Herring	usb-supply = <&vusb>;
311*724ba675SRob Herring};
312*724ba675SRob Herring
313*724ba675SRob Herring&usb_otg_hs {
314*724ba675SRob Herring	interface-type = <1>;
315*724ba675SRob Herring	mode = <3>;
316*724ba675SRob Herring	power = <50>;
317*724ba675SRob Herring};
318*724ba675SRob Herring
319*724ba675SRob Herring&usbhshost {
320*724ba675SRob Herring	port1-mode = "ehci-phy";
321*724ba675SRob Herring};
322*724ba675SRob Herring
323*724ba675SRob Herring&usbhsehci {
324*724ba675SRob Herring	phys = <&hsusb1_phy>;
325*724ba675SRob Herring};
326