1*f126890aSEmmanuel Vadot/* 2*f126890aSEmmanuel Vadot * Copyright 2015 Chen-Yu Tsai 3*f126890aSEmmanuel Vadot * 4*f126890aSEmmanuel Vadot * Chen-Yu Tsai <wens@csie.org> 5*f126890aSEmmanuel Vadot * 6*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 7*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 8*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 9*f126890aSEmmanuel Vadot * whole. 10*f126890aSEmmanuel Vadot * 11*f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 12*f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 13*f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 14*f126890aSEmmanuel Vadot * License, or (at your option) any later version. 15*f126890aSEmmanuel Vadot * 16*f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 17*f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 18*f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19*f126890aSEmmanuel Vadot * GNU General Public License for more details. 20*f126890aSEmmanuel Vadot * 21*f126890aSEmmanuel Vadot * Or, alternatively, 22*f126890aSEmmanuel Vadot * 23*f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 24*f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 25*f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 26*f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 27*f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 28*f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 29*f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 30*f126890aSEmmanuel Vadot * conditions: 31*f126890aSEmmanuel Vadot * 32*f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 33*f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 34*f126890aSEmmanuel Vadot * 35*f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 36*f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 37*f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 38*f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 39*f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 40*f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41*f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42*f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 43*f126890aSEmmanuel Vadot */ 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot/dts-v1/; 46*f126890aSEmmanuel Vadot#include "sun8i-a83t.dtsi" 47*f126890aSEmmanuel Vadot 48*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot/ { 51*f126890aSEmmanuel Vadot model = "Cubietech Cubietruck Plus"; 52*f126890aSEmmanuel Vadot compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t"; 53*f126890aSEmmanuel Vadot 54*f126890aSEmmanuel Vadot aliases { 55*f126890aSEmmanuel Vadot ethernet0 = &emac; 56*f126890aSEmmanuel Vadot serial0 = &uart0; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot 59*f126890aSEmmanuel Vadot chosen { 60*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot 63*f126890aSEmmanuel Vadot hdmi-connector { 64*f126890aSEmmanuel Vadot compatible = "hdmi-connector"; 65*f126890aSEmmanuel Vadot type = "a"; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot port { 68*f126890aSEmmanuel Vadot hdmi_con_in: endpoint { 69*f126890aSEmmanuel Vadot remote-endpoint = <&hdmi_out_con>; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot }; 72*f126890aSEmmanuel Vadot }; 73*f126890aSEmmanuel Vadot 74*f126890aSEmmanuel Vadot leds { 75*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot led-0 { 78*f126890aSEmmanuel Vadot label = "cubietruck-plus:blue:usr"; 79*f126890aSEmmanuel Vadot gpios = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */ 80*f126890aSEmmanuel Vadot }; 81*f126890aSEmmanuel Vadot 82*f126890aSEmmanuel Vadot led-1 { 83*f126890aSEmmanuel Vadot label = "cubietruck-plus:orange:usr"; 84*f126890aSEmmanuel Vadot gpios = <&pio 3 26 GPIO_ACTIVE_HIGH>; /* PD26 */ 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot 87*f126890aSEmmanuel Vadot led-2 { 88*f126890aSEmmanuel Vadot label = "cubietruck-plus:white:usr"; 89*f126890aSEmmanuel Vadot gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>; /* PD27 */ 90*f126890aSEmmanuel Vadot }; 91*f126890aSEmmanuel Vadot 92*f126890aSEmmanuel Vadot led-3 { 93*f126890aSEmmanuel Vadot label = "cubietruck-plus:green:usr"; 94*f126890aSEmmanuel Vadot gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */ 95*f126890aSEmmanuel Vadot }; 96*f126890aSEmmanuel Vadot }; 97*f126890aSEmmanuel Vadot 98*f126890aSEmmanuel Vadot usb-hub { 99*f126890aSEmmanuel Vadot /* I2C is not connected */ 100*f126890aSEmmanuel Vadot compatible = "smsc,usb3503"; 101*f126890aSEmmanuel Vadot initial-mode = <1>; /* initialize in HUB mode */ 102*f126890aSEmmanuel Vadot disabled-ports = <1>; 103*f126890aSEmmanuel Vadot intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ 104*f126890aSEmmanuel Vadot reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ 105*f126890aSEmmanuel Vadot connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ 106*f126890aSEmmanuel Vadot refclk-frequency = <19200000>; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot 109*f126890aSEmmanuel Vadot reg_usb1_vbus: reg-usb1-vbus { 110*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 111*f126890aSEmmanuel Vadot regulator-name = "usb1-vbus"; 112*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 113*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 114*f126890aSEmmanuel Vadot regulator-boot-on; 115*f126890aSEmmanuel Vadot enable-active-high; 116*f126890aSEmmanuel Vadot gpio = <&pio 3 29 GPIO_ACTIVE_HIGH>; /* PD29 */ 117*f126890aSEmmanuel Vadot }; 118*f126890aSEmmanuel Vadot 119*f126890aSEmmanuel Vadot reg_usb2_vbus: reg-usb2-vbus { 120*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 121*f126890aSEmmanuel Vadot regulator-name = "usb2-vbus"; 122*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 123*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 124*f126890aSEmmanuel Vadot regulator-boot-on; 125*f126890aSEmmanuel Vadot enable-active-high; 126*f126890aSEmmanuel Vadot gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ 127*f126890aSEmmanuel Vadot }; 128*f126890aSEmmanuel Vadot 129*f126890aSEmmanuel Vadot sound { 130*f126890aSEmmanuel Vadot compatible = "simple-audio-card"; 131*f126890aSEmmanuel Vadot simple-audio-card,name = "On-board SPDIF"; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot simple-audio-card,cpu { 134*f126890aSEmmanuel Vadot sound-dai = <&spdif>; 135*f126890aSEmmanuel Vadot }; 136*f126890aSEmmanuel Vadot 137*f126890aSEmmanuel Vadot simple-audio-card,codec { 138*f126890aSEmmanuel Vadot sound-dai = <&spdif_out>; 139*f126890aSEmmanuel Vadot }; 140*f126890aSEmmanuel Vadot }; 141*f126890aSEmmanuel Vadot 142*f126890aSEmmanuel Vadot spdif_out: spdif-out { 143*f126890aSEmmanuel Vadot #sound-dai-cells = <0>; 144*f126890aSEmmanuel Vadot compatible = "linux,spdif-dit"; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot wifi_pwrseq: wifi_pwrseq { 148*f126890aSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 149*f126890aSEmmanuel Vadot clocks = <&ac100_rtc 1>; 150*f126890aSEmmanuel Vadot clock-names = "ext_clock"; 151*f126890aSEmmanuel Vadot /* The WiFi low power clock must be 32768 Hz */ 152*f126890aSEmmanuel Vadot assigned-clocks = <&ac100_rtc 1>; 153*f126890aSEmmanuel Vadot assigned-clock-rates = <32768>; 154*f126890aSEmmanuel Vadot /* enables internal regulator and de-asserts reset */ 155*f126890aSEmmanuel Vadot reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */ 156*f126890aSEmmanuel Vadot }; 157*f126890aSEmmanuel Vadot}; 158*f126890aSEmmanuel Vadot 159*f126890aSEmmanuel Vadot&cpu0 { 160*f126890aSEmmanuel Vadot cpu-supply = <®_dcdc2>; 161*f126890aSEmmanuel Vadot}; 162*f126890aSEmmanuel Vadot 163*f126890aSEmmanuel Vadot&cpu100 { 164*f126890aSEmmanuel Vadot cpu-supply = <®_dcdc3>; 165*f126890aSEmmanuel Vadot}; 166*f126890aSEmmanuel Vadot 167*f126890aSEmmanuel Vadot&de { 168*f126890aSEmmanuel Vadot status = "okay"; 169*f126890aSEmmanuel Vadot}; 170*f126890aSEmmanuel Vadot 171*f126890aSEmmanuel Vadot&ehci0 { 172*f126890aSEmmanuel Vadot /* GL830 USB-to-SATA bridge here */ 173*f126890aSEmmanuel Vadot status = "okay"; 174*f126890aSEmmanuel Vadot}; 175*f126890aSEmmanuel Vadot 176*f126890aSEmmanuel Vadot&ehci1 { 177*f126890aSEmmanuel Vadot /* USB3503 HSIC USB 2.0 hub here */ 178*f126890aSEmmanuel Vadot status = "okay"; 179*f126890aSEmmanuel Vadot}; 180*f126890aSEmmanuel Vadot 181*f126890aSEmmanuel Vadot&emac { 182*f126890aSEmmanuel Vadot pinctrl-names = "default"; 183*f126890aSEmmanuel Vadot pinctrl-0 = <&emac_rgmii_pins>; 184*f126890aSEmmanuel Vadot phy-supply = <®_dldo4>; 185*f126890aSEmmanuel Vadot phy-handle = <&rgmii_phy>; 186*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 187*f126890aSEmmanuel Vadot status = "okay"; 188*f126890aSEmmanuel Vadot}; 189*f126890aSEmmanuel Vadot 190*f126890aSEmmanuel Vadot&hdmi { 191*f126890aSEmmanuel Vadot status = "okay"; 192*f126890aSEmmanuel Vadot}; 193*f126890aSEmmanuel Vadot 194*f126890aSEmmanuel Vadot&hdmi_out { 195*f126890aSEmmanuel Vadot hdmi_out_con: endpoint { 196*f126890aSEmmanuel Vadot remote-endpoint = <&hdmi_con_in>; 197*f126890aSEmmanuel Vadot }; 198*f126890aSEmmanuel Vadot}; 199*f126890aSEmmanuel Vadot 200*f126890aSEmmanuel Vadot&mdio { 201*f126890aSEmmanuel Vadot rgmii_phy: ethernet-phy@1 { 202*f126890aSEmmanuel Vadot compatible = "ethernet-phy-ieee802.3-c22"; 203*f126890aSEmmanuel Vadot reg = <1>; 204*f126890aSEmmanuel Vadot }; 205*f126890aSEmmanuel Vadot}; 206*f126890aSEmmanuel Vadot 207*f126890aSEmmanuel Vadot&mmc0 { 208*f126890aSEmmanuel Vadot pinctrl-names = "default"; 209*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc0_pins>; 210*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 211*f126890aSEmmanuel Vadot bus-width = <4>; 212*f126890aSEmmanuel Vadot cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 213*f126890aSEmmanuel Vadot status = "okay"; 214*f126890aSEmmanuel Vadot}; 215*f126890aSEmmanuel Vadot 216*f126890aSEmmanuel Vadot&mmc1 { 217*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 218*f126890aSEmmanuel Vadot vqmmc-supply = <®_sw>; 219*f126890aSEmmanuel Vadot mmc-pwrseq = <&wifi_pwrseq>; 220*f126890aSEmmanuel Vadot bus-width = <4>; 221*f126890aSEmmanuel Vadot non-removable; 222*f126890aSEmmanuel Vadot status = "okay"; 223*f126890aSEmmanuel Vadot}; 224*f126890aSEmmanuel Vadot 225*f126890aSEmmanuel Vadot&mmc2 { 226*f126890aSEmmanuel Vadot pinctrl-names = "default"; 227*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc2_8bit_emmc_pins>; 228*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 229*f126890aSEmmanuel Vadot bus-width = <8>; 230*f126890aSEmmanuel Vadot non-removable; 231*f126890aSEmmanuel Vadot cap-mmc-hw-reset; 232*f126890aSEmmanuel Vadot status = "okay"; 233*f126890aSEmmanuel Vadot}; 234*f126890aSEmmanuel Vadot 235*f126890aSEmmanuel Vadot&r_rsb { 236*f126890aSEmmanuel Vadot status = "okay"; 237*f126890aSEmmanuel Vadot 238*f126890aSEmmanuel Vadot axp81x: pmic@3a3 { 239*f126890aSEmmanuel Vadot compatible = "x-powers,axp818", "x-powers,axp813"; 240*f126890aSEmmanuel Vadot reg = <0x3a3>; 241*f126890aSEmmanuel Vadot interrupt-parent = <&r_intc>; 242*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 243*f126890aSEmmanuel Vadot eldoin-supply = <®_dcdc1>; 244*f126890aSEmmanuel Vadot swin-supply = <®_dcdc1>; 245*f126890aSEmmanuel Vadot x-powers,drive-vbus-en; 246*f126890aSEmmanuel Vadot }; 247*f126890aSEmmanuel Vadot 248*f126890aSEmmanuel Vadot ac100: codec@e89 { 249*f126890aSEmmanuel Vadot compatible = "x-powers,ac100"; 250*f126890aSEmmanuel Vadot reg = <0xe89>; 251*f126890aSEmmanuel Vadot 252*f126890aSEmmanuel Vadot ac100_codec: codec { 253*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-codec"; 254*f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 255*f126890aSEmmanuel Vadot interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */ 256*f126890aSEmmanuel Vadot #clock-cells = <0>; 257*f126890aSEmmanuel Vadot clock-output-names = "4M_adda"; 258*f126890aSEmmanuel Vadot }; 259*f126890aSEmmanuel Vadot 260*f126890aSEmmanuel Vadot ac100_rtc: rtc { 261*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-rtc"; 262*f126890aSEmmanuel Vadot interrupt-parent = <&r_intc>; 263*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 264*f126890aSEmmanuel Vadot clocks = <&ac100_codec>; 265*f126890aSEmmanuel Vadot #clock-cells = <1>; 266*f126890aSEmmanuel Vadot clock-output-names = "cko1_rtc", 267*f126890aSEmmanuel Vadot "cko2_rtc", 268*f126890aSEmmanuel Vadot "cko3_rtc"; 269*f126890aSEmmanuel Vadot }; 270*f126890aSEmmanuel Vadot }; 271*f126890aSEmmanuel Vadot}; 272*f126890aSEmmanuel Vadot 273*f126890aSEmmanuel Vadot#include "axp81x.dtsi" 274*f126890aSEmmanuel Vadot 275*f126890aSEmmanuel Vadot&ac_power_supply { 276*f126890aSEmmanuel Vadot status = "okay"; 277*f126890aSEmmanuel Vadot}; 278*f126890aSEmmanuel Vadot 279*f126890aSEmmanuel Vadot&battery_power_supply { 280*f126890aSEmmanuel Vadot status = "okay"; 281*f126890aSEmmanuel Vadot}; 282*f126890aSEmmanuel Vadot 283*f126890aSEmmanuel Vadot®_aldo1 { 284*f126890aSEmmanuel Vadot regulator-always-on; 285*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 286*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 287*f126890aSEmmanuel Vadot regulator-name = "vcc-1v8"; 288*f126890aSEmmanuel Vadot}; 289*f126890aSEmmanuel Vadot 290*f126890aSEmmanuel Vadot®_aldo2 { 291*f126890aSEmmanuel Vadot regulator-always-on; 292*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 293*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 294*f126890aSEmmanuel Vadot regulator-name = "dram-pll"; 295*f126890aSEmmanuel Vadot}; 296*f126890aSEmmanuel Vadot 297*f126890aSEmmanuel Vadot®_aldo3 { 298*f126890aSEmmanuel Vadot regulator-always-on; 299*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 300*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 301*f126890aSEmmanuel Vadot regulator-name = "avcc"; 302*f126890aSEmmanuel Vadot}; 303*f126890aSEmmanuel Vadot 304*f126890aSEmmanuel Vadot®_dcdc1 { 305*f126890aSEmmanuel Vadot /* 306*f126890aSEmmanuel Vadot * The schematics say this should be 3.3V, but the FEX file says 307*f126890aSEmmanuel Vadot * it should be 3V. The latter makes sense, as the WiFi module's 308*f126890aSEmmanuel Vadot * I/O is indirectly powered from DCDC1, through SW. It is rated 309*f126890aSEmmanuel Vadot * at 2.98V maximum. 310*f126890aSEmmanuel Vadot */ 311*f126890aSEmmanuel Vadot regulator-always-on; 312*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 313*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 314*f126890aSEmmanuel Vadot regulator-name = "vcc-3v"; 315*f126890aSEmmanuel Vadot}; 316*f126890aSEmmanuel Vadot 317*f126890aSEmmanuel Vadot®_dcdc2 { 318*f126890aSEmmanuel Vadot regulator-always-on; 319*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 320*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 321*f126890aSEmmanuel Vadot regulator-name = "vdd-cpua"; 322*f126890aSEmmanuel Vadot}; 323*f126890aSEmmanuel Vadot 324*f126890aSEmmanuel Vadot®_dcdc3 { 325*f126890aSEmmanuel Vadot regulator-always-on; 326*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 327*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 328*f126890aSEmmanuel Vadot regulator-name = "vdd-cpub"; 329*f126890aSEmmanuel Vadot}; 330*f126890aSEmmanuel Vadot 331*f126890aSEmmanuel Vadot®_dcdc4 { 332*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 333*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 334*f126890aSEmmanuel Vadot regulator-name = "vdd-gpu"; 335*f126890aSEmmanuel Vadot}; 336*f126890aSEmmanuel Vadot 337*f126890aSEmmanuel Vadot®_dcdc5 { 338*f126890aSEmmanuel Vadot regulator-always-on; 339*f126890aSEmmanuel Vadot regulator-min-microvolt = <1500000>; 340*f126890aSEmmanuel Vadot regulator-max-microvolt = <1500000>; 341*f126890aSEmmanuel Vadot regulator-name = "vcc-dram"; 342*f126890aSEmmanuel Vadot}; 343*f126890aSEmmanuel Vadot 344*f126890aSEmmanuel Vadot®_dcdc6 { 345*f126890aSEmmanuel Vadot regulator-always-on; 346*f126890aSEmmanuel Vadot regulator-min-microvolt = <900000>; 347*f126890aSEmmanuel Vadot regulator-max-microvolt = <900000>; 348*f126890aSEmmanuel Vadot regulator-name = "vdd-sys"; 349*f126890aSEmmanuel Vadot}; 350*f126890aSEmmanuel Vadot 351*f126890aSEmmanuel Vadot®_dldo2 { 352*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 353*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 354*f126890aSEmmanuel Vadot regulator-name = "dp-pwr"; 355*f126890aSEmmanuel Vadot}; 356*f126890aSEmmanuel Vadot 357*f126890aSEmmanuel Vadot®_dldo3 { 358*f126890aSEmmanuel Vadot regulator-always-on; 359*f126890aSEmmanuel Vadot regulator-min-microvolt = <2500000>; 360*f126890aSEmmanuel Vadot regulator-max-microvolt = <2500000>; 361*f126890aSEmmanuel Vadot regulator-name = "ephy-io"; 362*f126890aSEmmanuel Vadot}; 363*f126890aSEmmanuel Vadot 364*f126890aSEmmanuel Vadot®_dldo4 { 365*f126890aSEmmanuel Vadot /* 366*f126890aSEmmanuel Vadot * The PHY requires 20ms after all voltages are applied until core 367*f126890aSEmmanuel Vadot * logic is ready and 30ms after the reset pin is de-asserted. 368*f126890aSEmmanuel Vadot * Set a 100ms delay to account for PMIC ramp time and board traces. 369*f126890aSEmmanuel Vadot */ 370*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <100000>; 371*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 372*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 373*f126890aSEmmanuel Vadot regulator-name = "ephy"; 374*f126890aSEmmanuel Vadot}; 375*f126890aSEmmanuel Vadot 376*f126890aSEmmanuel Vadot®_drivevbus { 377*f126890aSEmmanuel Vadot regulator-name = "usb0-vbus"; 378*f126890aSEmmanuel Vadot status = "okay"; 379*f126890aSEmmanuel Vadot}; 380*f126890aSEmmanuel Vadot 381*f126890aSEmmanuel Vadot®_eldo1 { 382*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 383*f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 384*f126890aSEmmanuel Vadot regulator-name = "dp-bridge-1"; 385*f126890aSEmmanuel Vadot}; 386*f126890aSEmmanuel Vadot 387*f126890aSEmmanuel Vadot®_eldo2 { 388*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 389*f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 390*f126890aSEmmanuel Vadot regulator-name = "dp-bridge-2"; 391*f126890aSEmmanuel Vadot}; 392*f126890aSEmmanuel Vadot 393*f126890aSEmmanuel Vadot®_fldo1 { 394*f126890aSEmmanuel Vadot /* TODO should be handled by USB PHY */ 395*f126890aSEmmanuel Vadot regulator-always-on; 396*f126890aSEmmanuel Vadot regulator-min-microvolt = <1080000>; 397*f126890aSEmmanuel Vadot regulator-max-microvolt = <1320000>; 398*f126890aSEmmanuel Vadot regulator-name = "vdd12-hsic"; 399*f126890aSEmmanuel Vadot}; 400*f126890aSEmmanuel Vadot 401*f126890aSEmmanuel Vadot®_fldo2 { 402*f126890aSEmmanuel Vadot /* 403*f126890aSEmmanuel Vadot * Despite the embedded CPUs core not being used in any way, 404*f126890aSEmmanuel Vadot * this must remain on or the system will hang. 405*f126890aSEmmanuel Vadot */ 406*f126890aSEmmanuel Vadot regulator-always-on; 407*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 408*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 409*f126890aSEmmanuel Vadot regulator-name = "vdd-cpus"; 410*f126890aSEmmanuel Vadot}; 411*f126890aSEmmanuel Vadot 412*f126890aSEmmanuel Vadot®_rtc_ldo { 413*f126890aSEmmanuel Vadot regulator-name = "vcc-rtc"; 414*f126890aSEmmanuel Vadot}; 415*f126890aSEmmanuel Vadot 416*f126890aSEmmanuel Vadot®_sw { 417*f126890aSEmmanuel Vadot regulator-name = "vcc-wifi-io"; 418*f126890aSEmmanuel Vadot}; 419*f126890aSEmmanuel Vadot 420*f126890aSEmmanuel Vadot&spdif { 421*f126890aSEmmanuel Vadot status = "okay"; 422*f126890aSEmmanuel Vadot}; 423*f126890aSEmmanuel Vadot 424*f126890aSEmmanuel Vadot&uart0 { 425*f126890aSEmmanuel Vadot pinctrl-names = "default"; 426*f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_pb_pins>; 427*f126890aSEmmanuel Vadot status = "okay"; 428*f126890aSEmmanuel Vadot}; 429*f126890aSEmmanuel Vadot 430*f126890aSEmmanuel Vadot&uart1 { 431*f126890aSEmmanuel Vadot pinctrl-names = "default"; 432*f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; 433*f126890aSEmmanuel Vadot uart-has-rtscts; 434*f126890aSEmmanuel Vadot status = "okay"; 435*f126890aSEmmanuel Vadot 436*f126890aSEmmanuel Vadot bluetooth { 437*f126890aSEmmanuel Vadot compatible = "brcm,bcm4330-bt"; 438*f126890aSEmmanuel Vadot clocks = <&ac100_rtc 1>; 439*f126890aSEmmanuel Vadot clock-names = "lpo"; 440*f126890aSEmmanuel Vadot vbat-supply = <®_dcdc1>; 441*f126890aSEmmanuel Vadot vddio-supply = <®_sw>; 442*f126890aSEmmanuel Vadot device-wakeup-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */ 443*f126890aSEmmanuel Vadot host-wakeup-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ 444*f126890aSEmmanuel Vadot shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ 445*f126890aSEmmanuel Vadot }; 446*f126890aSEmmanuel Vadot}; 447*f126890aSEmmanuel Vadot 448*f126890aSEmmanuel Vadot&usb_otg { 449*f126890aSEmmanuel Vadot dr_mode = "otg"; 450*f126890aSEmmanuel Vadot status = "okay"; 451*f126890aSEmmanuel Vadot}; 452*f126890aSEmmanuel Vadot 453*f126890aSEmmanuel Vadot&usb_power_supply { 454*f126890aSEmmanuel Vadot status = "okay"; 455*f126890aSEmmanuel Vadot}; 456*f126890aSEmmanuel Vadot 457*f126890aSEmmanuel Vadot&usbphy { 458*f126890aSEmmanuel Vadot usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ 459*f126890aSEmmanuel Vadot usb0_vbus_power-supply = <&usb_power_supply>; 460*f126890aSEmmanuel Vadot usb0_vbus-supply = <®_drivevbus>; 461*f126890aSEmmanuel Vadot usb1_vbus-supply = <®_usb1_vbus>; 462*f126890aSEmmanuel Vadot usb2_vbus-supply = <®_usb2_vbus>; 463*f126890aSEmmanuel Vadot status = "okay"; 464*f126890aSEmmanuel Vadot}; 465