14c0a8475SIcenowy Zheng/* 24c0a8475SIcenowy Zheng * Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz> 34c0a8475SIcenowy Zheng * 44c0a8475SIcenowy Zheng * This file is dual-licensed: you can use it either under the terms 54c0a8475SIcenowy Zheng * of the GPL or the X11 license, at your option. Note that this dual 64c0a8475SIcenowy Zheng * licensing only applies to this file, and not this project as a 74c0a8475SIcenowy Zheng * whole. 84c0a8475SIcenowy Zheng * 94c0a8475SIcenowy Zheng * a) This file is free software; you can redistribute it and/or 104c0a8475SIcenowy Zheng * modify it under the terms of the GNU General Public License as 114c0a8475SIcenowy Zheng * published by the Free Software Foundation; either version 2 of the 124c0a8475SIcenowy Zheng * License, or (at your option) any later version. 134c0a8475SIcenowy Zheng * 144c0a8475SIcenowy Zheng * This file is distributed in the hope that it will be useful, 154c0a8475SIcenowy Zheng * but WITHOUT ANY WARRANTY; without even the implied warranty of 164c0a8475SIcenowy Zheng * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 174c0a8475SIcenowy Zheng * GNU General Public License for more details. 184c0a8475SIcenowy Zheng * 194c0a8475SIcenowy Zheng * Or, alternatively, 204c0a8475SIcenowy Zheng * 214c0a8475SIcenowy Zheng * b) Permission is hereby granted, free of charge, to any person 224c0a8475SIcenowy Zheng * obtaining a copy of this software and associated documentation 234c0a8475SIcenowy Zheng * files (the "Software"), to deal in the Software without 244c0a8475SIcenowy Zheng * restriction, including without limitation the rights to use, 254c0a8475SIcenowy Zheng * copy, modify, merge, publish, distribute, sublicense, and/or 264c0a8475SIcenowy Zheng * sell copies of the Software, and to permit persons to whom the 274c0a8475SIcenowy Zheng * Software is furnished to do so, subject to the following 284c0a8475SIcenowy Zheng * conditions: 294c0a8475SIcenowy Zheng * 304c0a8475SIcenowy Zheng * The above copyright notice and this permission notice shall be 314c0a8475SIcenowy Zheng * included in all copies or substantial portions of the Software. 324c0a8475SIcenowy Zheng * 334c0a8475SIcenowy Zheng * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 344c0a8475SIcenowy Zheng * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 354c0a8475SIcenowy Zheng * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 364c0a8475SIcenowy Zheng * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 374c0a8475SIcenowy Zheng * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 384c0a8475SIcenowy Zheng * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 394c0a8475SIcenowy Zheng * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 404c0a8475SIcenowy Zheng * OTHER DEALINGS IN THE SOFTWARE. 414c0a8475SIcenowy Zheng */ 424c0a8475SIcenowy Zheng 434c0a8475SIcenowy Zheng/* 444c0a8475SIcenowy Zheng * AXP803 Integrated Power Management Chip 454c0a8475SIcenowy Zheng * http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf 464c0a8475SIcenowy Zheng */ 474c0a8475SIcenowy Zheng 484c0a8475SIcenowy Zheng&axp803 { 494c0a8475SIcenowy Zheng interrupt-controller; 504c0a8475SIcenowy Zheng #interrupt-cells = <1>; 514c0a8475SIcenowy Zheng 524c0a8475SIcenowy Zheng regulators { 534c0a8475SIcenowy Zheng /* Default work frequency for buck regulators */ 544c0a8475SIcenowy Zheng x-powers,dcdc-freq = <3000>; 554c0a8475SIcenowy Zheng 564c0a8475SIcenowy Zheng reg_aldo1: aldo1 { 574c0a8475SIcenowy Zheng regulator-name = "aldo1"; 584c0a8475SIcenowy Zheng }; 594c0a8475SIcenowy Zheng 604c0a8475SIcenowy Zheng reg_aldo2: aldo2 { 614c0a8475SIcenowy Zheng regulator-name = "aldo2"; 624c0a8475SIcenowy Zheng }; 634c0a8475SIcenowy Zheng 644c0a8475SIcenowy Zheng reg_aldo3: aldo3 { 654c0a8475SIcenowy Zheng regulator-name = "aldo3"; 664c0a8475SIcenowy Zheng }; 674c0a8475SIcenowy Zheng 684c0a8475SIcenowy Zheng reg_dc1sw: dc1sw { 694c0a8475SIcenowy Zheng regulator-name = "dc1sw"; 704c0a8475SIcenowy Zheng }; 714c0a8475SIcenowy Zheng 724c0a8475SIcenowy Zheng reg_dcdc1: dcdc1 { 734c0a8475SIcenowy Zheng regulator-name = "dcdc1"; 744c0a8475SIcenowy Zheng }; 754c0a8475SIcenowy Zheng 764c0a8475SIcenowy Zheng reg_dcdc2: dcdc2 { 774c0a8475SIcenowy Zheng regulator-name = "dcdc2"; 784c0a8475SIcenowy Zheng }; 794c0a8475SIcenowy Zheng 804c0a8475SIcenowy Zheng reg_dcdc3: dcdc3 { 814c0a8475SIcenowy Zheng regulator-name = "dcdc3"; 824c0a8475SIcenowy Zheng }; 834c0a8475SIcenowy Zheng 844c0a8475SIcenowy Zheng reg_dcdc4: dcdc4 { 854c0a8475SIcenowy Zheng regulator-name = "dcdc4"; 864c0a8475SIcenowy Zheng }; 874c0a8475SIcenowy Zheng 884c0a8475SIcenowy Zheng reg_dcdc5: dcdc5 { 894c0a8475SIcenowy Zheng regulator-name = "dcdc5"; 904c0a8475SIcenowy Zheng }; 914c0a8475SIcenowy Zheng 924c0a8475SIcenowy Zheng reg_dcdc6: dcdc6 { 934c0a8475SIcenowy Zheng regulator-name = "dcdc6"; 944c0a8475SIcenowy Zheng }; 954c0a8475SIcenowy Zheng 964c0a8475SIcenowy Zheng reg_dldo1: dldo1 { 974c0a8475SIcenowy Zheng regulator-name = "dldo1"; 984c0a8475SIcenowy Zheng }; 994c0a8475SIcenowy Zheng 1004c0a8475SIcenowy Zheng reg_dldo2: dldo2 { 1014c0a8475SIcenowy Zheng regulator-name = "dldo2"; 1024c0a8475SIcenowy Zheng }; 1034c0a8475SIcenowy Zheng 1044c0a8475SIcenowy Zheng reg_dldo3: dldo3 { 1054c0a8475SIcenowy Zheng regulator-name = "dldo3"; 1064c0a8475SIcenowy Zheng }; 1074c0a8475SIcenowy Zheng 1084c0a8475SIcenowy Zheng reg_dldo4: dldo4 { 1094c0a8475SIcenowy Zheng regulator-name = "dldo4"; 1104c0a8475SIcenowy Zheng }; 1114c0a8475SIcenowy Zheng 1124c0a8475SIcenowy Zheng reg_eldo1: eldo1 { 1134c0a8475SIcenowy Zheng regulator-name = "eldo1"; 1144c0a8475SIcenowy Zheng }; 1154c0a8475SIcenowy Zheng 1164c0a8475SIcenowy Zheng reg_eldo2: eldo2 { 1174c0a8475SIcenowy Zheng regulator-name = "eldo2"; 1184c0a8475SIcenowy Zheng }; 1194c0a8475SIcenowy Zheng 1204c0a8475SIcenowy Zheng reg_eldo3: eldo3 { 1214c0a8475SIcenowy Zheng regulator-name = "eldo3"; 1224c0a8475SIcenowy Zheng }; 1234c0a8475SIcenowy Zheng 1244c0a8475SIcenowy Zheng reg_fldo1: fldo1 { 1254c0a8475SIcenowy Zheng regulator-name = "fldo1"; 1264c0a8475SIcenowy Zheng }; 1274c0a8475SIcenowy Zheng 1284c0a8475SIcenowy Zheng reg_fldo2: fldo2 { 1294c0a8475SIcenowy Zheng regulator-name = "fldo2"; 1304c0a8475SIcenowy Zheng }; 1314c0a8475SIcenowy Zheng 1324c0a8475SIcenowy Zheng reg_ldo_io0: ldo-io0 { 1334c0a8475SIcenowy Zheng regulator-name = "ldo-io0"; 1344c0a8475SIcenowy Zheng status = "disabled"; 1354c0a8475SIcenowy Zheng }; 1364c0a8475SIcenowy Zheng 1374c0a8475SIcenowy Zheng reg_ldo_io1: ldo-io1 { 1384c0a8475SIcenowy Zheng regulator-name = "ldo-io1"; 1394c0a8475SIcenowy Zheng status = "disabled"; 1404c0a8475SIcenowy Zheng }; 1414c0a8475SIcenowy Zheng 1424c0a8475SIcenowy Zheng reg_rtc_ldo: rtc-ldo { 1434c0a8475SIcenowy Zheng /* RTC_LDO is a fixed, always-on regulator */ 1444c0a8475SIcenowy Zheng regulator-always-on; 1454c0a8475SIcenowy Zheng regulator-min-microvolt = <3000000>; 1464c0a8475SIcenowy Zheng regulator-max-microvolt = <3000000>; 1474c0a8475SIcenowy Zheng regulator-name = "rtc-ldo"; 1484c0a8475SIcenowy Zheng }; 14961e9e15fSJagan Teki 15061e9e15fSJagan Teki reg_drivevbus: drivevbus { 15161e9e15fSJagan Teki regulator-name = "drivevbus"; 15261e9e15fSJagan Teki status = "disabled"; 15361e9e15fSJagan Teki }; 1544c0a8475SIcenowy Zheng }; 1554c0a8475SIcenowy Zheng}; 156