1*f126890aSEmmanuel Vadot/* 2*f126890aSEmmanuel Vadot * Copyright 2014 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 "sun9i-a80.dtsi" 47*f126890aSEmmanuel Vadot 48*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot/ { 51*f126890aSEmmanuel Vadot model = "Merrii A80 Optimus Board"; 52*f126890aSEmmanuel Vadot compatible = "merrii,a80-optimus", "allwinner,sun9i-a80"; 53*f126890aSEmmanuel Vadot 54*f126890aSEmmanuel Vadot aliases { 55*f126890aSEmmanuel Vadot serial0 = &uart0; 56*f126890aSEmmanuel Vadot serial1 = &uart4; 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 leds { 64*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot /* The LED names match those found on the board */ 67*f126890aSEmmanuel Vadot led2 { 68*f126890aSEmmanuel Vadot label = "optimus:led2:usr"; 69*f126890aSEmmanuel Vadot gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot 72*f126890aSEmmanuel Vadot led3 { 73*f126890aSEmmanuel Vadot label = "optimus:led3:usr"; 74*f126890aSEmmanuel Vadot gpios = <&r_pio 1 15 GPIO_ACTIVE_HIGH>; /* PM15 */ 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot led4 { 78*f126890aSEmmanuel Vadot label = "optimus:led4:usr"; 79*f126890aSEmmanuel Vadot gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>; 80*f126890aSEmmanuel Vadot }; 81*f126890aSEmmanuel Vadot }; 82*f126890aSEmmanuel Vadot 83*f126890aSEmmanuel Vadot reg_usb1_vbus: usb1-vbus { 84*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 85*f126890aSEmmanuel Vadot regulator-name = "usb1-vbus"; 86*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 87*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 88*f126890aSEmmanuel Vadot enable-active-high; 89*f126890aSEmmanuel Vadot gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ 90*f126890aSEmmanuel Vadot }; 91*f126890aSEmmanuel Vadot 92*f126890aSEmmanuel Vadot reg_usb3_vbus: usb3-vbus { 93*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 94*f126890aSEmmanuel Vadot regulator-name = "usb3-vbus"; 95*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 96*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 97*f126890aSEmmanuel Vadot enable-active-high; 98*f126890aSEmmanuel Vadot gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ 99*f126890aSEmmanuel Vadot }; 100*f126890aSEmmanuel Vadot 101*f126890aSEmmanuel Vadot wifi_pwrseq: wifi-pwrseq { 102*f126890aSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 103*f126890aSEmmanuel Vadot clocks = <&ac100_rtc 1>; 104*f126890aSEmmanuel Vadot clock-names = "ext_clock"; 105*f126890aSEmmanuel Vadot /* enables internal regulator and de-asserts reset */ 106*f126890aSEmmanuel Vadot reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */ 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot}; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot&ehci0 { 111*f126890aSEmmanuel Vadot status = "okay"; 112*f126890aSEmmanuel Vadot}; 113*f126890aSEmmanuel Vadot 114*f126890aSEmmanuel Vadot&ehci1 { 115*f126890aSEmmanuel Vadot /* Enable if HSIC peripheral is connected */ 116*f126890aSEmmanuel Vadot status = "disabled"; 117*f126890aSEmmanuel Vadot}; 118*f126890aSEmmanuel Vadot 119*f126890aSEmmanuel Vadot&ehci2 { 120*f126890aSEmmanuel Vadot status = "okay"; 121*f126890aSEmmanuel Vadot}; 122*f126890aSEmmanuel Vadot 123*f126890aSEmmanuel Vadot&gmac { 124*f126890aSEmmanuel Vadot pinctrl-names = "default"; 125*f126890aSEmmanuel Vadot pinctrl-0 = <&gmac_rgmii_pins>; 126*f126890aSEmmanuel Vadot phy-handle = <&phy1>; 127*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 128*f126890aSEmmanuel Vadot phy-supply = <®_cldo1>; 129*f126890aSEmmanuel Vadot status = "okay"; 130*f126890aSEmmanuel Vadot}; 131*f126890aSEmmanuel Vadot 132*f126890aSEmmanuel Vadot&mdio { 133*f126890aSEmmanuel Vadot phy1: ethernet-phy@1 { 134*f126890aSEmmanuel Vadot reg = <1>; 135*f126890aSEmmanuel Vadot }; 136*f126890aSEmmanuel Vadot}; 137*f126890aSEmmanuel Vadot 138*f126890aSEmmanuel Vadot&mmc0 { 139*f126890aSEmmanuel Vadot pinctrl-names = "default"; 140*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc0_pins>; 141*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 142*f126890aSEmmanuel Vadot bus-width = <4>; 143*f126890aSEmmanuel Vadot cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH8 */ 144*f126890aSEmmanuel Vadot status = "okay"; 145*f126890aSEmmanuel Vadot}; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot&mmc1 { 148*f126890aSEmmanuel Vadot pinctrl-names = "default"; 149*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc1_pins>; 150*f126890aSEmmanuel Vadot vmmc-supply = <®_dldo1>; 151*f126890aSEmmanuel Vadot vqmmc-supply = <®_cldo3>; 152*f126890aSEmmanuel Vadot mmc-pwrseq = <&wifi_pwrseq>; 153*f126890aSEmmanuel Vadot bus-width = <4>; 154*f126890aSEmmanuel Vadot non-removable; 155*f126890aSEmmanuel Vadot status = "okay"; 156*f126890aSEmmanuel Vadot}; 157*f126890aSEmmanuel Vadot 158*f126890aSEmmanuel Vadot&mmc1_pins { 159*f126890aSEmmanuel Vadot bias-pull-up; 160*f126890aSEmmanuel Vadot}; 161*f126890aSEmmanuel Vadot 162*f126890aSEmmanuel Vadot&mmc2 { 163*f126890aSEmmanuel Vadot pinctrl-names = "default"; 164*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc2_8bit_pins>; 165*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 166*f126890aSEmmanuel Vadot bus-width = <8>; 167*f126890aSEmmanuel Vadot non-removable; 168*f126890aSEmmanuel Vadot cap-mmc-hw-reset; 169*f126890aSEmmanuel Vadot status = "okay"; 170*f126890aSEmmanuel Vadot}; 171*f126890aSEmmanuel Vadot 172*f126890aSEmmanuel Vadot&mmc2_8bit_pins { 173*f126890aSEmmanuel Vadot /* Increase drive strength for DDR modes */ 174*f126890aSEmmanuel Vadot drive-strength = <40>; 175*f126890aSEmmanuel Vadot}; 176*f126890aSEmmanuel Vadot 177*f126890aSEmmanuel Vadot&ohci0 { 178*f126890aSEmmanuel Vadot status = "okay"; 179*f126890aSEmmanuel Vadot}; 180*f126890aSEmmanuel Vadot 181*f126890aSEmmanuel Vadot&ohci2 { 182*f126890aSEmmanuel Vadot status = "okay"; 183*f126890aSEmmanuel Vadot}; 184*f126890aSEmmanuel Vadot 185*f126890aSEmmanuel Vadot&osc32k { 186*f126890aSEmmanuel Vadot /* osc32k input is from AC100 */ 187*f126890aSEmmanuel Vadot clocks = <&ac100_rtc 0>; 188*f126890aSEmmanuel Vadot}; 189*f126890aSEmmanuel Vadot 190*f126890aSEmmanuel Vadot&pio { 191*f126890aSEmmanuel Vadot vcc-pa-supply = <®_ldo_io1>; 192*f126890aSEmmanuel Vadot vcc-pb-supply = <®_aldo2>; 193*f126890aSEmmanuel Vadot vcc-pc-supply = <®_dcdc1>; 194*f126890aSEmmanuel Vadot vcc-pd-supply = <®_dcdc1>; 195*f126890aSEmmanuel Vadot vcc-pe-supply = <®_eldo2>; 196*f126890aSEmmanuel Vadot vcc-pf-supply = <®_dcdc1>; 197*f126890aSEmmanuel Vadot vcc-pg-supply = <®_ldo_io0>; 198*f126890aSEmmanuel Vadot vcc-ph-supply = <®_dcdc1>; 199*f126890aSEmmanuel Vadot}; 200*f126890aSEmmanuel Vadot 201*f126890aSEmmanuel Vadot&r_ir { 202*f126890aSEmmanuel Vadot status = "okay"; 203*f126890aSEmmanuel Vadot}; 204*f126890aSEmmanuel Vadot 205*f126890aSEmmanuel Vadot&r_pio { 206*f126890aSEmmanuel Vadot vcc-pl-supply = <®_dldo2>; 207*f126890aSEmmanuel Vadot vcc-pm-supply = <®_eldo3>; 208*f126890aSEmmanuel Vadot}; 209*f126890aSEmmanuel Vadot 210*f126890aSEmmanuel Vadot&r_rsb { 211*f126890aSEmmanuel Vadot status = "okay"; 212*f126890aSEmmanuel Vadot 213*f126890aSEmmanuel Vadot axp809: pmic@3a3 { 214*f126890aSEmmanuel Vadot reg = <0x3a3>; 215*f126890aSEmmanuel Vadot interrupt-parent = <&nmi_intc>; 216*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 217*f126890aSEmmanuel Vadot 218*f126890aSEmmanuel Vadot regulators { 219*f126890aSEmmanuel Vadot reg_aldo1: aldo1 { 220*f126890aSEmmanuel Vadot /* 221*f126890aSEmmanuel Vadot * TODO: This should be handled by the 222*f126890aSEmmanuel Vadot * USB PHY driver. 223*f126890aSEmmanuel Vadot */ 224*f126890aSEmmanuel Vadot regulator-always-on; 225*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 226*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 227*f126890aSEmmanuel Vadot regulator-name = "vcc33-usbh"; 228*f126890aSEmmanuel Vadot }; 229*f126890aSEmmanuel Vadot 230*f126890aSEmmanuel Vadot reg_aldo2: aldo2 { 231*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 232*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 233*f126890aSEmmanuel Vadot regulator-name = "vcc-pb-io-cam"; 234*f126890aSEmmanuel Vadot }; 235*f126890aSEmmanuel Vadot 236*f126890aSEmmanuel Vadot aldo3 { 237*f126890aSEmmanuel Vadot /* unused */ 238*f126890aSEmmanuel Vadot }; 239*f126890aSEmmanuel Vadot 240*f126890aSEmmanuel Vadot reg_dc5ldo: dc5ldo { 241*f126890aSEmmanuel Vadot regulator-always-on; 242*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 243*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 244*f126890aSEmmanuel Vadot regulator-name = "vdd-cpus-09-usbh"; 245*f126890aSEmmanuel Vadot }; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot dc1sw { 248*f126890aSEmmanuel Vadot /* unused */ 249*f126890aSEmmanuel Vadot }; 250*f126890aSEmmanuel Vadot 251*f126890aSEmmanuel Vadot reg_dcdc1: dcdc1 { 252*f126890aSEmmanuel Vadot regulator-always-on; 253*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 254*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 255*f126890aSEmmanuel Vadot regulator-name = "vcc-3v"; 256*f126890aSEmmanuel Vadot }; 257*f126890aSEmmanuel Vadot 258*f126890aSEmmanuel Vadot reg_dcdc2: dcdc2 { 259*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 260*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 261*f126890aSEmmanuel Vadot regulator-name = "vdd-gpu"; 262*f126890aSEmmanuel Vadot }; 263*f126890aSEmmanuel Vadot 264*f126890aSEmmanuel Vadot reg_dcdc3: dcdc3 { 265*f126890aSEmmanuel Vadot regulator-always-on; 266*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 267*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 268*f126890aSEmmanuel Vadot regulator-name = "vdd-cpua"; 269*f126890aSEmmanuel Vadot }; 270*f126890aSEmmanuel Vadot 271*f126890aSEmmanuel Vadot reg_dcdc4: dcdc4 { 272*f126890aSEmmanuel Vadot regulator-always-on; 273*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 274*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 275*f126890aSEmmanuel Vadot regulator-name = "vdd-sys-usb0-hdmi"; 276*f126890aSEmmanuel Vadot }; 277*f126890aSEmmanuel Vadot 278*f126890aSEmmanuel Vadot reg_dcdc5: dcdc5 { 279*f126890aSEmmanuel Vadot regulator-always-on; 280*f126890aSEmmanuel Vadot regulator-min-microvolt = <1425000>; 281*f126890aSEmmanuel Vadot regulator-max-microvolt = <1575000>; 282*f126890aSEmmanuel Vadot regulator-name = "vcc-dram"; 283*f126890aSEmmanuel Vadot }; 284*f126890aSEmmanuel Vadot 285*f126890aSEmmanuel Vadot reg_dldo1: dldo1 { 286*f126890aSEmmanuel Vadot /* 287*f126890aSEmmanuel Vadot * The WiFi chip supports a wide range 288*f126890aSEmmanuel Vadot * (3.0 ~ 4.8V) of voltages, and so does 289*f126890aSEmmanuel Vadot * this regulator (3.0 ~ 4.2V), but 290*f126890aSEmmanuel Vadot * Allwinner SDK always sets it to 3.3V. 291*f126890aSEmmanuel Vadot */ 292*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 293*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 294*f126890aSEmmanuel Vadot regulator-name = "vcc-wifi"; 295*f126890aSEmmanuel Vadot }; 296*f126890aSEmmanuel Vadot 297*f126890aSEmmanuel Vadot reg_dldo2: dldo2 { 298*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 299*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 300*f126890aSEmmanuel Vadot regulator-name = "vcc-pl"; 301*f126890aSEmmanuel Vadot }; 302*f126890aSEmmanuel Vadot 303*f126890aSEmmanuel Vadot reg_eldo1: eldo1 { 304*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 305*f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 306*f126890aSEmmanuel Vadot regulator-name = "vcc-dvdd-cam"; 307*f126890aSEmmanuel Vadot }; 308*f126890aSEmmanuel Vadot 309*f126890aSEmmanuel Vadot reg_eldo2: eldo2 { 310*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 311*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 312*f126890aSEmmanuel Vadot regulator-name = "vcc-pe"; 313*f126890aSEmmanuel Vadot }; 314*f126890aSEmmanuel Vadot 315*f126890aSEmmanuel Vadot reg_eldo3: eldo3 { 316*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 317*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 318*f126890aSEmmanuel Vadot regulator-name = "vcc-pm-codec-io1"; 319*f126890aSEmmanuel Vadot }; 320*f126890aSEmmanuel Vadot 321*f126890aSEmmanuel Vadot reg_ldo_io0: ldo_io0 { 322*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 323*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 324*f126890aSEmmanuel Vadot regulator-name = "vcc-pg"; 325*f126890aSEmmanuel Vadot }; 326*f126890aSEmmanuel Vadot 327*f126890aSEmmanuel Vadot reg_ldo_io1: ldo_io1 { 328*f126890aSEmmanuel Vadot regulator-min-microvolt = <2500000>; 329*f126890aSEmmanuel Vadot regulator-max-microvolt = <2500000>; 330*f126890aSEmmanuel Vadot regulator-name = "vcc-pa-gmac-2v5"; 331*f126890aSEmmanuel Vadot }; 332*f126890aSEmmanuel Vadot 333*f126890aSEmmanuel Vadot reg_rtc_ldo: rtc_ldo { 334*f126890aSEmmanuel Vadot regulator-name = "vcc-rtc-vdd1v8-io"; 335*f126890aSEmmanuel Vadot }; 336*f126890aSEmmanuel Vadot 337*f126890aSEmmanuel Vadot sw { 338*f126890aSEmmanuel Vadot /* unused */ 339*f126890aSEmmanuel Vadot }; 340*f126890aSEmmanuel Vadot }; 341*f126890aSEmmanuel Vadot }; 342*f126890aSEmmanuel Vadot 343*f126890aSEmmanuel Vadot axp806: pmic@745 { 344*f126890aSEmmanuel Vadot compatible = "x-powers,axp806"; 345*f126890aSEmmanuel Vadot reg = <0x745>; 346*f126890aSEmmanuel Vadot interrupt-parent = <&nmi_intc>; 347*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 348*f126890aSEmmanuel Vadot interrupt-controller; 349*f126890aSEmmanuel Vadot #interrupt-cells = <1>; 350*f126890aSEmmanuel Vadot bldoin-supply = <®_dcdce>; 351*f126890aSEmmanuel Vadot 352*f126890aSEmmanuel Vadot regulators { 353*f126890aSEmmanuel Vadot reg_s_aldo1: aldo1 { 354*f126890aSEmmanuel Vadot regulator-always-on; 355*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 356*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 357*f126890aSEmmanuel Vadot regulator-name = "avcc"; 358*f126890aSEmmanuel Vadot }; 359*f126890aSEmmanuel Vadot 360*f126890aSEmmanuel Vadot aldo2 { 361*f126890aSEmmanuel Vadot /* 362*f126890aSEmmanuel Vadot * unused, but use a different name to 363*f126890aSEmmanuel Vadot * avoid name clash with axp809's aldo's 364*f126890aSEmmanuel Vadot */ 365*f126890aSEmmanuel Vadot regulator-name = "s_aldo2"; 366*f126890aSEmmanuel Vadot }; 367*f126890aSEmmanuel Vadot 368*f126890aSEmmanuel Vadot aldo3 { 369*f126890aSEmmanuel Vadot /* 370*f126890aSEmmanuel Vadot * unused, but use a different name to 371*f126890aSEmmanuel Vadot * avoid name clash with axp809's aldo's 372*f126890aSEmmanuel Vadot */ 373*f126890aSEmmanuel Vadot regulator-name = "s_aldo3"; 374*f126890aSEmmanuel Vadot }; 375*f126890aSEmmanuel Vadot 376*f126890aSEmmanuel Vadot reg_bldo1: bldo1 { 377*f126890aSEmmanuel Vadot regulator-always-on; 378*f126890aSEmmanuel Vadot regulator-min-microvolt = <1700000>; 379*f126890aSEmmanuel Vadot regulator-max-microvolt = <1900000>; 380*f126890aSEmmanuel Vadot regulator-name = "vcc18-efuse-adc-display-csi"; 381*f126890aSEmmanuel Vadot }; 382*f126890aSEmmanuel Vadot 383*f126890aSEmmanuel Vadot reg_bldo2: bldo2 { 384*f126890aSEmmanuel Vadot regulator-always-on; 385*f126890aSEmmanuel Vadot regulator-min-microvolt = <1700000>; 386*f126890aSEmmanuel Vadot regulator-max-microvolt = <1900000>; 387*f126890aSEmmanuel Vadot regulator-name = 388*f126890aSEmmanuel Vadot "vdd18-drampll-vcc18-pll-cpvdd"; 389*f126890aSEmmanuel Vadot }; 390*f126890aSEmmanuel Vadot 391*f126890aSEmmanuel Vadot bldo3 { 392*f126890aSEmmanuel Vadot /* unused */ 393*f126890aSEmmanuel Vadot }; 394*f126890aSEmmanuel Vadot 395*f126890aSEmmanuel Vadot reg_bldo4: bldo4 { 396*f126890aSEmmanuel Vadot regulator-min-microvolt = <1100000>; 397*f126890aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 398*f126890aSEmmanuel Vadot regulator-name = "vcc12-hsic"; 399*f126890aSEmmanuel Vadot }; 400*f126890aSEmmanuel Vadot 401*f126890aSEmmanuel Vadot reg_cldo1: cldo1 { 402*f126890aSEmmanuel Vadot /* 403*f126890aSEmmanuel Vadot * This was 3V in the original design, but 404*f126890aSEmmanuel Vadot * 3.3V is the recommended supply voltage 405*f126890aSEmmanuel Vadot * for the Ethernet PHY. 406*f126890aSEmmanuel Vadot */ 407*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 408*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 409*f126890aSEmmanuel Vadot /* 410*f126890aSEmmanuel Vadot * The PHY requires 20ms after all voltages 411*f126890aSEmmanuel Vadot * are applied until core logic is ready and 412*f126890aSEmmanuel Vadot * 30ms after the reset pin is de-asserted. 413*f126890aSEmmanuel Vadot * Set a 100ms delay to account for PMIC 414*f126890aSEmmanuel Vadot * ramp time and board traces. 415*f126890aSEmmanuel Vadot */ 416*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <100000>; 417*f126890aSEmmanuel Vadot regulator-name = "vcc-gmac-phy"; 418*f126890aSEmmanuel Vadot }; 419*f126890aSEmmanuel Vadot 420*f126890aSEmmanuel Vadot reg_cldo2: cldo2 { 421*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 422*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 423*f126890aSEmmanuel Vadot regulator-name = "afvcc-cam"; 424*f126890aSEmmanuel Vadot }; 425*f126890aSEmmanuel Vadot 426*f126890aSEmmanuel Vadot reg_cldo3: cldo3 { 427*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 428*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 429*f126890aSEmmanuel Vadot regulator-name = "vcc-io-wifi-codec-io2"; 430*f126890aSEmmanuel Vadot }; 431*f126890aSEmmanuel Vadot 432*f126890aSEmmanuel Vadot reg_dcdca: dcdca { 433*f126890aSEmmanuel Vadot regulator-always-on; 434*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 435*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 436*f126890aSEmmanuel Vadot regulator-name = "vdd-cpub"; 437*f126890aSEmmanuel Vadot }; 438*f126890aSEmmanuel Vadot 439*f126890aSEmmanuel Vadot reg_dcdcd: dcdcd { 440*f126890aSEmmanuel Vadot regulator-always-on; 441*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 442*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 443*f126890aSEmmanuel Vadot regulator-name = "vdd-vpu"; 444*f126890aSEmmanuel Vadot }; 445*f126890aSEmmanuel Vadot 446*f126890aSEmmanuel Vadot reg_dcdce: dcdce { 447*f126890aSEmmanuel Vadot regulator-always-on; 448*f126890aSEmmanuel Vadot regulator-min-microvolt = <2100000>; 449*f126890aSEmmanuel Vadot regulator-max-microvolt = <2100000>; 450*f126890aSEmmanuel Vadot regulator-name = "vcc-bldo-codec-ldoin"; 451*f126890aSEmmanuel Vadot }; 452*f126890aSEmmanuel Vadot 453*f126890aSEmmanuel Vadot sw { 454*f126890aSEmmanuel Vadot /* 455*f126890aSEmmanuel Vadot * unused, but use a different name to 456*f126890aSEmmanuel Vadot * avoid name clash with axp809's sw 457*f126890aSEmmanuel Vadot */ 458*f126890aSEmmanuel Vadot regulator-name = "s_sw"; 459*f126890aSEmmanuel Vadot }; 460*f126890aSEmmanuel Vadot }; 461*f126890aSEmmanuel Vadot }; 462*f126890aSEmmanuel Vadot 463*f126890aSEmmanuel Vadot ac100: codec@e89 { 464*f126890aSEmmanuel Vadot compatible = "x-powers,ac100"; 465*f126890aSEmmanuel Vadot reg = <0xe89>; 466*f126890aSEmmanuel Vadot 467*f126890aSEmmanuel Vadot ac100_codec: codec { 468*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-codec"; 469*f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 470*f126890aSEmmanuel Vadot interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ 471*f126890aSEmmanuel Vadot #clock-cells = <0>; 472*f126890aSEmmanuel Vadot clock-output-names = "4M_adda"; 473*f126890aSEmmanuel Vadot }; 474*f126890aSEmmanuel Vadot 475*f126890aSEmmanuel Vadot ac100_rtc: rtc { 476*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-rtc"; 477*f126890aSEmmanuel Vadot interrupt-parent = <&nmi_intc>; 478*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 479*f126890aSEmmanuel Vadot clocks = <&ac100_codec>; 480*f126890aSEmmanuel Vadot #clock-cells = <1>; 481*f126890aSEmmanuel Vadot clock-output-names = "cko1_rtc", 482*f126890aSEmmanuel Vadot "cko2_rtc", 483*f126890aSEmmanuel Vadot "cko3_rtc"; 484*f126890aSEmmanuel Vadot }; 485*f126890aSEmmanuel Vadot }; 486*f126890aSEmmanuel Vadot}; 487*f126890aSEmmanuel Vadot 488*f126890aSEmmanuel Vadot#include "axp809.dtsi" 489*f126890aSEmmanuel Vadot 490*f126890aSEmmanuel Vadot&uart0 { 491*f126890aSEmmanuel Vadot pinctrl-names = "default"; 492*f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_ph_pins>; 493*f126890aSEmmanuel Vadot status = "okay"; 494*f126890aSEmmanuel Vadot}; 495*f126890aSEmmanuel Vadot 496*f126890aSEmmanuel Vadot&usbphy1 { 497*f126890aSEmmanuel Vadot phy-supply = <®_usb1_vbus>; 498*f126890aSEmmanuel Vadot status = "okay"; 499*f126890aSEmmanuel Vadot}; 500*f126890aSEmmanuel Vadot 501*f126890aSEmmanuel Vadot&usbphy2 { 502*f126890aSEmmanuel Vadot phy-supply = <®_bldo4>; 503*f126890aSEmmanuel Vadot /* Enable if HSIC peripheral is connected */ 504*f126890aSEmmanuel Vadot status = "disabled"; 505*f126890aSEmmanuel Vadot}; 506*f126890aSEmmanuel Vadot 507*f126890aSEmmanuel Vadot&usbphy3 { 508*f126890aSEmmanuel Vadot phy-supply = <®_usb3_vbus>; 509*f126890aSEmmanuel Vadot status = "okay"; 510*f126890aSEmmanuel Vadot}; 511