1*f126890aSEmmanuel Vadot/* 2*f126890aSEmmanuel Vadot * Copyright 2015 Vishnu Patekar 3*f126890aSEmmanuel Vadot * Vishnu Patekar <vishnupatekar0510@gmail.com> 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 6*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 7*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 8*f126890aSEmmanuel Vadot * whole. 9*f126890aSEmmanuel Vadot * 10*f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 11*f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 12*f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 13*f126890aSEmmanuel Vadot * License, or (at your option) any later version. 14*f126890aSEmmanuel Vadot * 15*f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 16*f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*f126890aSEmmanuel Vadot * GNU General Public License for more details. 19*f126890aSEmmanuel Vadot * 20*f126890aSEmmanuel Vadot * Or, alternatively, 21*f126890aSEmmanuel Vadot * 22*f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 23*f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 24*f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 25*f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 26*f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 27*f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 28*f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 29*f126890aSEmmanuel Vadot * conditions: 30*f126890aSEmmanuel Vadot * 31*f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 32*f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 33*f126890aSEmmanuel Vadot * 34*f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35*f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36*f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37*f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38*f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39*f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40*f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41*f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 42*f126890aSEmmanuel Vadot */ 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot/dts-v1/; 45*f126890aSEmmanuel Vadot#include "sun8i-a83t.dtsi" 46*f126890aSEmmanuel Vadot 47*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 48*f126890aSEmmanuel Vadot 49*f126890aSEmmanuel Vadot/ { 50*f126890aSEmmanuel Vadot model = "Allwinner A83T H8Homlet Proto Dev Board v2.0"; 51*f126890aSEmmanuel Vadot compatible = "allwinner,h8homlet-v2", "allwinner,sun8i-a83t"; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot aliases { 54*f126890aSEmmanuel Vadot serial0 = &uart0; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot chosen { 58*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 59*f126890aSEmmanuel Vadot }; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot reg_usb0_vbus: reg-usb0-vbus { 62*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 63*f126890aSEmmanuel Vadot regulator-name = "usb0-vbus"; 64*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 65*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 66*f126890aSEmmanuel Vadot regulator-boot-on; 67*f126890aSEmmanuel Vadot enable-active-high; 68*f126890aSEmmanuel Vadot gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ 69*f126890aSEmmanuel Vadot }; 70*f126890aSEmmanuel Vadot 71*f126890aSEmmanuel Vadot reg_usb1_vbus: reg-usb1-vbus { 72*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 73*f126890aSEmmanuel Vadot regulator-name = "usb1-vbus"; 74*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 75*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 76*f126890aSEmmanuel Vadot regulator-boot-on; 77*f126890aSEmmanuel Vadot enable-active-high; 78*f126890aSEmmanuel Vadot gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ 79*f126890aSEmmanuel Vadot }; 80*f126890aSEmmanuel Vadot}; 81*f126890aSEmmanuel Vadot 82*f126890aSEmmanuel Vadot&cpu0 { 83*f126890aSEmmanuel Vadot cpu-supply = <®_dcdc2>; 84*f126890aSEmmanuel Vadot}; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot&cpu100 { 87*f126890aSEmmanuel Vadot cpu-supply = <®_dcdc3>; 88*f126890aSEmmanuel Vadot}; 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot&ehci0 { 91*f126890aSEmmanuel Vadot status = "okay"; 92*f126890aSEmmanuel Vadot}; 93*f126890aSEmmanuel Vadot 94*f126890aSEmmanuel Vadot&mmc0 { 95*f126890aSEmmanuel Vadot pinctrl-names = "default"; 96*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc0_pins>; 97*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 98*f126890aSEmmanuel Vadot cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 99*f126890aSEmmanuel Vadot bus-width = <4>; 100*f126890aSEmmanuel Vadot status = "okay"; 101*f126890aSEmmanuel Vadot}; 102*f126890aSEmmanuel Vadot 103*f126890aSEmmanuel Vadot&mmc2 { 104*f126890aSEmmanuel Vadot pinctrl-names = "default"; 105*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc2_8bit_emmc_pins>; 106*f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 107*f126890aSEmmanuel Vadot vqmmc-supply = <®_dcdc1>; 108*f126890aSEmmanuel Vadot bus-width = <8>; 109*f126890aSEmmanuel Vadot non-removable; 110*f126890aSEmmanuel Vadot cap-mmc-hw-reset; 111*f126890aSEmmanuel Vadot status = "okay"; 112*f126890aSEmmanuel Vadot}; 113*f126890aSEmmanuel Vadot 114*f126890aSEmmanuel Vadot&ohci0 { 115*f126890aSEmmanuel Vadot status = "okay"; 116*f126890aSEmmanuel Vadot}; 117*f126890aSEmmanuel Vadot 118*f126890aSEmmanuel Vadot&r_rsb { 119*f126890aSEmmanuel Vadot status = "okay"; 120*f126890aSEmmanuel Vadot 121*f126890aSEmmanuel Vadot axp81x: pmic@3a3 { 122*f126890aSEmmanuel Vadot compatible = "x-powers,axp818", "x-powers,axp813"; 123*f126890aSEmmanuel Vadot reg = <0x3a3>; 124*f126890aSEmmanuel Vadot interrupt-parent = <&r_intc>; 125*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 126*f126890aSEmmanuel Vadot eldoin-supply = <®_dcdc1>; 127*f126890aSEmmanuel Vadot swin-supply = <®_dcdc1>; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot 130*f126890aSEmmanuel Vadot ac100: codec@e89 { 131*f126890aSEmmanuel Vadot compatible = "x-powers,ac100"; 132*f126890aSEmmanuel Vadot reg = <0xe89>; 133*f126890aSEmmanuel Vadot 134*f126890aSEmmanuel Vadot ac100_codec: codec { 135*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-codec"; 136*f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 137*f126890aSEmmanuel Vadot interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */ 138*f126890aSEmmanuel Vadot #clock-cells = <0>; 139*f126890aSEmmanuel Vadot clock-output-names = "4M_adda"; 140*f126890aSEmmanuel Vadot }; 141*f126890aSEmmanuel Vadot 142*f126890aSEmmanuel Vadot ac100_rtc: rtc { 143*f126890aSEmmanuel Vadot compatible = "x-powers,ac100-rtc"; 144*f126890aSEmmanuel Vadot interrupt-parent = <&r_intc>; 145*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 146*f126890aSEmmanuel Vadot clocks = <&ac100_codec>; 147*f126890aSEmmanuel Vadot #clock-cells = <1>; 148*f126890aSEmmanuel Vadot clock-output-names = "cko1_rtc", 149*f126890aSEmmanuel Vadot "cko2_rtc", 150*f126890aSEmmanuel Vadot "cko3_rtc"; 151*f126890aSEmmanuel Vadot }; 152*f126890aSEmmanuel Vadot }; 153*f126890aSEmmanuel Vadot}; 154*f126890aSEmmanuel Vadot 155*f126890aSEmmanuel Vadot#include "axp81x.dtsi" 156*f126890aSEmmanuel Vadot 157*f126890aSEmmanuel Vadot&ac_power_supply { 158*f126890aSEmmanuel Vadot status = "okay"; 159*f126890aSEmmanuel Vadot}; 160*f126890aSEmmanuel Vadot 161*f126890aSEmmanuel Vadot®_aldo1 { 162*f126890aSEmmanuel Vadot regulator-always-on; 163*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 164*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 165*f126890aSEmmanuel Vadot regulator-name = "vcc-1v8"; 166*f126890aSEmmanuel Vadot}; 167*f126890aSEmmanuel Vadot 168*f126890aSEmmanuel Vadot®_aldo2 { 169*f126890aSEmmanuel Vadot regulator-always-on; 170*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 171*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 172*f126890aSEmmanuel Vadot regulator-name = "dram-pll"; 173*f126890aSEmmanuel Vadot}; 174*f126890aSEmmanuel Vadot 175*f126890aSEmmanuel Vadot®_aldo3 { 176*f126890aSEmmanuel Vadot regulator-always-on; 177*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 178*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 179*f126890aSEmmanuel Vadot regulator-name = "avcc"; 180*f126890aSEmmanuel Vadot}; 181*f126890aSEmmanuel Vadot 182*f126890aSEmmanuel Vadot®_dcdc1 { 183*f126890aSEmmanuel Vadot regulator-always-on; 184*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 185*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 186*f126890aSEmmanuel Vadot regulator-name = "vcc-3v3"; 187*f126890aSEmmanuel Vadot}; 188*f126890aSEmmanuel Vadot 189*f126890aSEmmanuel Vadot®_dcdc2 { 190*f126890aSEmmanuel Vadot regulator-always-on; 191*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 192*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 193*f126890aSEmmanuel Vadot regulator-name = "vdd-cpua"; 194*f126890aSEmmanuel Vadot}; 195*f126890aSEmmanuel Vadot 196*f126890aSEmmanuel Vadot®_dcdc3 { 197*f126890aSEmmanuel Vadot regulator-always-on; 198*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 199*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 200*f126890aSEmmanuel Vadot regulator-name = "vdd-cpub"; 201*f126890aSEmmanuel Vadot}; 202*f126890aSEmmanuel Vadot 203*f126890aSEmmanuel Vadot®_dcdc4 { 204*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 205*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 206*f126890aSEmmanuel Vadot regulator-name = "vdd-gpu"; 207*f126890aSEmmanuel Vadot}; 208*f126890aSEmmanuel Vadot 209*f126890aSEmmanuel Vadot®_dcdc5 { 210*f126890aSEmmanuel Vadot regulator-always-on; 211*f126890aSEmmanuel Vadot regulator-min-microvolt = <1500000>; 212*f126890aSEmmanuel Vadot regulator-max-microvolt = <1500000>; 213*f126890aSEmmanuel Vadot regulator-name = "vcc-dram"; 214*f126890aSEmmanuel Vadot}; 215*f126890aSEmmanuel Vadot 216*f126890aSEmmanuel Vadot®_dcdc6 { 217*f126890aSEmmanuel Vadot regulator-always-on; 218*f126890aSEmmanuel Vadot regulator-min-microvolt = <900000>; 219*f126890aSEmmanuel Vadot regulator-max-microvolt = <900000>; 220*f126890aSEmmanuel Vadot regulator-name = "vdd-sys"; 221*f126890aSEmmanuel Vadot}; 222*f126890aSEmmanuel Vadot 223*f126890aSEmmanuel Vadot®_dldo2 { 224*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 225*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 226*f126890aSEmmanuel Vadot regulator-name = "vcc-mipi"; 227*f126890aSEmmanuel Vadot}; 228*f126890aSEmmanuel Vadot 229*f126890aSEmmanuel Vadot®_dldo4 { 230*f126890aSEmmanuel Vadot /* 231*f126890aSEmmanuel Vadot * The PHY requires 20ms after all voltages are applied until core 232*f126890aSEmmanuel Vadot * logic is ready and 30ms after the reset pin is de-asserted. 233*f126890aSEmmanuel Vadot * Set a 100ms delay to account for PMIC ramp time and board traces. 234*f126890aSEmmanuel Vadot */ 235*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <100000>; 236*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 237*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 238*f126890aSEmmanuel Vadot regulator-name = "vcc-ephy"; 239*f126890aSEmmanuel Vadot}; 240*f126890aSEmmanuel Vadot 241*f126890aSEmmanuel Vadot®_fldo1 { 242*f126890aSEmmanuel Vadot regulator-min-microvolt = <1080000>; 243*f126890aSEmmanuel Vadot regulator-max-microvolt = <1320000>; 244*f126890aSEmmanuel Vadot regulator-name = "vdd12-hsic"; 245*f126890aSEmmanuel Vadot}; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot®_fldo2 { 248*f126890aSEmmanuel Vadot /* 249*f126890aSEmmanuel Vadot * Despite the embedded CPUs core not being used in any way, 250*f126890aSEmmanuel Vadot * this must remain on or the system will hang. 251*f126890aSEmmanuel Vadot */ 252*f126890aSEmmanuel Vadot regulator-always-on; 253*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 254*f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 255*f126890aSEmmanuel Vadot regulator-name = "vdd-cpus"; 256*f126890aSEmmanuel Vadot}; 257*f126890aSEmmanuel Vadot 258*f126890aSEmmanuel Vadot®_rtc_ldo { 259*f126890aSEmmanuel Vadot regulator-name = "vcc-rtc"; 260*f126890aSEmmanuel Vadot}; 261*f126890aSEmmanuel Vadot 262*f126890aSEmmanuel Vadot®_sw { 263*f126890aSEmmanuel Vadot regulator-name = "vcc-wifi"; 264*f126890aSEmmanuel Vadot}; 265*f126890aSEmmanuel Vadot 266*f126890aSEmmanuel Vadot&uart0 { 267*f126890aSEmmanuel Vadot pinctrl-names = "default"; 268*f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_pb_pins>; 269*f126890aSEmmanuel Vadot status = "okay"; 270*f126890aSEmmanuel Vadot}; 271*f126890aSEmmanuel Vadot 272*f126890aSEmmanuel Vadot&usbphy { 273*f126890aSEmmanuel Vadot usb0_vbus-supply = <®_usb0_vbus>; 274*f126890aSEmmanuel Vadot usb1_vbus-supply = <®_usb1_vbus>; 275*f126890aSEmmanuel Vadot status = "okay"; 276*f126890aSEmmanuel Vadot}; 277*f126890aSEmmanuel Vadot 278*f126890aSEmmanuel Vadot&usb_otg { 279*f126890aSEmmanuel Vadot dr_mode = "host"; 280*f126890aSEmmanuel Vadot status = "okay"; 281*f126890aSEmmanuel Vadot}; 282