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