1*df3ebdc9SAndre Przywara/* 2*df3ebdc9SAndre Przywara * Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.xyz> 3*df3ebdc9SAndre Przywara * 4*df3ebdc9SAndre Przywara * Based on sun50i-a64-pine64.dts, which is: 5*df3ebdc9SAndre Przywara * Copyright (c) 2016 ARM Ltd. 6*df3ebdc9SAndre Przywara * 7*df3ebdc9SAndre Przywara * This file is dual-licensed: you can use it either under the terms 8*df3ebdc9SAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual 9*df3ebdc9SAndre Przywara * licensing only applies to this file, and not this project as a 10*df3ebdc9SAndre Przywara * whole. 11*df3ebdc9SAndre Przywara * 12*df3ebdc9SAndre Przywara * a) This library is free software; you can redistribute it and/or 13*df3ebdc9SAndre Przywara * modify it under the terms of the GNU General Public License as 14*df3ebdc9SAndre Przywara * published by the Free Software Foundation; either version 2 of the 15*df3ebdc9SAndre Przywara * License, or (at your option) any later version. 16*df3ebdc9SAndre Przywara * 17*df3ebdc9SAndre Przywara * This library is distributed in the hope that it will be useful, 18*df3ebdc9SAndre Przywara * but WITHOUT ANY WARRANTY; without even the implied warranty of 19*df3ebdc9SAndre Przywara * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*df3ebdc9SAndre Przywara * GNU General Public License for more details. 21*df3ebdc9SAndre Przywara * 22*df3ebdc9SAndre Przywara * Or, alternatively, 23*df3ebdc9SAndre Przywara * 24*df3ebdc9SAndre Przywara * b) Permission is hereby granted, free of charge, to any person 25*df3ebdc9SAndre Przywara * obtaining a copy of this software and associated documentation 26*df3ebdc9SAndre Przywara * files (the "Software"), to deal in the Software without 27*df3ebdc9SAndre Przywara * restriction, including without limitation the rights to use, 28*df3ebdc9SAndre Przywara * copy, modify, merge, publish, distribute, sublicense, and/or 29*df3ebdc9SAndre Przywara * sell copies of the Software, and to permit persons to whom the 30*df3ebdc9SAndre Przywara * Software is furnished to do so, subject to the following 31*df3ebdc9SAndre Przywara * conditions: 32*df3ebdc9SAndre Przywara * 33*df3ebdc9SAndre Przywara * The above copyright notice and this permission notice shall be 34*df3ebdc9SAndre Przywara * included in all copies or substantial portions of the Software. 35*df3ebdc9SAndre Przywara * 36*df3ebdc9SAndre Przywara * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 37*df3ebdc9SAndre Przywara * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 38*df3ebdc9SAndre Przywara * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 39*df3ebdc9SAndre Przywara * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 40*df3ebdc9SAndre Przywara * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 41*df3ebdc9SAndre Przywara * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 42*df3ebdc9SAndre Przywara * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 43*df3ebdc9SAndre Przywara * OTHER DEALINGS IN THE SOFTWARE. 44*df3ebdc9SAndre Przywara */ 45*df3ebdc9SAndre Przywara 46*df3ebdc9SAndre Przywara#include "sun50i-a64.dtsi" 47*df3ebdc9SAndre Przywara 48*df3ebdc9SAndre Przywara&mmc0 { 49*df3ebdc9SAndre Przywara pinctrl-names = "default"; 50*df3ebdc9SAndre Przywara pinctrl-0 = <&mmc0_pins>; 51*df3ebdc9SAndre Przywara vmmc-supply = <®_dcdc1>; 52*df3ebdc9SAndre Przywara non-removable; 53*df3ebdc9SAndre Przywara disable-wp; 54*df3ebdc9SAndre Przywara bus-width = <4>; 55*df3ebdc9SAndre Przywara status = "okay"; 56*df3ebdc9SAndre Przywara}; 57*df3ebdc9SAndre Przywara 58*df3ebdc9SAndre Przywara&r_rsb { 59*df3ebdc9SAndre Przywara status = "okay"; 60*df3ebdc9SAndre Przywara 61*df3ebdc9SAndre Przywara axp803: pmic@3a3 { 62*df3ebdc9SAndre Przywara compatible = "x-powers,axp803"; 63*df3ebdc9SAndre Przywara reg = <0x3a3>; 64*df3ebdc9SAndre Przywara interrupt-parent = <&r_intc>; 65*df3ebdc9SAndre Przywara interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 66*df3ebdc9SAndre Przywara }; 67*df3ebdc9SAndre Przywara}; 68*df3ebdc9SAndre Przywara 69*df3ebdc9SAndre Przywara#include "axp803.dtsi" 70*df3ebdc9SAndre Przywara 71*df3ebdc9SAndre Przywara®_aldo2 { 72*df3ebdc9SAndre Przywara regulator-always-on; 73*df3ebdc9SAndre Przywara regulator-min-microvolt = <1800000>; 74*df3ebdc9SAndre Przywara regulator-max-microvolt = <3300000>; 75*df3ebdc9SAndre Przywara regulator-name = "vcc-pl"; 76*df3ebdc9SAndre Przywara}; 77*df3ebdc9SAndre Przywara 78*df3ebdc9SAndre Przywara®_aldo3 { 79*df3ebdc9SAndre Przywara regulator-always-on; 80*df3ebdc9SAndre Przywara regulator-min-microvolt = <3000000>; 81*df3ebdc9SAndre Przywara regulator-max-microvolt = <3000000>; 82*df3ebdc9SAndre Przywara regulator-name = "vcc-pll-avcc"; 83*df3ebdc9SAndre Przywara}; 84*df3ebdc9SAndre Przywara 85*df3ebdc9SAndre Przywara®_dcdc1 { 86*df3ebdc9SAndre Przywara regulator-always-on; 87*df3ebdc9SAndre Przywara regulator-min-microvolt = <3300000>; 88*df3ebdc9SAndre Przywara regulator-max-microvolt = <3300000>; 89*df3ebdc9SAndre Przywara regulator-name = "vcc-3v3"; 90*df3ebdc9SAndre Przywara}; 91*df3ebdc9SAndre Przywara 92*df3ebdc9SAndre Przywara®_dcdc2 { 93*df3ebdc9SAndre Przywara regulator-always-on; 94*df3ebdc9SAndre Przywara regulator-min-microvolt = <1040000>; 95*df3ebdc9SAndre Przywara regulator-max-microvolt = <1300000>; 96*df3ebdc9SAndre Przywara regulator-name = "vdd-cpux"; 97*df3ebdc9SAndre Przywara}; 98*df3ebdc9SAndre Przywara 99*df3ebdc9SAndre Przywara/* DCDC3 is polyphased with DCDC2 */ 100*df3ebdc9SAndre Przywara 101*df3ebdc9SAndre Przywara®_dcdc5 { 102*df3ebdc9SAndre Przywara regulator-always-on; 103*df3ebdc9SAndre Przywara regulator-min-microvolt = <1200000>; 104*df3ebdc9SAndre Przywara regulator-max-microvolt = <1200000>; 105*df3ebdc9SAndre Przywara regulator-name = "vcc-dram"; 106*df3ebdc9SAndre Przywara}; 107*df3ebdc9SAndre Przywara 108*df3ebdc9SAndre Przywara®_dcdc6 { 109*df3ebdc9SAndre Przywara regulator-always-on; 110*df3ebdc9SAndre Przywara regulator-min-microvolt = <1100000>; 111*df3ebdc9SAndre Przywara regulator-max-microvolt = <1100000>; 112*df3ebdc9SAndre Przywara regulator-name = "vdd-sys"; 113*df3ebdc9SAndre Przywara}; 114*df3ebdc9SAndre Przywara 115*df3ebdc9SAndre Przywara®_eldo1 { 116*df3ebdc9SAndre Przywara regulator-always-on; 117*df3ebdc9SAndre Przywara regulator-min-microvolt = <1800000>; 118*df3ebdc9SAndre Przywara regulator-max-microvolt = <1800000>; 119*df3ebdc9SAndre Przywara regulator-name = "vdd-1v8-lpddr"; 120*df3ebdc9SAndre Przywara}; 121*df3ebdc9SAndre Przywara 122*df3ebdc9SAndre Przywara®_fldo1 { 123*df3ebdc9SAndre Przywara regulator-min-microvolt = <1200000>; 124*df3ebdc9SAndre Przywara regulator-max-microvolt = <1200000>; 125*df3ebdc9SAndre Przywara regulator-name = "vcc-1v2-hsic"; 126*df3ebdc9SAndre Przywara}; 127*df3ebdc9SAndre Przywara 128*df3ebdc9SAndre Przywara/* 129*df3ebdc9SAndre Przywara * The A64 chip cannot work without this regulator off, although 130*df3ebdc9SAndre Przywara * it seems to be only driving the AR100 core. 131*df3ebdc9SAndre Przywara * Maybe we don't still know well about CPUs domain. 132*df3ebdc9SAndre Przywara */ 133*df3ebdc9SAndre Przywara®_fldo2 { 134*df3ebdc9SAndre Przywara regulator-always-on; 135*df3ebdc9SAndre Przywara regulator-min-microvolt = <1100000>; 136*df3ebdc9SAndre Przywara regulator-max-microvolt = <1100000>; 137*df3ebdc9SAndre Przywara regulator-name = "vdd-cpus"; 138*df3ebdc9SAndre Przywara}; 139*df3ebdc9SAndre Przywara 140*df3ebdc9SAndre Przywara®_rtc_ldo { 141*df3ebdc9SAndre Przywara regulator-name = "vcc-rtc"; 142*df3ebdc9SAndre Przywara}; 143