1*f126890aSEmmanuel Vadot/* 2*f126890aSEmmanuel Vadot * Copyright 2015 Tyler Baker 3*f126890aSEmmanuel Vadot * 4*f126890aSEmmanuel Vadot * Tyler Baker <tyler.baker@linaro.org> 5*f126890aSEmmanuel Vadot * Chen-Yu Tsai <wens@csie.org> 6*f126890aSEmmanuel Vadot * 7*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 8*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 9*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 10*f126890aSEmmanuel Vadot * whole. 11*f126890aSEmmanuel Vadot * 12*f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 13*f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 14*f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 15*f126890aSEmmanuel Vadot * License, or (at your option) any later version. 16*f126890aSEmmanuel Vadot * 17*f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 18*f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 19*f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*f126890aSEmmanuel Vadot * GNU General Public License for more details. 21*f126890aSEmmanuel Vadot * 22*f126890aSEmmanuel Vadot * Or, alternatively, 23*f126890aSEmmanuel Vadot * 24*f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 25*f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 26*f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 27*f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 28*f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 29*f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 30*f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 31*f126890aSEmmanuel Vadot * conditions: 32*f126890aSEmmanuel Vadot * 33*f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 34*f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 35*f126890aSEmmanuel Vadot * 36*f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 37*f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 38*f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 39*f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 40*f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 41*f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 42*f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 43*f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 44*f126890aSEmmanuel Vadot */ 45*f126890aSEmmanuel Vadot 46*f126890aSEmmanuel Vadot/dts-v1/; 47*f126890aSEmmanuel Vadot#include "sun9i-a80.dtsi" 48*f126890aSEmmanuel Vadot 49*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot/ { 52*f126890aSEmmanuel Vadot model = "Cubietech Cubieboard4"; 53*f126890aSEmmanuel Vadot compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80"; 54*f126890aSEmmanuel Vadot 55*f126890aSEmmanuel Vadot aliases { 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 leds { 64*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot led-0 { 67*f126890aSEmmanuel Vadot label = "cubieboard4:green:usr"; 68*f126890aSEmmanuel Vadot gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* PH17 */ 69*f126890aSEmmanuel Vadot }; 70*f126890aSEmmanuel Vadot 71*f126890aSEmmanuel Vadot led-1 { 72*f126890aSEmmanuel Vadot label = "cubieboard4:red:usr"; 73*f126890aSEmmanuel Vadot gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ 74*f126890aSEmmanuel Vadot }; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot vga-connector { 78*f126890aSEmmanuel Vadot compatible = "vga-connector"; 79*f126890aSEmmanuel Vadot label = "vga"; 80*f126890aSEmmanuel Vadot ddc-i2c-bus = <&i2c3>; 81*f126890aSEmmanuel Vadot 82*f126890aSEmmanuel Vadot port { 83*f126890aSEmmanuel Vadot vga_con_in: endpoint { 84*f126890aSEmmanuel Vadot remote-endpoint = <&vga_dac_out>; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot }; 87*f126890aSEmmanuel Vadot }; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot vga-dac { 90*f126890aSEmmanuel Vadot compatible = "corpro,gm7123", "adi,adv7123"; 91*f126890aSEmmanuel Vadot vdd-supply = <®_dcdc1>; 92*f126890aSEmmanuel Vadot 93*f126890aSEmmanuel Vadot ports { 94*f126890aSEmmanuel Vadot #address-cells = <1>; 95*f126890aSEmmanuel Vadot #size-cells = <0>; 96*f126890aSEmmanuel Vadot 97*f126890aSEmmanuel Vadot port@0 { 98*f126890aSEmmanuel Vadot reg = <0>; 99*f126890aSEmmanuel Vadot 100*f126890aSEmmanuel Vadot vga_dac_in: endpoint { 101*f126890aSEmmanuel Vadot remote-endpoint = <&tcon0_out_vga>; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot port@1 { 106*f126890aSEmmanuel Vadot reg = <1>; 107*f126890aSEmmanuel Vadot 108*f126890aSEmmanuel Vadot vga_dac_out: endpoint { 109*f126890aSEmmanuel Vadot remote-endpoint = <&vga_con_in>; 110*f126890aSEmmanuel Vadot }; 111*f126890aSEmmanuel Vadot }; 112*f126890aSEmmanuel Vadot }; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot wifi_pwrseq: wifi-pwrseq { 116*f126890aSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 117*f126890aSEmmanuel Vadot clocks = <&ac100_rtc 1>; 118*f126890aSEmmanuel Vadot clock-names = "ext_clock"; 119*f126890aSEmmanuel Vadot /* enables internal regulator and de-asserts reset */ 120*f126890aSEmmanuel Vadot reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */ 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot}; 123*f126890aSEmmanuel Vadot 124*f126890aSEmmanuel Vadot&de { 125*f126890aSEmmanuel Vadot status = "okay"; 126*f126890aSEmmanuel Vadot}; 127*f126890aSEmmanuel Vadot 128*f126890aSEmmanuel Vadot&gmac { 129*f126890aSEmmanuel Vadot pinctrl-names = "default"; 130*f126890aSEmmanuel Vadot pinctrl-0 = <&gmac_rgmii_pins>; 131*f126890aSEmmanuel Vadot phy-handle = <&phy1>; 132*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 133*f126890aSEmmanuel Vadot phy-supply = <®_cldo1>; 134*f126890aSEmmanuel Vadot status = "okay"; 135*f126890aSEmmanuel Vadot}; 136*f126890aSEmmanuel Vadot 137*f126890aSEmmanuel Vadot&i2c3 { 138*f126890aSEmmanuel Vadot pinctrl-names = "default"; 139*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c3_pins>; 140*f126890aSEmmanuel Vadot status = "okay"; 141*f126890aSEmmanuel Vadot}; 142*f126890aSEmmanuel Vadot 143*f126890aSEmmanuel Vadot&mdio { 144*f126890aSEmmanuel Vadot phy1: ethernet-phy@1 { 145*f126890aSEmmanuel Vadot reg = <1>; 146*f126890aSEmmanuel Vadot }; 147*f126890aSEmmanuel Vadot}; 148*f126890aSEmmanuel Vadot 149*f126890aSEmmanuel Vadot&mmc0 { 150*f126890aSEmmanuel Vadot pinctrl-names = "default"; 151*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc0_pins>; 152*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 153*f126890aSEmmanuel Vadot bus-width = <4>; 154*f126890aSEmmanuel Vadot cd-gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; /* PH18 */ 155*f126890aSEmmanuel Vadot status = "okay"; 156*f126890aSEmmanuel Vadot}; 157*f126890aSEmmanuel Vadot 158*f126890aSEmmanuel Vadot&mmc1 { 159*f126890aSEmmanuel Vadot pinctrl-names = "default"; 160*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc1_pins>; 161*f126890aSEmmanuel Vadot vmmc-supply = <®_dldo1>; 162*f126890aSEmmanuel Vadot vqmmc-supply = <®_cldo3>; 163*f126890aSEmmanuel Vadot mmc-pwrseq = <&wifi_pwrseq>; 164*f126890aSEmmanuel Vadot bus-width = <4>; 165*f126890aSEmmanuel Vadot non-removable; 166*f126890aSEmmanuel Vadot status = "okay"; 167*f126890aSEmmanuel Vadot}; 168*f126890aSEmmanuel Vadot 169*f126890aSEmmanuel Vadot&mmc1_pins { 170*f126890aSEmmanuel Vadot bias-pull-up; 171*f126890aSEmmanuel Vadot}; 172*f126890aSEmmanuel Vadot 173*f126890aSEmmanuel Vadot&mmc2 { 174*f126890aSEmmanuel Vadot pinctrl-names = "default"; 175*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc2_8bit_pins>; 176*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 177*f126890aSEmmanuel Vadot bus-width = <8>; 178*f126890aSEmmanuel Vadot non-removable; 179*f126890aSEmmanuel Vadot cap-mmc-hw-reset; 180*f126890aSEmmanuel Vadot status = "okay"; 181*f126890aSEmmanuel Vadot}; 182*f126890aSEmmanuel Vadot 183*f126890aSEmmanuel Vadot&mmc2_8bit_pins { 184*f126890aSEmmanuel Vadot /* Increase drive strength for DDR modes */ 185*f126890aSEmmanuel Vadot drive-strength = <40>; 186*f126890aSEmmanuel Vadot}; 187*f126890aSEmmanuel Vadot 188*f126890aSEmmanuel Vadot&osc32k { 189*f126890aSEmmanuel Vadot /* osc32k input is from AC100 */ 190*f126890aSEmmanuel Vadot clocks = <&ac100_rtc 0>; 191*f126890aSEmmanuel Vadot}; 192*f126890aSEmmanuel Vadot 193*f126890aSEmmanuel Vadot&pio { 194*f126890aSEmmanuel Vadot vcc-pa-supply = <®_ldo_io1>; 195*f126890aSEmmanuel Vadot vcc-pb-supply = <®_aldo2>; 196*f126890aSEmmanuel Vadot vcc-pc-supply = <®_dcdc1>; 197*f126890aSEmmanuel Vadot vcc-pd-supply = <®_dc1sw>; 198*f126890aSEmmanuel Vadot vcc-pe-supply = <®_eldo2>; 199*f126890aSEmmanuel Vadot vcc-pf-supply = <®_dcdc1>; 200*f126890aSEmmanuel Vadot vcc-pg-supply = <®_ldo_io0>; 201*f126890aSEmmanuel Vadot vcc-ph-supply = <®_dcdc1>; 202*f126890aSEmmanuel Vadot}; 203*f126890aSEmmanuel Vadot 204*f126890aSEmmanuel Vadot&r_ir { 205*f126890aSEmmanuel Vadot status = "okay"; 206*f126890aSEmmanuel Vadot}; 207*f126890aSEmmanuel Vadot 208*f126890aSEmmanuel Vadot&r_pio { 209*f126890aSEmmanuel Vadot vcc-pl-supply = <®_dldo2>; 210*f126890aSEmmanuel Vadot vcc-pm-supply = <®_eldo3>; 211*f126890aSEmmanuel Vadot}; 212*f126890aSEmmanuel Vadot 213*f126890aSEmmanuel Vadot&r_rsb { 214*f126890aSEmmanuel Vadot status = "okay"; 215*f126890aSEmmanuel Vadot 216*f126890aSEmmanuel Vadot axp809: pmic@3a3 { 217*f126890aSEmmanuel Vadot reg = <0x3a3>; 218*f126890aSEmmanuel Vadot interrupt-parent = <&nmi_intc>; 219*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 220*f126890aSEmmanuel Vadot 221*f126890aSEmmanuel Vadot regulators { 222*f126890aSEmmanuel Vadot reg_aldo1: aldo1 { 223*f126890aSEmmanuel Vadot /* 224*f126890aSEmmanuel Vadot * TODO: This should be handled by the 225*f126890aSEmmanuel Vadot * USB PHY driver. 226*f126890aSEmmanuel Vadot */ 227*f126890aSEmmanuel Vadot regulator-always-on; 228*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 229*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 230*f126890aSEmmanuel Vadot regulator-name = "vcc33-usbh"; 231*f126890aSEmmanuel Vadot }; 232*f126890aSEmmanuel Vadot 233*f126890aSEmmanuel Vadot reg_aldo2: aldo2 { 234*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 235*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 236*f126890aSEmmanuel Vadot regulator-name = "vcc-pb-io-cam"; 237*f126890aSEmmanuel Vadot }; 238*f126890aSEmmanuel Vadot 239*f126890aSEmmanuel Vadot aldo3 { 240*f126890aSEmmanuel Vadot /* unused */ 241*f126890aSEmmanuel Vadot }; 242*f126890aSEmmanuel Vadot 243*f126890aSEmmanuel Vadot reg_dc1sw: dc1sw { 244*f126890aSEmmanuel Vadot regulator-name = "vcc-pd"; 245*f126890aSEmmanuel Vadot }; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot reg_dc5ldo: dc5ldo { 248*f126890aSEmmanuel Vadot regulator-always-on; 249*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 250*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 251*f126890aSEmmanuel Vadot regulator-name = "vdd-cpus-09-usbh"; 252*f126890aSEmmanuel Vadot }; 253*f126890aSEmmanuel Vadot 254*f126890aSEmmanuel Vadot reg_dcdc1: dcdc1 { 255*f126890aSEmmanuel Vadot regulator-always-on; 256*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 257*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 258*f126890aSEmmanuel Vadot regulator-name = "vcc-3v"; 259*f126890aSEmmanuel Vadot }; 260*f126890aSEmmanuel Vadot 261*f126890aSEmmanuel Vadot reg_dcdc2: dcdc2 { 262*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 263*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 264*f126890aSEmmanuel Vadot regulator-name = "vdd-gpu"; 265*f126890aSEmmanuel Vadot }; 266*f126890aSEmmanuel Vadot 267*f126890aSEmmanuel Vadot reg_dcdc3: dcdc3 { 268*f126890aSEmmanuel Vadot regulator-always-on; 269*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 270*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 271*f126890aSEmmanuel Vadot regulator-name = "vdd-cpua"; 272*f126890aSEmmanuel Vadot }; 273*f126890aSEmmanuel Vadot 274*f126890aSEmmanuel Vadot reg_dcdc4: dcdc4 { 275*f126890aSEmmanuel Vadot regulator-always-on; 276*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 277*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 278*f126890aSEmmanuel Vadot regulator-name = "vdd-sys-usb0-hdmi"; 279*f126890aSEmmanuel Vadot }; 280*f126890aSEmmanuel Vadot 281*f126890aSEmmanuel Vadot reg_dcdc5: dcdc5 { 282*f126890aSEmmanuel Vadot regulator-always-on; 283*f126890aSEmmanuel Vadot regulator-min-microvolt = <1425000>; 284*f126890aSEmmanuel Vadot regulator-max-microvolt = <1575000>; 285*f126890aSEmmanuel Vadot regulator-name = "vcc-dram"; 286*f126890aSEmmanuel Vadot }; 287*f126890aSEmmanuel Vadot 288*f126890aSEmmanuel Vadot reg_dldo1: dldo1 { 289*f126890aSEmmanuel Vadot /* 290*f126890aSEmmanuel Vadot * The WiFi chip supports a wide range 291*f126890aSEmmanuel Vadot * (3.0 ~ 4.8V) of voltages, and so does 292*f126890aSEmmanuel Vadot * this regulator (3.0 ~ 4.2V), but 293*f126890aSEmmanuel Vadot * Allwinner SDK always sets it to 3.3V. 294*f126890aSEmmanuel Vadot */ 295*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 296*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 297*f126890aSEmmanuel Vadot regulator-name = "vcc-wifi"; 298*f126890aSEmmanuel Vadot }; 299*f126890aSEmmanuel Vadot 300*f126890aSEmmanuel Vadot reg_dldo2: dldo2 { 301*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 302*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 303*f126890aSEmmanuel Vadot regulator-name = "vcc-pl"; 304*f126890aSEmmanuel Vadot }; 305*f126890aSEmmanuel Vadot 306*f126890aSEmmanuel Vadot reg_eldo1: eldo1 { 307*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 308*f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 309*f126890aSEmmanuel Vadot regulator-name = "vcc-dvdd-cam"; 310*f126890aSEmmanuel Vadot }; 311*f126890aSEmmanuel Vadot 312*f126890aSEmmanuel Vadot reg_eldo2: eldo2 { 313*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 314*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 315*f126890aSEmmanuel Vadot regulator-name = "vcc-pe"; 316*f126890aSEmmanuel Vadot }; 317*f126890aSEmmanuel Vadot 318*f126890aSEmmanuel Vadot reg_eldo3: eldo3 { 319*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 320*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 321*f126890aSEmmanuel Vadot regulator-name = "vcc-pm-codec-io1"; 322*f126890aSEmmanuel Vadot }; 323*f126890aSEmmanuel Vadot 324*f126890aSEmmanuel Vadot reg_ldo_io0: ldo_io0 { 325*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 326*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 327*f126890aSEmmanuel Vadot regulator-name = "vcc-pg"; 328*f126890aSEmmanuel Vadot }; 329*f126890aSEmmanuel Vadot 330*f126890aSEmmanuel Vadot reg_ldo_io1: ldo_io1 { 331*f126890aSEmmanuel Vadot regulator-min-microvolt = <2500000>; 332*f126890aSEmmanuel Vadot regulator-max-microvolt = <2500000>; 333*f126890aSEmmanuel Vadot regulator-name = "vcc-pa-gmac-2v5"; 334*f126890aSEmmanuel Vadot }; 335*f126890aSEmmanuel Vadot 336*f126890aSEmmanuel Vadot reg_rtc_ldo: rtc_ldo { 337*f126890aSEmmanuel Vadot regulator-name = "vcc-rtc-vdd1v8-io"; 338*f126890aSEmmanuel Vadot }; 339*f126890aSEmmanuel Vadot 340*f126890aSEmmanuel Vadot sw { 341*f126890aSEmmanuel Vadot /* unused */ 342*f126890aSEmmanuel Vadot }; 343*f126890aSEmmanuel Vadot }; 344*f126890aSEmmanuel Vadot }; 345*f126890aSEmmanuel Vadot 346*f126890aSEmmanuel Vadot axp806: pmic@745 { 347*f126890aSEmmanuel Vadot compatible = "x-powers,axp806"; 348*f126890aSEmmanuel Vadot reg = <0x745>; 349*f126890aSEmmanuel Vadot interrupt-parent = <&nmi_intc>; 350*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 351*f126890aSEmmanuel Vadot interrupt-controller; 352*f126890aSEmmanuel Vadot #interrupt-cells = <1>; 353*f126890aSEmmanuel Vadot bldoin-supply = <®_dcdce>; 354*f126890aSEmmanuel Vadot 355*f126890aSEmmanuel Vadot regulators { 356*f126890aSEmmanuel Vadot reg_s_aldo1: aldo1 { 357*f126890aSEmmanuel Vadot regulator-always-on; 358*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 359*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 360*f126890aSEmmanuel Vadot regulator-name = "avcc"; 361*f126890aSEmmanuel Vadot }; 362*f126890aSEmmanuel Vadot 363*f126890aSEmmanuel Vadot aldo2 { 364*f126890aSEmmanuel Vadot /* 365*f126890aSEmmanuel Vadot * unused, but use a different name to 366*f126890aSEmmanuel Vadot * avoid name clash with axp809's aldo's 367*f126890aSEmmanuel Vadot */ 368*f126890aSEmmanuel Vadot regulator-name = "s_aldo2"; 369*f126890aSEmmanuel Vadot }; 370*f126890aSEmmanuel Vadot 371*f126890aSEmmanuel Vadot aldo3 { 372*f126890aSEmmanuel Vadot /* 373*f126890aSEmmanuel Vadot * unused, but use a different name to 374*f126890aSEmmanuel Vadot * avoid name clash with axp809's aldo's 375*f126890aSEmmanuel Vadot */ 376*f126890aSEmmanuel Vadot regulator-name = "s_aldo3"; 377*f126890aSEmmanuel Vadot }; 378*f126890aSEmmanuel Vadot 379*f126890aSEmmanuel Vadot reg_bldo1: bldo1 { 380*f126890aSEmmanuel Vadot regulator-always-on; 381*f126890aSEmmanuel Vadot regulator-min-microvolt = <1700000>; 382*f126890aSEmmanuel Vadot regulator-max-microvolt = <1900000>; 383*f126890aSEmmanuel Vadot regulator-name = "vcc18-efuse-adc-display-csi"; 384*f126890aSEmmanuel Vadot }; 385*f126890aSEmmanuel Vadot 386*f126890aSEmmanuel Vadot reg_bldo2: bldo2 { 387*f126890aSEmmanuel Vadot regulator-always-on; 388*f126890aSEmmanuel Vadot regulator-min-microvolt = <1700000>; 389*f126890aSEmmanuel Vadot regulator-max-microvolt = <1900000>; 390*f126890aSEmmanuel Vadot regulator-name = 391*f126890aSEmmanuel Vadot "vdd18-drampll-vcc18-pll-cpvdd"; 392*f126890aSEmmanuel Vadot }; 393*f126890aSEmmanuel Vadot 394*f126890aSEmmanuel Vadot bldo3 { 395*f126890aSEmmanuel Vadot /* unused */ 396*f126890aSEmmanuel Vadot }; 397*f126890aSEmmanuel Vadot 398*f126890aSEmmanuel Vadot reg_bldo4: bldo4 { 399*f126890aSEmmanuel Vadot regulator-min-microvolt = <1100000>; 400*f126890aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 401*f126890aSEmmanuel Vadot regulator-name = "vcc12-hsic"; 402*f126890aSEmmanuel Vadot }; 403*f126890aSEmmanuel Vadot 404*f126890aSEmmanuel Vadot reg_cldo1: cldo1 { 405*f126890aSEmmanuel Vadot /* 406*f126890aSEmmanuel Vadot * This was 3V in the original design, but 407*f126890aSEmmanuel Vadot * 3.3V is the recommended supply voltage 408*f126890aSEmmanuel Vadot * for the Ethernet PHY. 409*f126890aSEmmanuel Vadot */ 410*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 411*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 412*f126890aSEmmanuel Vadot /* 413*f126890aSEmmanuel Vadot * The PHY requires 20ms after all voltages 414*f126890aSEmmanuel Vadot * are applied until core logic is ready and 415*f126890aSEmmanuel Vadot * 30ms after the reset pin is de-asserted. 416*f126890aSEmmanuel Vadot * Set a 100ms delay to account for PMIC 417*f126890aSEmmanuel Vadot * ramp time and board traces. 418*f126890aSEmmanuel Vadot */ 419*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <100000>; 420*f126890aSEmmanuel Vadot regulator-name = "vcc-gmac-phy"; 421*f126890aSEmmanuel Vadot }; 422*f126890aSEmmanuel Vadot 423*f126890aSEmmanuel Vadot reg_cldo2: cldo2 { 424*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 425*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 426*f126890aSEmmanuel Vadot regulator-name = "afvcc-cam"; 427*f126890aSEmmanuel Vadot }; 428*f126890aSEmmanuel Vadot 429*f126890aSEmmanuel Vadot reg_cldo3: cldo3 { 430*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 431*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 432*f126890aSEmmanuel Vadot regulator-name = "vcc-io-wifi-codec-io2"; 433*f126890aSEmmanuel Vadot }; 434*f126890aSEmmanuel Vadot 435*f126890aSEmmanuel Vadot reg_dcdca: dcdca { 436*f126890aSEmmanuel Vadot regulator-always-on; 437*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 438*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 439*f126890aSEmmanuel Vadot regulator-name = "vdd-cpub"; 440*f126890aSEmmanuel Vadot }; 441*f126890aSEmmanuel Vadot 442*f126890aSEmmanuel Vadot reg_dcdcd: dcdcd { 443*f126890aSEmmanuel Vadot regulator-always-on; 444*f126890aSEmmanuel Vadot regulator-min-microvolt = <800000>; 445*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 446*f126890aSEmmanuel Vadot regulator-name = "vdd-vpu"; 447*f126890aSEmmanuel Vadot }; 448*f126890aSEmmanuel Vadot 449*f126890aSEmmanuel Vadot reg_dcdce: dcdce { 450*f126890aSEmmanuel Vadot regulator-always-on; 451*f126890aSEmmanuel Vadot regulator-min-microvolt = <2100000>; 452*f126890aSEmmanuel Vadot regulator-max-microvolt = <2100000>; 453*f126890aSEmmanuel Vadot regulator-name = "vcc-bldo-codec-ldoin"; 454*f126890aSEmmanuel Vadot }; 455*f126890aSEmmanuel Vadot 456*f126890aSEmmanuel Vadot sw { 457*f126890aSEmmanuel Vadot /* 458*f126890aSEmmanuel Vadot * unused, but use a different name to 459*f126890aSEmmanuel Vadot * avoid name clash with axp809's sw 460*f126890aSEmmanuel Vadot */ 461*f126890aSEmmanuel Vadot regulator-name = "s_sw"; 462*f126890aSEmmanuel Vadot }; 463*f126890aSEmmanuel Vadot }; 464*f126890aSEmmanuel Vadot }; 465*f126890aSEmmanuel Vadot 466*f126890aSEmmanuel Vadot ac100: codec@e89 { 467*f126890aSEmmanuel Vadot compatible = "x-powers,ac100"; 468*f126890aSEmmanuel Vadot reg = <0xe89>; 469*f126890aSEmmanuel Vadot 470*f126890aSEmmanuel Vadot ac100_codec: codec { 471*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-codec"; 472*f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 473*f126890aSEmmanuel Vadot interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ 474*f126890aSEmmanuel Vadot #clock-cells = <0>; 475*f126890aSEmmanuel Vadot clock-output-names = "4M_adda"; 476*f126890aSEmmanuel Vadot }; 477*f126890aSEmmanuel Vadot 478*f126890aSEmmanuel Vadot ac100_rtc: rtc { 479*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-rtc"; 480*f126890aSEmmanuel Vadot interrupt-parent = <&nmi_intc>; 481*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 482*f126890aSEmmanuel Vadot clocks = <&ac100_codec>; 483*f126890aSEmmanuel Vadot #clock-cells = <1>; 484*f126890aSEmmanuel Vadot clock-output-names = "cko1_rtc", 485*f126890aSEmmanuel Vadot "cko2_rtc", 486*f126890aSEmmanuel Vadot "cko3_rtc"; 487*f126890aSEmmanuel Vadot }; 488*f126890aSEmmanuel Vadot }; 489*f126890aSEmmanuel Vadot}; 490*f126890aSEmmanuel Vadot 491*f126890aSEmmanuel Vadot#include "axp809.dtsi" 492*f126890aSEmmanuel Vadot 493*f126890aSEmmanuel Vadot&tcon0 { 494*f126890aSEmmanuel Vadot pinctrl-names = "default"; 495*f126890aSEmmanuel Vadot pinctrl-0 = <&lcd0_rgb888_pins>; 496*f126890aSEmmanuel Vadot}; 497*f126890aSEmmanuel Vadot 498*f126890aSEmmanuel Vadot&tcon0_out { 499*f126890aSEmmanuel Vadot tcon0_out_vga: endpoint { 500*f126890aSEmmanuel Vadot remote-endpoint = <&vga_dac_in>; 501*f126890aSEmmanuel Vadot }; 502*f126890aSEmmanuel Vadot}; 503*f126890aSEmmanuel Vadot 504*f126890aSEmmanuel Vadot&uart0 { 505*f126890aSEmmanuel Vadot pinctrl-names = "default"; 506*f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_ph_pins>; 507*f126890aSEmmanuel Vadot status = "okay"; 508*f126890aSEmmanuel Vadot}; 509