1585bf8aeSJagan Teki/* 2585bf8aeSJagan Teki * Copyright (C) 2017 Jagan Teki <jteki@openedev.com> 3585bf8aeSJagan Teki * 4585bf8aeSJagan Teki * This file is dual-licensed: you can use it either under the terms 5585bf8aeSJagan Teki * of the GPL or the X11 license, at your option. Note that this dual 6585bf8aeSJagan Teki * licensing only applies to this file, and not this project as a 7585bf8aeSJagan Teki * whole. 8585bf8aeSJagan Teki * 9585bf8aeSJagan Teki * a) This library is free software; you can redistribute it and/or 10585bf8aeSJagan Teki * modify it under the terms of the GNU General Public License as 11585bf8aeSJagan Teki * published by the Free Software Foundation; either version 2 of the 12585bf8aeSJagan Teki * License, or (at your option) any later version. 13585bf8aeSJagan Teki * 14585bf8aeSJagan Teki * This library is distributed in the hope that it will be useful, 15585bf8aeSJagan Teki * but WITHOUT ANY WARRANTY; without even the implied warranty of 16585bf8aeSJagan Teki * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17585bf8aeSJagan Teki * GNU General Public License for more details. 18585bf8aeSJagan Teki * 19585bf8aeSJagan Teki * Or, alternatively, 20585bf8aeSJagan Teki * 21585bf8aeSJagan Teki * b) Permission is hereby granted, free of charge, to any person 22585bf8aeSJagan Teki * obtaining a copy of this software and associated documentation 23585bf8aeSJagan Teki * files (the "Software"), to deal in the Software without 24585bf8aeSJagan Teki * restriction, including without limitation the rights to use, 25585bf8aeSJagan Teki * copy, modify, merge, publish, distribute, sublicense, and/or 26585bf8aeSJagan Teki * sell copies of the Software, and to permit persons to whom the 27585bf8aeSJagan Teki * Software is furnished to do so, subject to the following 28585bf8aeSJagan Teki * conditions: 29585bf8aeSJagan Teki * 30585bf8aeSJagan Teki * The above copyright notice and this permission notice shall be 31585bf8aeSJagan Teki * included in all copies or substantial portions of the Software. 32585bf8aeSJagan Teki * 33585bf8aeSJagan Teki * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34585bf8aeSJagan Teki * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35585bf8aeSJagan Teki * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36585bf8aeSJagan Teki * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37585bf8aeSJagan Teki * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38585bf8aeSJagan Teki * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39585bf8aeSJagan Teki * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40585bf8aeSJagan Teki * OTHER DEALINGS IN THE SOFTWARE. 41585bf8aeSJagan Teki */ 42585bf8aeSJagan Teki 43585bf8aeSJagan Teki/dts-v1/; 44585bf8aeSJagan Teki 45585bf8aeSJagan Teki#include "sun50i-a64.dtsi" 46585bf8aeSJagan Teki 47585bf8aeSJagan Teki#include <dt-bindings/gpio/gpio.h> 48585bf8aeSJagan Teki 49585bf8aeSJagan Teki/ { 50585bf8aeSJagan Teki model = "Olimex A64-Olinuxino"; 51585bf8aeSJagan Teki compatible = "olimex,a64-olinuxino", "allwinner,sun50i-a64"; 52585bf8aeSJagan Teki 53585bf8aeSJagan Teki aliases { 54585bf8aeSJagan Teki serial0 = &uart0; 55585bf8aeSJagan Teki }; 56585bf8aeSJagan Teki 57585bf8aeSJagan Teki chosen { 58585bf8aeSJagan Teki stdout-path = "serial0:115200n8"; 59585bf8aeSJagan Teki }; 60585bf8aeSJagan Teki 61*68dd17c3SAndre Przywara wifi_pwrseq: wifi_pwrseq { 62*68dd17c3SAndre Przywara compatible = "mmc-pwrseq-simple"; 63*68dd17c3SAndre Przywara reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ 64585bf8aeSJagan Teki }; 65585bf8aeSJagan Teki}; 66585bf8aeSJagan Teki 67585bf8aeSJagan Teki&mmc0 { 68585bf8aeSJagan Teki pinctrl-names = "default"; 69585bf8aeSJagan Teki pinctrl-0 = <&mmc0_pins>; 70*68dd17c3SAndre Przywara vmmc-supply = <®_dcdc1>; 71*68dd17c3SAndre Przywara cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 72585bf8aeSJagan Teki disable-wp; 73585bf8aeSJagan Teki bus-width = <4>; 74585bf8aeSJagan Teki status = "okay"; 75585bf8aeSJagan Teki}; 76585bf8aeSJagan Teki 77*68dd17c3SAndre Przywara&mmc1 { 78*68dd17c3SAndre Przywara pinctrl-names = "default"; 79*68dd17c3SAndre Przywara pinctrl-0 = <&mmc1_pins>; 80*68dd17c3SAndre Przywara vmmc-supply = <®_aldo2>; 81*68dd17c3SAndre Przywara vqmmc-supply = <®_dldo4>; 82*68dd17c3SAndre Przywara mmc-pwrseq = <&wifi_pwrseq>; 83*68dd17c3SAndre Przywara bus-width = <4>; 84*68dd17c3SAndre Przywara non-removable; 85*68dd17c3SAndre Przywara status = "okay"; 86*68dd17c3SAndre Przywara 87*68dd17c3SAndre Przywara rtl8723bs: wifi@1 { 88*68dd17c3SAndre Przywara reg = <1>; 89*68dd17c3SAndre Przywara interrupt-parent = <&r_pio>; 90*68dd17c3SAndre Przywara interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ 91*68dd17c3SAndre Przywara interrupt-names = "host-wake"; 92*68dd17c3SAndre Przywara }; 93*68dd17c3SAndre Przywara}; 94*68dd17c3SAndre Przywara 95*68dd17c3SAndre Przywara&r_rsb { 96*68dd17c3SAndre Przywara status = "okay"; 97*68dd17c3SAndre Przywara 98*68dd17c3SAndre Przywara axp803: pmic@3a3 { 99*68dd17c3SAndre Przywara compatible = "x-powers,axp803"; 100*68dd17c3SAndre Przywara reg = <0x3a3>; 101*68dd17c3SAndre Przywara interrupt-parent = <&r_intc>; 102*68dd17c3SAndre Przywara interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 103*68dd17c3SAndre Przywara }; 104*68dd17c3SAndre Przywara}; 105*68dd17c3SAndre Przywara 106*68dd17c3SAndre Przywara#include "axp803.dtsi" 107*68dd17c3SAndre Przywara 108*68dd17c3SAndre Przywara®_aldo1 { 109*68dd17c3SAndre Przywara regulator-always-on; 110*68dd17c3SAndre Przywara regulator-min-microvolt = <2800000>; 111*68dd17c3SAndre Przywara regulator-max-microvolt = <2800000>; 112*68dd17c3SAndre Przywara regulator-name = "vcc-pe"; 113*68dd17c3SAndre Przywara}; 114*68dd17c3SAndre Przywara 115*68dd17c3SAndre Przywara®_aldo2 { 116*68dd17c3SAndre Przywara regulator-always-on; 117*68dd17c3SAndre Przywara regulator-min-microvolt = <3300000>; 118*68dd17c3SAndre Przywara regulator-max-microvolt = <3300000>; 119*68dd17c3SAndre Przywara regulator-name = "vcc-pl"; 120*68dd17c3SAndre Przywara}; 121*68dd17c3SAndre Przywara 122*68dd17c3SAndre Przywara®_aldo3 { 123*68dd17c3SAndre Przywara regulator-always-on; 124*68dd17c3SAndre Przywara regulator-min-microvolt = <3000000>; 125*68dd17c3SAndre Przywara regulator-max-microvolt = <3000000>; 126*68dd17c3SAndre Przywara regulator-name = "vcc-pll-avcc"; 127*68dd17c3SAndre Przywara}; 128*68dd17c3SAndre Przywara 129*68dd17c3SAndre Przywara®_dcdc1 { 130*68dd17c3SAndre Przywara regulator-always-on; 131*68dd17c3SAndre Przywara regulator-min-microvolt = <3300000>; 132*68dd17c3SAndre Przywara regulator-max-microvolt = <3300000>; 133*68dd17c3SAndre Przywara regulator-name = "vcc-3v3"; 134*68dd17c3SAndre Przywara}; 135*68dd17c3SAndre Przywara 136*68dd17c3SAndre Przywara®_dcdc2 { 137*68dd17c3SAndre Przywara regulator-always-on; 138*68dd17c3SAndre Przywara regulator-min-microvolt = <1040000>; 139*68dd17c3SAndre Przywara regulator-max-microvolt = <1300000>; 140*68dd17c3SAndre Przywara regulator-name = "vdd-cpux"; 141*68dd17c3SAndre Przywara}; 142*68dd17c3SAndre Przywara 143*68dd17c3SAndre Przywara/* DCDC3 is polyphased with DCDC2 */ 144*68dd17c3SAndre Przywara 145*68dd17c3SAndre Przywara®_dcdc5 { 146*68dd17c3SAndre Przywara regulator-always-on; 147*68dd17c3SAndre Przywara regulator-min-microvolt = <1500000>; 148*68dd17c3SAndre Przywara regulator-max-microvolt = <1500000>; 149*68dd17c3SAndre Przywara regulator-name = "vcc-ddr3"; 150*68dd17c3SAndre Przywara}; 151*68dd17c3SAndre Przywara 152*68dd17c3SAndre Przywara®_dcdc6 { 153*68dd17c3SAndre Przywara regulator-always-on; 154*68dd17c3SAndre Przywara regulator-min-microvolt = <1100000>; 155*68dd17c3SAndre Przywara regulator-max-microvolt = <1100000>; 156*68dd17c3SAndre Przywara regulator-name = "vdd-sys"; 157*68dd17c3SAndre Przywara}; 158*68dd17c3SAndre Przywara 159*68dd17c3SAndre Przywara®_dldo1 { 160*68dd17c3SAndre Przywara regulator-min-microvolt = <3300000>; 161*68dd17c3SAndre Przywara regulator-max-microvolt = <3300000>; 162*68dd17c3SAndre Przywara regulator-name = "vcc-hdmi"; 163*68dd17c3SAndre Przywara}; 164*68dd17c3SAndre Przywara 165*68dd17c3SAndre Przywara®_dldo2 { 166*68dd17c3SAndre Przywara regulator-min-microvolt = <3300000>; 167*68dd17c3SAndre Przywara regulator-max-microvolt = <3300000>; 168*68dd17c3SAndre Przywara regulator-name = "vcc-mipi"; 169*68dd17c3SAndre Przywara}; 170*68dd17c3SAndre Przywara 171*68dd17c3SAndre Przywara®_dldo3 { 172*68dd17c3SAndre Przywara regulator-min-microvolt = <2800000>; 173*68dd17c3SAndre Przywara regulator-max-microvolt = <2800000>; 174*68dd17c3SAndre Przywara regulator-name = "vcc-avdd-csi"; 175*68dd17c3SAndre Przywara}; 176*68dd17c3SAndre Przywara 177*68dd17c3SAndre Przywara®_dldo4 { 178*68dd17c3SAndre Przywara regulator-min-microvolt = <3300000>; 179*68dd17c3SAndre Przywara regulator-max-microvolt = <3300000>; 180*68dd17c3SAndre Przywara regulator-name = "vcc-wifi-io"; 181*68dd17c3SAndre Przywara}; 182*68dd17c3SAndre Przywara 183*68dd17c3SAndre Przywara®_eldo1 { 184*68dd17c3SAndre Przywara regulator-min-microvolt = <1800000>; 185*68dd17c3SAndre Przywara regulator-max-microvolt = <1800000>; 186*68dd17c3SAndre Przywara regulator-name = "cpvdd"; 187*68dd17c3SAndre Przywara}; 188*68dd17c3SAndre Przywara 189*68dd17c3SAndre Przywara®_eldo2 { 190*68dd17c3SAndre Przywara regulator-min-microvolt = <1800000>; 191*68dd17c3SAndre Przywara regulator-max-microvolt = <1800000>; 192*68dd17c3SAndre Przywara regulator-name = "vcc-dvdd-csi"; 193*68dd17c3SAndre Przywara}; 194*68dd17c3SAndre Przywara 195*68dd17c3SAndre Przywara®_fldo1 { 196*68dd17c3SAndre Przywara regulator-min-microvolt = <1200000>; 197*68dd17c3SAndre Przywara regulator-max-microvolt = <1200000>; 198*68dd17c3SAndre Przywara regulator-name = "vcc-1v2-hsic"; 199*68dd17c3SAndre Przywara}; 200*68dd17c3SAndre Przywara 201*68dd17c3SAndre Przywara/* 202*68dd17c3SAndre Przywara * The A64 chip cannot work without this regulator off, although 203*68dd17c3SAndre Przywara * it seems to be only driving the AR100 core. 204*68dd17c3SAndre Przywara * Maybe we don't still know well about CPUs domain. 205*68dd17c3SAndre Przywara */ 206*68dd17c3SAndre Przywara®_fldo2 { 207*68dd17c3SAndre Przywara regulator-always-on; 208*68dd17c3SAndre Przywara regulator-min-microvolt = <1100000>; 209*68dd17c3SAndre Przywara regulator-max-microvolt = <1100000>; 210*68dd17c3SAndre Przywara regulator-name = "vdd-cpus"; 211*68dd17c3SAndre Przywara}; 212*68dd17c3SAndre Przywara 213*68dd17c3SAndre Przywara®_rtc_ldo { 214*68dd17c3SAndre Przywara regulator-name = "vcc-rtc"; 215*68dd17c3SAndre Przywara}; 216*68dd17c3SAndre Przywara 217585bf8aeSJagan Teki&uart0 { 218585bf8aeSJagan Teki pinctrl-names = "default"; 219585bf8aeSJagan Teki pinctrl-0 = <&uart0_pins_a>; 220585bf8aeSJagan Teki status = "okay"; 221585bf8aeSJagan Teki}; 222