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