]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/boot/dts/omap5-board-common.dtsi
ARM: dts: omap: Add missing #phy-cells to usb-nop-xceiv
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / omap5-board-common.dtsi
CommitLineData
ee9a97db
TL
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8#include "omap5.dtsi"
9#include <dt-bindings/interrupt-controller/irq.h>
10#include <dt-bindings/interrupt-controller/arm-gic.h>
11
12/ {
13 aliases {
14 display0 = &hdmi0;
15 };
16
6b4e9418
NM
17 vmain: fixedregulator-vmain {
18 compatible = "regulator-fixed";
19 regulator-name = "vmain";
20 regulator-min-microvolt = <5000000>;
21 regulator-max-microvolt = <5000000>;
22 };
23
24 vsys_cobra: fixedregulator-vsys_cobra {
25 compatible = "regulator-fixed";
26 regulator-name = "vsys_cobra";
27 vin-supply = <&vmain>;
28 regulator-min-microvolt = <5000000>;
29 regulator-max-microvolt = <5000000>;
30 };
31
32 vdds_1v8_main: fixedregulator-vdds_1v8_main {
33 compatible = "regulator-fixed";
34 regulator-name = "vdds_1v8_main";
35 vin-supply = <&smps7_reg>;
36 regulator-min-microvolt = <1800000>;
37 regulator-max-microvolt = <1800000>;
38 };
39
ee9a97db
TL
40 vmmcsd_fixed: fixedregulator-mmcsd {
41 compatible = "regulator-fixed";
42 regulator-name = "vmmcsd_fixed";
43 regulator-min-microvolt = <3000000>;
44 regulator-max-microvolt = <3000000>;
45 };
46
47 mmc3_pwrseq: sdhci0_pwrseq {
48 compatible = "mmc-pwrseq-simple";
49 clocks = <&clk32kgaudio>;
50 clock-names = "ext_clock";
51 };
52
53 vmmcsdio_fixed: fixedregulator-mmcsdio {
54 compatible = "regulator-fixed";
55 regulator-name = "vmmcsdio_fixed";
56 regulator-min-microvolt = <1800000>;
57 regulator-max-microvolt = <1800000>;
58 gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>; /* gpio140 WLAN_EN */
59 enable-active-high;
60 startup-delay-us = <70000>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&wlan_pins>;
63 };
64
65 /* HS USB Host PHY on PORT 2 */
66 hsusb2_phy: hsusb2_phy {
67 compatible = "usb-nop-xceiv";
68 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
69 clocks = <&auxclk1_ck>;
70 clock-names = "main_clk";
71 clock-frequency = <19200000>;
f568f6f5 72 #phy-cells = <0>;
ee9a97db
TL
73 };
74
75 /* HS USB Host PHY on PORT 3 */
76 hsusb3_phy: hsusb3_phy {
77 compatible = "usb-nop-xceiv";
78 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
f568f6f5 79 #phy-cells = <0>;
ee9a97db
TL
80 };
81
e6db7f1a 82 tpd12s015: encoder {
ee9a97db
TL
83 compatible = "ti,tpd12s015";
84
85 pinctrl-names = "default";
86 pinctrl-0 = <&tpd12s015_pins>;
87
88 /* gpios defined in the board specific dts */
89
90 ports {
91 #address-cells = <1>;
92 #size-cells = <0>;
93
94 port@0 {
95 reg = <0>;
96
e6db7f1a 97 tpd12s015_in: endpoint {
ee9a97db
TL
98 remote-endpoint = <&hdmi_out>;
99 };
100 };
101
102 port@1 {
103 reg = <1>;
104
e6db7f1a 105 tpd12s015_out: endpoint {
ee9a97db
TL
106 remote-endpoint = <&hdmi_connector_in>;
107 };
108 };
109 };
110 };
111
e6db7f1a 112 hdmi0: connector {
ee9a97db
TL
113 compatible = "hdmi-connector";
114 label = "hdmi";
115
116 type = "b";
117
118 port {
119 hdmi_connector_in: endpoint {
120 remote-endpoint = <&tpd12s015_out>;
121 };
122 };
123 };
124
125 sound: sound {
126 compatible = "ti,abe-twl6040";
127 ti,model = "omap5-uevm";
128
0b68f1be 129 ti,jack-detection;
ee9a97db
TL
130 ti,mclk-freq = <19200000>;
131
132 ti,mcpdm = <&mcpdm>;
133
134 ti,twl6040 = <&twl6040>;
135
136 /* Audio routing */
137 ti,audio-routing =
138 "Headset Stereophone", "HSOL",
139 "Headset Stereophone", "HSOR",
140 "Line Out", "AUXL",
141 "Line Out", "AUXR",
142 "HSMIC", "Headset Mic",
143 "Headset Mic", "Headset Mic Bias",
144 "AFML", "Line In",
145 "AFMR", "Line In";
146 };
147};
148
af756bbc
TL
149&gpio8 {
150 /* TI trees use GPIO instead of msecure, see also muxing */
151 p234 {
152 gpio-hog;
153 gpios = <10 GPIO_ACTIVE_HIGH>;
154 output-high;
155 line-name = "gpio8_234/msecure";
156 };
157};
158
ee9a97db
TL
159&omap5_pmx_core {
160 pinctrl-names = "default";
161 pinctrl-0 = <
162 &usbhost_pins
163 &led_gpio_pins
164 >;
165
166 twl6040_pins: pinmux_twl6040_pins {
167 pinctrl-single,pins = <
2fcf367a 168 OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
ee9a97db
TL
169 >;
170 };
171
172 mcpdm_pins: pinmux_mcpdm_pins {
173 pinctrl-single,pins = <
2fcf367a
JMC
174 OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
175 OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
176 OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
177 OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
178 OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
ee9a97db
TL
179 >;
180 };
181
182 mcbsp1_pins: pinmux_mcbsp1_pins {
183 pinctrl-single,pins = <
2fcf367a
JMC
184 OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
185 OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
186 OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
187 OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
ee9a97db
TL
188 >;
189 };
190
191 mcbsp2_pins: pinmux_mcbsp2_pins {
192 pinctrl-single,pins = <
2fcf367a
JMC
193 OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
194 OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
195 OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
196 OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
ee9a97db
TL
197 >;
198 };
199
200 i2c1_pins: pinmux_i2c1_pins {
201 pinctrl-single,pins = <
2fcf367a
JMC
202 OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
203 OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
ee9a97db
TL
204 >;
205 };
206
207 mcspi2_pins: pinmux_mcspi2_pins {
208 pinctrl-single,pins = <
2fcf367a
JMC
209 OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
210 OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
211 OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
212 OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
ee9a97db
TL
213 >;
214 };
215
216 mcspi3_pins: pinmux_mcspi3_pins {
217 pinctrl-single,pins = <
2fcf367a
JMC
218 OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
219 OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
220 OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
221 OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
ee9a97db
TL
222 >;
223 };
224
225 mmc3_pins: pinmux_mmc3_pins {
226 pinctrl-single,pins = <
227 OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
228 OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
229 OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
230 OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
231 OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
232 OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
233 >;
234 };
235
236 wlan_pins: pinmux_wlan_pins {
237 pinctrl-single,pins = <
238 OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
239 >;
240 };
241
af756bbc
TL
242 /* TI trees use GPIO mode; msecure mode does not work reliably? */
243 palmas_msecure_pins: palmas_msecure_pins {
244 pinctrl-single,pins = <
245 OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
246 >;
247 };
248
ee9a97db
TL
249 usbhost_pins: pinmux_usbhost_pins {
250 pinctrl-single,pins = <
2fcf367a
JMC
251 OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
252 OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
ee9a97db 253
2fcf367a
JMC
254 OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
255 OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
ee9a97db 256
2fcf367a
JMC
257 OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
258 OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
ee9a97db
TL
259 >;
260 };
261
262 led_gpio_pins: pinmux_led_gpio_pins {
263 pinctrl-single,pins = <
2fcf367a 264 OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
ee9a97db
TL
265 >;
266 };
267
268 uart1_pins: pinmux_uart1_pins {
269 pinctrl-single,pins = <
2fcf367a
JMC
270 OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
271 OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
272 OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
273 OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
ee9a97db
TL
274 >;
275 };
276
277 uart3_pins: pinmux_uart3_pins {
278 pinctrl-single,pins = <
2fcf367a
JMC
279 OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
280 OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
ee9a97db
TL
281 >;
282 };
283
284 uart5_pins: pinmux_uart5_pins {
285 pinctrl-single,pins = <
2fcf367a
JMC
286 OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
287 OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
288 OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
289 OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
ee9a97db
TL
290 >;
291 };
292
293 dss_hdmi_pins: pinmux_dss_hdmi_pins {
294 pinctrl-single,pins = <
3a8ed20d 295 OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
2fcf367a
JMC
296 OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */
297 OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */
ee9a97db
TL
298 >;
299 };
300
301 tpd12s015_pins: pinmux_tpd12s015_pins {
302 pinctrl-single,pins = <
2fcf367a 303 OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
ee9a97db
TL
304 >;
305 };
306};
307
308&omap5_pmx_wkup {
309 pinctrl-names = "default";
310 pinctrl-0 = <
311 &usbhost_wkup_pins
312 >;
313
af756bbc
TL
314 palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
315 pinctrl-single,pins = <
316 OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1 */
317 >;
318 };
319
ee9a97db
TL
320 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
321 pinctrl-single,pins = <
2fcf367a 322 OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
ee9a97db
TL
323 >;
324 };
325
326 wlcore_irq_pin: pinmux_wlcore_irq_pin {
327 pinctrl-single,pins = <
08f9268b 328 OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
ee9a97db
TL
329 >;
330 };
331};
332
333&mmc1 {
334 vmmc-supply = <&ldo9_reg>;
335 bus-width = <4>;
336};
337
338&mmc2 {
339 vmmc-supply = <&vmmcsd_fixed>;
340 bus-width = <8>;
341 ti,non-removable;
342};
343
344&mmc3 {
345 vmmc-supply = <&vmmcsdio_fixed>;
346 mmc-pwrseq = <&mmc3_pwrseq>;
347 bus-width = <4>;
348 non-removable;
349 cap-power-off-card;
350 pinctrl-names = "default";
08f9268b
TL
351 pinctrl-0 = <&mmc3_pins>;
352 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
353 &omap5_pmx_core 0x16a>;
ee9a97db
TL
354
355 #address-cells = <1>;
356 #size-cells = <0>;
357 wlcore: wlcore@2 {
358 compatible = "ti,wl1271";
359 reg = <2>;
08f9268b
TL
360 pinctrl-names = "default";
361 pinctrl-0 = <&wlcore_irq_pin>;
ee9a97db
TL
362 interrupt-parent = <&gpio1>;
363 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; /* gpio 14 */
364 ref-clock-frequency = <26000000>;
365 };
366};
367
368&mmc4 {
369 status = "disabled";
370};
371
372&mmc5 {
373 status = "disabled";
374};
375
376&i2c1 {
377 pinctrl-names = "default";
378 pinctrl-0 = <&i2c1_pins>;
379
380 clock-frequency = <400000>;
381
382 palmas: palmas@48 {
383 compatible = "ti,palmas";
384 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
385 reg = <0x48>;
386 interrupt-controller;
387 #interrupt-cells = <2>;
388 ti,system-power-controller;
952a5db0
TL
389 ti,mux-pad1 = <0xa1>;
390 ti,mux-pad2 = <0x1b>;
af756bbc
TL
391 pinctrl-names = "default";
392 pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
ee9a97db 393
952a5db0
TL
394 palmas_gpio: gpio {
395 compatible = "ti,palmas-gpio";
396 gpio-controller;
397 #gpio-cells = <2>;
398 };
399
ee9a97db
TL
400 extcon_usb3: palmas_usb {
401 compatible = "ti,palmas-usb-vid";
402 ti,enable-vbus-detection;
403 ti,enable-id-detection;
404 ti,wakeup;
952a5db0 405 id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
ee9a97db
TL
406 };
407
408 clk32kgaudio: palmas_clk32k@1 {
409 compatible = "ti,palmas-clk32kgaudio";
410 #clock-cells = <0>;
411 };
412
c08659d4
NS
413 rtc {
414 compatible = "ti,palmas-rtc";
415 interrupt-parent = <&palmas>;
416 interrupts = <8 IRQ_TYPE_NONE>;
417 ti,backup-battery-chargeable;
418 ti,backup-battery-charge-high-current;
419 };
420
725ed223 421 gpadc: gpadc {
cecc77c8
NS
422 compatible = "ti,palmas-gpadc";
423 interrupts = <18 0
424 16 0
425 17 0>;
426 #io-channel-cells = <1>;
427 ti,channel0-current-microamp = <5>;
428 ti,channel3-current-microamp = <10>;
429 };
430
ee9a97db
TL
431 palmas_pmic {
432 compatible = "ti,palmas-pmic";
433 interrupt-parent = <&palmas>;
434 interrupts = <14 IRQ_TYPE_NONE>;
e640bc30 435 interrupt-names = "short-irq";
ee9a97db
TL
436
437 ti,ldo6-vibrator;
438
6b4e9418
NM
439 smps123-in-supply = <&vsys_cobra>;
440 smps45-in-supply = <&vsys_cobra>;
441 smps6-in-supply = <&vsys_cobra>;
442 smps7-in-supply = <&vsys_cobra>;
443 smps8-in-supply = <&vsys_cobra>;
444 smps9-in-supply = <&vsys_cobra>;
445 smps10_out2-in-supply = <&vsys_cobra>;
446 smps10_out1-in-supply = <&vsys_cobra>;
447 ldo1-in-supply = <&vsys_cobra>;
448 ldo2-in-supply = <&vsys_cobra>;
449 ldo3-in-supply = <&vdds_1v8_main>;
450 ldo4-in-supply = <&vdds_1v8_main>;
451 ldo5-in-supply = <&vsys_cobra>;
452 ldo6-in-supply = <&vdds_1v8_main>;
453 ldo7-in-supply = <&vsys_cobra>;
454 ldo8-in-supply = <&vsys_cobra>;
455 ldo9-in-supply = <&vmmcsd_fixed>;
456 ldoln-in-supply = <&vsys_cobra>;
457 ldousb-in-supply = <&vsys_cobra>;
458
ee9a97db
TL
459 regulators {
460 smps123_reg: smps123 {
461 /* VDD_OPP_MPU */
462 regulator-name = "smps123";
463 regulator-min-microvolt = < 600000>;
464 regulator-max-microvolt = <1500000>;
465 regulator-always-on;
466 regulator-boot-on;
467 };
468
469 smps45_reg: smps45 {
470 /* VDD_OPP_MM */
471 regulator-name = "smps45";
472 regulator-min-microvolt = < 600000>;
473 regulator-max-microvolt = <1310000>;
474 regulator-always-on;
475 regulator-boot-on;
476 };
477
478 smps6_reg: smps6 {
479 /* VDD_DDR3 - over VDD_SMPS6 */
480 regulator-name = "smps6";
1bc2f5fa
NS
481 regulator-min-microvolt = <1350000>;
482 regulator-max-microvolt = <1350000>;
ee9a97db
TL
483 regulator-always-on;
484 regulator-boot-on;
485 };
486
487 smps7_reg: smps7 {
488 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
489 regulator-name = "smps7";
490 regulator-min-microvolt = <1800000>;
491 regulator-max-microvolt = <1800000>;
492 regulator-always-on;
493 regulator-boot-on;
494 };
495
496 smps8_reg: smps8 {
497 /* VDD_OPP_CORE */
498 regulator-name = "smps8";
499 regulator-min-microvolt = < 600000>;
500 regulator-max-microvolt = <1310000>;
501 regulator-always-on;
502 regulator-boot-on;
503 };
504
505 smps9_reg: smps9 {
506 /* VDDA_2v1_AUD over VDD_2v1 */
507 regulator-name = "smps9";
508 regulator-min-microvolt = <2100000>;
509 regulator-max-microvolt = <2100000>;
510 ti,smps-range = <0x80>;
511 };
512
513 smps10_out2_reg: smps10_out2 {
514 /* VBUS_5V_OTG */
515 regulator-name = "smps10_out2";
516 regulator-min-microvolt = <5000000>;
517 regulator-max-microvolt = <5000000>;
518 regulator-always-on;
519 regulator-boot-on;
520 };
521
522 smps10_out1_reg: smps10_out1 {
523 /* VBUS_5V_OTG */
524 regulator-name = "smps10_out1";
525 regulator-min-microvolt = <5000000>;
526 regulator-max-microvolt = <5000000>;
527 };
528
529 ldo1_reg: ldo1 {
530 /* VDDAPHY_CAM: vdda_csiport */
531 regulator-name = "ldo1";
5086e5c7 532 regulator-min-microvolt = <1800000>;
ee9a97db
TL
533 regulator-max-microvolt = <1800000>;
534 };
535
536 ldo2_reg: ldo2 {
537 /* VCC_2V8_DISP: Does not go anywhere */
538 regulator-name = "ldo2";
539 regulator-min-microvolt = <2800000>;
540 regulator-max-microvolt = <2800000>;
541 /* Unused */
542 status = "disabled";
543 };
544
545 ldo3_reg: ldo3 {
546 /* VDDAPHY_MDM: vdda_lli */
547 regulator-name = "ldo3";
548 regulator-min-microvolt = <1500000>;
549 regulator-max-microvolt = <1500000>;
550 regulator-boot-on;
551 /* Only if Modem is used */
552 status = "disabled";
553 };
554
555 ldo4_reg: ldo4 {
556 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
557 regulator-name = "ldo4";
5086e5c7 558 regulator-min-microvolt = <1800000>;
ee9a97db
TL
559 regulator-max-microvolt = <1800000>;
560 };
561
562 ldo5_reg: ldo5 {
563 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
564 regulator-name = "ldo5";
565 regulator-min-microvolt = <1800000>;
566 regulator-max-microvolt = <1800000>;
567 regulator-always-on;
568 regulator-boot-on;
569 };
570
571 ldo6_reg: ldo6 {
572 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
573 regulator-name = "ldo6";
574 regulator-min-microvolt = <1200000>;
575 regulator-max-microvolt = <1200000>;
576 regulator-always-on;
577 regulator-boot-on;
578 };
579
580 ldo7_reg: ldo7 {
581 /* VDD_VPP: vpp1 */
582 regulator-name = "ldo7";
583 regulator-min-microvolt = <2000000>;
584 regulator-max-microvolt = <2000000>;
585 /* Only for efuse reprograming! */
586 status = "disabled";
587 };
588
589 ldo8_reg: ldo8 {
590 /* VDD_3v0: Does not go anywhere */
591 regulator-name = "ldo8";
592 regulator-min-microvolt = <3000000>;
593 regulator-max-microvolt = <3000000>;
594 regulator-boot-on;
595 /* Unused */
596 status = "disabled";
597 };
598
599 ldo9_reg: ldo9 {
600 /* VCC_DV_SDIO: vdds_sdcard */
601 regulator-name = "ldo9";
602 regulator-min-microvolt = <1800000>;
603 regulator-max-microvolt = <3000000>;
604 regulator-boot-on;
605 };
606
607 ldoln_reg: ldoln {
608 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
609 regulator-name = "ldoln";
610 regulator-min-microvolt = <1800000>;
611 regulator-max-microvolt = <1800000>;
612 regulator-always-on;
613 regulator-boot-on;
614 };
615
616 ldousb_reg: ldousb {
617 /* VDDA_3V_USB: VDDA_USBHS33 */
618 regulator-name = "ldousb";
619 regulator-min-microvolt = <3250000>;
620 regulator-max-microvolt = <3250000>;
621 regulator-always-on;
622 regulator-boot-on;
623 };
624
625 regen3_reg: regen3 {
626 /* REGEN3 controls LDO9 supply to card */
627 regulator-name = "regen3";
628 regulator-always-on;
629 regulator-boot-on;
630 };
631 };
632 };
633
634 palmas_power_button: palmas_power_button {
635 compatible = "ti,palmas-pwrbutton";
636 interrupt-parent = <&palmas>;
637 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
638 wakeup-source;
639 };
640 };
641
642 twl6040: twl@4b {
643 compatible = "ti,twl6040";
9e21c75d 644 #clock-cells = <0>;
ee9a97db
TL
645 reg = <0x4b>;
646
647 pinctrl-names = "default";
648 pinctrl-0 = <&twl6040_pins>;
649
650 interrupts = <GIC_SPI 119 IRQ_TYPE_NONE>; /* IRQ_SYS_2N cascaded to gic */
49111cd1
TL
651
652 /* audpwron gpio defined in the board specific dts */
ee9a97db
TL
653
654 vio-supply = <&smps7_reg>;
655 v2v1-supply = <&smps9_reg>;
656 enable-active-high;
657
658 clocks = <&clk32kgaudio>;
659 clock-names = "clk32k";
660 };
661};
662
663&mcpdm {
664 pinctrl-names = "default";
665 pinctrl-0 = <&mcpdm_pins>;
9e21c75d
PU
666
667 clocks = <&twl6040>;
668 clock-names = "pdmclk";
669
ee9a97db
TL
670 status = "okay";
671};
672
673&mcbsp1 {
674 pinctrl-names = "default";
675 pinctrl-0 = <&mcbsp1_pins>;
676 status = "okay";
677};
678
679&mcbsp2 {
680 pinctrl-names = "default";
681 pinctrl-0 = <&mcbsp2_pins>;
682 status = "okay";
683};
684
685&usbhshost {
686 port2-mode = "ehci-hsic";
687 port3-mode = "ehci-hsic";
688};
689
690&usbhsehci {
691 phys = <0 &hsusb2_phy &hsusb3_phy>;
692};
693
694&usb3 {
695 extcon = <&extcon_usb3>;
696 vbus-supply = <&smps10_out1_reg>;
697};
698
699&mcspi1 {
700
701};
702
703&mcspi2 {
704 pinctrl-names = "default";
705 pinctrl-0 = <&mcspi2_pins>;
706};
707
708&mcspi3 {
709 pinctrl-names = "default";
710 pinctrl-0 = <&mcspi3_pins>;
711};
712
713&uart1 {
714 pinctrl-names = "default";
715 pinctrl-0 = <&uart1_pins>;
716};
717
718&uart3 {
719 pinctrl-names = "default";
720 pinctrl-0 = <&uart3_pins>;
721 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
722 <&omap5_pmx_core 0x19c>;
723};
724
725&uart5 {
726 pinctrl-names = "default";
727 pinctrl-0 = <&uart5_pins>;
728};
729
730&cpu0 {
731 cpu0-supply = <&smps123_reg>;
732};
733
734&dss {
735 status = "ok";
736};
737
738&hdmi {
739 status = "ok";
740
741 /* vdda-supply populated in board specific dts file */
742
743 pinctrl-names = "default";
744 pinctrl-0 = <&dss_hdmi_pins>;
745
746 port {
747 hdmi_out: endpoint {
748 remote-endpoint = <&tpd12s015_in>;
749 };
750 };
751};