Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
0004  */
0005 #include "omap5.dtsi"
0006 #include <dt-bindings/interrupt-controller/irq.h>
0007 #include <dt-bindings/interrupt-controller/arm-gic.h>
0008 
0009 / {
0010         aliases {
0011                 display0 = &hdmi0;
0012         };
0013 
0014         chosen {
0015                 stdout-path = &uart3;
0016         };
0017 
0018         vmain: fixedregulator-vmain {
0019                 compatible = "regulator-fixed";
0020                 regulator-name = "vmain";
0021                 regulator-min-microvolt = <5000000>;
0022                 regulator-max-microvolt = <5000000>;
0023         };
0024 
0025         vsys_cobra: fixedregulator-vsys_cobra {
0026                 compatible = "regulator-fixed";
0027                 regulator-name = "vsys_cobra";
0028                 vin-supply = <&vmain>;
0029                 regulator-min-microvolt = <5000000>;
0030                 regulator-max-microvolt = <5000000>;
0031         };
0032 
0033         vmmcsd_fixed: fixedregulator-mmcsd {
0034                 compatible = "regulator-fixed";
0035                 regulator-name = "vmmcsd_fixed";
0036                 regulator-min-microvolt = <3000000>;
0037                 regulator-max-microvolt = <3000000>;
0038         };
0039 
0040         mmc3_pwrseq: sdhci0_pwrseq {
0041                 compatible = "mmc-pwrseq-simple";
0042                 clocks = <&clk32kgaudio>;
0043                 clock-names = "ext_clock";
0044         };
0045 
0046         vmmcsdio_fixed: fixedregulator-mmcsdio {
0047                 compatible = "regulator-fixed";
0048                 regulator-name = "vmmcsdio_fixed";
0049                 regulator-min-microvolt = <1800000>;
0050                 regulator-max-microvolt = <1800000>;
0051                 gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>;    /* gpio140 WLAN_EN */
0052                 enable-active-high;
0053                 startup-delay-us = <70000>;
0054                 pinctrl-names = "default";
0055                 pinctrl-0 = <&wlan_pins>;
0056         };
0057 
0058         /* HS USB Host PHY on PORT 2 */
0059         hsusb2_phy: hsusb2_phy {
0060                 compatible = "usb-nop-xceiv";
0061                 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
0062                 clocks = <&auxclk1_ck>;
0063                 clock-names = "main_clk";
0064                 clock-frequency = <19200000>;
0065                 #phy-cells = <0>;
0066         };
0067 
0068         /* HS USB Host PHY on PORT 3 */
0069         hsusb3_phy: hsusb3_phy {
0070                 compatible = "usb-nop-xceiv";
0071                 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
0072                 #phy-cells = <0>;
0073         };
0074 
0075         tpd12s015: encoder {
0076                 compatible = "ti,tpd12s015";
0077 
0078                 pinctrl-names = "default";
0079                 pinctrl-0 = <&tpd12s015_pins>;
0080 
0081                 /* gpios defined in the board specific dts */
0082 
0083                 ports {
0084                         #address-cells = <1>;
0085                         #size-cells = <0>;
0086 
0087                         port@0 {
0088                                 reg = <0>;
0089 
0090                                 tpd12s015_in: endpoint {
0091                                         remote-endpoint = <&hdmi_out>;
0092                                 };
0093                         };
0094 
0095                         port@1 {
0096                                 reg = <1>;
0097 
0098                                 tpd12s015_out: endpoint {
0099                                         remote-endpoint = <&hdmi_connector_in>;
0100                                 };
0101                         };
0102                 };
0103         };
0104 
0105         hdmi0: connector {
0106                 compatible = "hdmi-connector";
0107                 label = "hdmi";
0108 
0109                 type = "b";
0110 
0111                 port {
0112                         hdmi_connector_in: endpoint {
0113                                 remote-endpoint = <&tpd12s015_out>;
0114                         };
0115                 };
0116         };
0117 
0118         sound: sound {
0119                 compatible = "ti,abe-twl6040";
0120                 ti,model = "omap5-uevm";
0121 
0122                 ti,jack-detection;
0123                 ti,mclk-freq = <19200000>;
0124 
0125                 ti,mcpdm = <&mcpdm>;
0126 
0127                 ti,twl6040 = <&twl6040>;
0128 
0129                 /* Audio routing */
0130                 ti,audio-routing =
0131                         "Headset Stereophone", "HSOL",
0132                         "Headset Stereophone", "HSOR",
0133                         "Line Out", "AUXL",
0134                         "Line Out", "AUXR",
0135                         "HSMIC", "Headset Mic",
0136                         "Headset Mic", "Headset Mic Bias",
0137                         "AFML", "Line In",
0138                         "AFMR", "Line In";
0139         };
0140 };
0141 
0142 &gpio8 {
0143         /* TI trees use GPIO instead of msecure, see also muxing */
0144         msecure-hog {
0145                 gpio-hog;
0146                 gpios = <10 GPIO_ACTIVE_HIGH>;
0147                 output-high;
0148                 line-name = "gpio8_234/msecure";
0149         };
0150 };
0151 
0152 &omap5_pmx_core {
0153         pinctrl-names = "default";
0154         pinctrl-0 = <
0155                         &usbhost_pins
0156                         &led_gpio_pins
0157         >;
0158 
0159         twl6040_pins: pinmux_twl6040_pins {
0160                 pinctrl-single,pins = <
0161                         OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6)      /* mcspi1_somi.gpio5_141 */
0162                 >;
0163         };
0164 
0165         mcpdm_pins: pinmux_mcpdm_pins {
0166                 pinctrl-single,pins = <
0167                         OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0)      /* abe_clks.abe_clks */
0168                         OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0)      /* abemcpdm_ul_data.abemcpdm_ul_data */
0169                         OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0)      /* abemcpdm_dl_data.abemcpdm_dl_data */
0170                         OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0)        /* abemcpdm_frame.abemcpdm_frame */
0171                         OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0)      /* abemcpdm_lb_clk.abemcpdm_lb_clk */
0172                 >;
0173         };
0174 
0175         mcbsp1_pins: pinmux_mcbsp1_pins {
0176                 pinctrl-single,pins = <
0177                         OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1)               /* abedmic_clk2.abemcbsp1_fsx */
0178                         OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1)     /* abedmic_clk3.abemcbsp1_dx */
0179                         OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1)               /* abeslimbus1_clock.abemcbsp1_clkx */
0180                         OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1)      /* abeslimbus1_data.abemcbsp1_dr */
0181                 >;
0182         };
0183 
0184         mcbsp2_pins: pinmux_mcbsp2_pins {
0185                 pinctrl-single,pins = <
0186                         OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0)      /* abemcbsp2_dr.abemcbsp2_dr */
0187                         OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0)     /* abemcbsp2_dx.abemcbsp2_dx */
0188                         OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0)               /* abemcbsp2_fsx.abemcbsp2_fsx */
0189                         OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0)               /* abemcbsp2_clkx.abemcbsp2_clkx */
0190                 >;
0191         };
0192 
0193         i2c1_pins: pinmux_i2c1_pins {
0194                 pinctrl-single,pins = <
0195                         OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0)        /* i2c1_scl */
0196                         OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0)        /* i2c1_sda */
0197                 >;
0198         };
0199 
0200         mcspi2_pins: pinmux_mcspi2_pins {
0201                 pinctrl-single,pins = <
0202                         OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0)               /*  mcspi2_clk */
0203                         OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0)               /*  mcspi2_simo */
0204                         OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0)        /*  mcspi2_somi */
0205                         OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0)              /*  mcspi2_cs0 */
0206                 >;
0207         };
0208 
0209         mcspi3_pins: pinmux_mcspi3_pins {
0210                 pinctrl-single,pins = <
0211                         OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1)               /*  mcspi3_somi */
0212                         OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1)               /*  mcspi3_cs0 */
0213                         OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1)               /*  mcspi3_simo */
0214                         OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1)               /*  mcspi3_clk */
0215                 >;
0216         };
0217 
0218         mmc3_pins: pinmux_mmc3_pins {
0219                 pinctrl-single,pins = <
0220                         OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
0221                         OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
0222                         OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
0223                         OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
0224                         OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
0225                         OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
0226                 >;
0227         };
0228 
0229         wlan_pins: pinmux_wlan_pins {
0230                 pinctrl-single,pins = <
0231                         OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
0232                 >;
0233         };
0234 
0235         /* TI trees use GPIO mode; msecure mode does not work reliably? */
0236         palmas_msecure_pins: palmas_msecure_pins {
0237                 pinctrl-single,pins = <
0238                         OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
0239                 >;
0240         };
0241 
0242         usbhost_pins: pinmux_usbhost_pins {
0243                 pinctrl-single,pins = <
0244                         OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
0245                         OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
0246 
0247                         OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
0248                         OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
0249 
0250                         OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
0251                         OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
0252                 >;
0253         };
0254 
0255         led_gpio_pins: pinmux_led_gpio_pins {
0256                 pinctrl-single,pins = <
0257                         OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
0258                 >;
0259         };
0260 
0261         uart1_pins: pinmux_uart1_pins {
0262                 pinctrl-single,pins = <
0263                         OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
0264                         OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
0265                         OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
0266                         OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
0267                 >;
0268         };
0269 
0270         uart3_pins: pinmux_uart3_pins {
0271                 pinctrl-single,pins = <
0272                         OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
0273                         OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
0274                 >;
0275         };
0276 
0277         uart5_pins: pinmux_uart5_pins {
0278                 pinctrl-single,pins = <
0279                         OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
0280                         OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
0281                         OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
0282                         OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
0283                 >;
0284         };
0285 
0286         dss_hdmi_pins: pinmux_dss_hdmi_pins {
0287                 pinctrl-single,pins = <
0288                         OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0)       /* hdmi_cec.hdmi_cec */
0289                         OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0)       /* hdmi_ddc_scl.hdmi_ddc_scl */
0290                         OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0)       /* hdmi_ddc_sda.hdmi_ddc_sda */
0291                 >;
0292         };
0293 
0294         tpd12s015_pins: pinmux_tpd12s015_pins {
0295                 pinctrl-single,pins = <
0296                         OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6)      /* hdmi_hpd.gpio7_193 */
0297                 >;
0298         };
0299 };
0300 
0301 &omap5_pmx_wkup {
0302         pinctrl-names = "default";
0303         pinctrl-0 = <
0304                         &usbhost_wkup_pins
0305         >;
0306 
0307         palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
0308                 pinctrl-single,pins = <
0309                         /* sys_nirq1 is pulled down as the SoC is inverting it for GIC */
0310                         OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0)
0311                 >;
0312         };
0313 
0314         usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
0315                 pinctrl-single,pins = <
0316                         OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
0317                 >;
0318         };
0319 
0320         wlcore_irq_pin: pinmux_wlcore_irq_pin {
0321                 pinctrl-single,pins = <
0322                         OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6)        /* llia_wakereqin.gpio1_wk14 */
0323                 >;
0324         };
0325 };
0326 
0327 &mmc1 {
0328         vmmc-supply = <&ldo9_reg>;
0329         bus-width = <4>;
0330 };
0331 
0332 &mmc2 {
0333         vmmc-supply = <&vmmcsd_fixed>;
0334         bus-width = <8>;
0335         ti,non-removable;
0336 };
0337 
0338 &mmc3 {
0339         vmmc-supply = <&vmmcsdio_fixed>;
0340         mmc-pwrseq = <&mmc3_pwrseq>;
0341         bus-width = <4>;
0342         non-removable;
0343         cap-power-off-card;
0344         pinctrl-names = "default";
0345         pinctrl-0 = <&mmc3_pins>;
0346         interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
0347                                &omap5_pmx_core 0x16a>;
0348 
0349         #address-cells = <1>;
0350         #size-cells = <0>;
0351         wlcore: wlcore@2 {
0352                 compatible = "ti,wl1271";
0353                 reg = <2>;
0354                 pinctrl-names = "default";
0355                 pinctrl-0 = <&wlcore_irq_pin>;
0356                 interrupt-parent = <&gpio1>;
0357                 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;  /* gpio 14 */
0358                 ref-clock-frequency = <26000000>;
0359         };
0360 };
0361 
0362 &mmc4 {
0363         status = "disabled";
0364 };
0365 
0366 &mmc5 {
0367         status = "disabled";
0368 };
0369 
0370 &i2c1 {
0371         pinctrl-names = "default";
0372         pinctrl-0 = <&i2c1_pins>;
0373 
0374         clock-frequency = <400000>;
0375 
0376         palmas: palmas@48 {
0377                 compatible = "ti,palmas";
0378                 /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
0379                 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
0380                 reg = <0x48>;
0381                 interrupt-controller;
0382                 #interrupt-cells = <2>;
0383                 ti,system-power-controller;
0384                 ti,mux-pad1 = <0xa1>;
0385                 ti,mux-pad2 = <0x1b>;
0386                 pinctrl-names = "default";
0387                 pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
0388 
0389                 palmas_gpio: gpio {
0390                         compatible = "ti,palmas-gpio";
0391                         gpio-controller;
0392                         #gpio-cells = <2>;
0393                 };
0394 
0395                 extcon_usb3: palmas_usb {
0396                         compatible = "ti,palmas-usb-vid";
0397                         ti,enable-vbus-detection;
0398                         ti,enable-id-detection;
0399                         ti,wakeup;
0400                         id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
0401                 };
0402 
0403                 clk32kgaudio: palmas_clk32k@1 {
0404                         compatible = "ti,palmas-clk32kgaudio";
0405                         #clock-cells = <0>;
0406                 };
0407 
0408                 rtc {
0409                         compatible = "ti,palmas-rtc";
0410                         interrupt-parent = <&palmas>;
0411                         interrupts = <8 IRQ_TYPE_NONE>;
0412                         ti,backup-battery-chargeable;
0413                         ti,backup-battery-charge-high-current;
0414                 };
0415 
0416                 gpadc: gpadc {
0417                         compatible = "ti,palmas-gpadc";
0418                         interrupts = <18 0
0419                                       16 0
0420                                       17 0>;
0421                         #io-channel-cells = <1>;
0422                         ti,channel0-current-microamp = <5>;
0423                         ti,channel3-current-microamp = <10>;
0424                 };
0425 
0426                 palmas_pmic {
0427                         compatible = "ti,palmas-pmic";
0428                         interrupt-parent = <&palmas>;
0429                         interrupts = <14 IRQ_TYPE_NONE>;
0430                         interrupt-names = "short-irq";
0431 
0432                         ti,ldo6-vibrator;
0433 
0434                         smps123-in-supply = <&vsys_cobra>;
0435                         smps45-in-supply = <&vsys_cobra>;
0436                         smps6-in-supply = <&vsys_cobra>;
0437                         smps7-in-supply = <&vsys_cobra>;
0438                         smps8-in-supply = <&vsys_cobra>;
0439                         smps9-in-supply = <&vsys_cobra>;
0440                         smps10_out2-in-supply = <&vsys_cobra>;
0441                         smps10_out1-in-supply = <&vsys_cobra>;
0442                         ldo1-in-supply = <&vsys_cobra>;
0443                         ldo2-in-supply = <&vsys_cobra>;
0444                         ldo3-in-supply = <&vdds_1v8_main>;
0445                         ldo4-in-supply = <&vdds_1v8_main>;
0446                         ldo5-in-supply = <&vsys_cobra>;
0447                         ldo6-in-supply = <&vdds_1v8_main>;
0448                         ldo7-in-supply = <&vsys_cobra>;
0449                         ldo8-in-supply = <&vsys_cobra>;
0450                         ldo9-in-supply = <&vmmcsd_fixed>;
0451                         ldoln-in-supply = <&vsys_cobra>;
0452                         ldousb-in-supply = <&vsys_cobra>;
0453 
0454                         regulators {
0455                                 smps123_reg: smps123 {
0456                                         /* VDD_OPP_MPU */
0457                                         regulator-name = "smps123";
0458                                         regulator-min-microvolt = < 600000>;
0459                                         regulator-max-microvolt = <1500000>;
0460                                         regulator-always-on;
0461                                         regulator-boot-on;
0462                                 };
0463 
0464                                 smps45_reg: smps45 {
0465                                         /* VDD_OPP_MM */
0466                                         regulator-name = "smps45";
0467                                         regulator-min-microvolt = < 600000>;
0468                                         regulator-max-microvolt = <1310000>;
0469                                         regulator-always-on;
0470                                         regulator-boot-on;
0471                                 };
0472 
0473                                 smps6_reg: smps6 {
0474                                         /* VDD_DDR3 - over VDD_SMPS6 */
0475                                         regulator-name = "smps6";
0476                                         regulator-min-microvolt = <1350000>;
0477                                         regulator-max-microvolt = <1350000>;
0478                                         regulator-always-on;
0479                                         regulator-boot-on;
0480                                 };
0481 
0482                                 vdds_1v8_main:
0483                                 smps7_reg: smps7 {
0484                                         /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
0485                                         regulator-name = "smps7";
0486                                         regulator-min-microvolt = <1800000>;
0487                                         regulator-max-microvolt = <1800000>;
0488                                         regulator-always-on;
0489                                         regulator-boot-on;
0490                                 };
0491 
0492                                 smps8_reg: smps8 {
0493                                         /* VDD_OPP_CORE */
0494                                         regulator-name = "smps8";
0495                                         regulator-min-microvolt = < 600000>;
0496                                         regulator-max-microvolt = <1310000>;
0497                                         regulator-always-on;
0498                                         regulator-boot-on;
0499                                 };
0500 
0501                                 smps9_reg: smps9 {
0502                                         /* VDDA_2v1_AUD over VDD_2v1 */
0503                                         regulator-name = "smps9";
0504                                         regulator-min-microvolt = <2100000>;
0505                                         regulator-max-microvolt = <2100000>;
0506                                         ti,smps-range = <0x80>;
0507                                 };
0508 
0509                                 smps10_out2_reg: smps10_out2 {
0510                                         /* VBUS_5V_OTG */
0511                                         regulator-name = "smps10_out2";
0512                                         regulator-min-microvolt = <5000000>;
0513                                         regulator-max-microvolt = <5000000>;
0514                                         regulator-always-on;
0515                                         regulator-boot-on;
0516                                 };
0517 
0518                                 smps10_out1_reg: smps10_out1 {
0519                                         /* VBUS_5V_OTG */
0520                                         regulator-name = "smps10_out1";
0521                                         regulator-min-microvolt = <5000000>;
0522                                         regulator-max-microvolt = <5000000>;
0523                                 };
0524 
0525                                 ldo1_reg: ldo1 {
0526                                         /* VDDAPHY_CAM: vdda_csiport */
0527                                         regulator-name = "ldo1";
0528                                         regulator-min-microvolt = <1800000>;
0529                                         regulator-max-microvolt = <1800000>;
0530                                 };
0531 
0532                                 ldo2_reg: ldo2 {
0533                                         /* VCC_2V8_DISP: Does not go anywhere */
0534                                         regulator-name = "ldo2";
0535                                         regulator-min-microvolt = <2800000>;
0536                                         regulator-max-microvolt = <2800000>;
0537                                         /* Unused */
0538                                         status = "disabled";
0539                                 };
0540 
0541                                 ldo3_reg: ldo3 {
0542                                         /* VDDAPHY_MDM: vdda_lli */
0543                                         regulator-name = "ldo3";
0544                                         regulator-min-microvolt = <1500000>;
0545                                         regulator-max-microvolt = <1500000>;
0546                                         regulator-boot-on;
0547                                         /* Only if Modem is used */
0548                                         status = "disabled";
0549                                 };
0550 
0551                                 ldo4_reg: ldo4 {
0552                                         /* VDDAPHY_DISP: vdda_dsiport/hdmi */
0553                                         regulator-name = "ldo4";
0554                                         regulator-min-microvolt = <1800000>;
0555                                         regulator-max-microvolt = <1800000>;
0556                                 };
0557 
0558                                 ldo5_reg: ldo5 {
0559                                         /* VDDA_1V8_PHY: usb/sata/hdmi.. */
0560                                         regulator-name = "ldo5";
0561                                         regulator-min-microvolt = <1800000>;
0562                                         regulator-max-microvolt = <1800000>;
0563                                         regulator-always-on;
0564                                         regulator-boot-on;
0565                                 };
0566 
0567                                 ldo6_reg: ldo6 {
0568                                         /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
0569                                         regulator-name = "ldo6";
0570                                         regulator-min-microvolt = <1200000>;
0571                                         regulator-max-microvolt = <1200000>;
0572                                         regulator-always-on;
0573                                         regulator-boot-on;
0574                                 };
0575 
0576                                 ldo7_reg: ldo7 {
0577                                         /* VDD_VPP: vpp1 */
0578                                         regulator-name = "ldo7";
0579                                         regulator-min-microvolt = <2000000>;
0580                                         regulator-max-microvolt = <2000000>;
0581                                         /* Only for efuse reprograming! */
0582                                         status = "disabled";
0583                                 };
0584 
0585                                 ldo8_reg: ldo8 {
0586                                         /* VDD_3v0: Does not go anywhere */
0587                                         regulator-name = "ldo8";
0588                                         regulator-min-microvolt = <3000000>;
0589                                         regulator-max-microvolt = <3000000>;
0590                                         regulator-boot-on;
0591                                         /* Unused */
0592                                         status = "disabled";
0593                                 };
0594 
0595                                 ldo9_reg: ldo9 {
0596                                         /* VCC_DV_SDIO: vdds_sdcard */
0597                                         regulator-name = "ldo9";
0598                                         regulator-min-microvolt = <1800000>;
0599                                         regulator-max-microvolt = <3000000>;
0600                                         regulator-boot-on;
0601                                 };
0602 
0603                                 ldoln_reg: ldoln {
0604                                         /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
0605                                         regulator-name = "ldoln";
0606                                         regulator-min-microvolt = <1800000>;
0607                                         regulator-max-microvolt = <1800000>;
0608                                         regulator-always-on;
0609                                         regulator-boot-on;
0610                                 };
0611 
0612                                 ldousb_reg: ldousb {
0613                                         /* VDDA_3V_USB: VDDA_USBHS33 */
0614                                         regulator-name = "ldousb";
0615                                         regulator-min-microvolt = <3250000>;
0616                                         regulator-max-microvolt = <3250000>;
0617                                         regulator-always-on;
0618                                         regulator-boot-on;
0619                                 };
0620 
0621                                 regen3_reg: regen3 {
0622                                         /* REGEN3 controls LDO9 supply to card */
0623                                         regulator-name = "regen3";
0624                                         regulator-always-on;
0625                                         regulator-boot-on;
0626                                 };
0627                         };
0628                 };
0629 
0630                 palmas_power_button: palmas_power_button {
0631                         compatible = "ti,palmas-pwrbutton";
0632                         interrupt-parent = <&palmas>;
0633                         interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
0634                         wakeup-source;
0635                 };
0636         };
0637 
0638         twl6040: twl@4b {
0639                 compatible = "ti,twl6040";
0640                 #clock-cells = <0>;
0641                 reg = <0x4b>;
0642 
0643                 pinctrl-names = "default";
0644                 pinctrl-0 = <&twl6040_pins>;
0645 
0646                 /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
0647                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_LOW>;
0648 
0649                 /* audpwron gpio defined in the board specific dts */
0650 
0651                 vio-supply = <&smps7_reg>;
0652                 v2v1-supply = <&smps9_reg>;
0653                 enable-active-high;
0654 
0655                 clocks = <&clk32kgaudio>, <&fref_xtal_ck>;
0656                 clock-names = "clk32k", "mclk";
0657         };
0658 };
0659 
0660 &mcpdm_module {
0661         /* Module on the SoC needs external clock from the PMIC */
0662         pinctrl-names = "default";
0663         pinctrl-0 = <&mcpdm_pins>;
0664         status = "okay";
0665 };
0666 
0667 &mcpdm {
0668         clocks = <&twl6040>;
0669         clock-names = "pdmclk";
0670 };
0671 
0672 &mcbsp1 {
0673         pinctrl-names = "default";
0674         pinctrl-0 = <&mcbsp1_pins>;
0675         status = "okay";
0676 };
0677 
0678 &mcbsp2 {
0679         pinctrl-names = "default";
0680         pinctrl-0 = <&mcbsp2_pins>;
0681         status = "okay";
0682 };
0683 
0684 &usbhshost {
0685         port2-mode = "ehci-hsic";
0686         port3-mode = "ehci-hsic";
0687 };
0688 
0689 &usbhsehci {
0690         phys = <0 &hsusb2_phy &hsusb3_phy>;
0691 };
0692 
0693 &usb3 {
0694         extcon = <&extcon_usb3>;
0695         vbus-supply = <&smps10_out1_reg>;
0696 };
0697 
0698 &dwc3 {
0699         extcon = <&extcon_usb3>;
0700         dr_mode = "otg";
0701 };
0702 
0703 &mcspi1 {
0704 
0705 };
0706 
0707 &mcspi2 {
0708         pinctrl-names = "default";
0709         pinctrl-0 = <&mcspi2_pins>;
0710 };
0711 
0712 &mcspi3 {
0713         pinctrl-names = "default";
0714         pinctrl-0 = <&mcspi3_pins>;
0715 };
0716 
0717 &uart1 {
0718         pinctrl-names = "default";
0719         pinctrl-0 = <&uart1_pins>;
0720 };
0721 
0722 &uart3 {
0723         pinctrl-names = "default";
0724         pinctrl-0 = <&uart3_pins>;
0725         interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
0726                               <&omap5_pmx_core 0x19c>;
0727 };
0728 
0729 &uart5 {
0730         pinctrl-names = "default";
0731         pinctrl-0 = <&uart5_pins>;
0732 };
0733 
0734 &cpu0 {
0735         cpu0-supply = <&smps123_reg>;
0736 };
0737 
0738 &dss {
0739         status = "okay";
0740 };
0741 
0742 &hdmi {
0743         status = "okay";
0744 
0745         /* vdda-supply populated in board specific dts file */
0746 
0747         pinctrl-names = "default";
0748         pinctrl-0 = <&dss_hdmi_pins>;
0749 
0750         port {
0751                 hdmi_out: endpoint {
0752                         remote-endpoint = <&tpd12s015_in>;
0753                 };
0754         };
0755 };