1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) !! 1 /* 2 // Copyright 2017 Icenowy Zheng <icenowy@aosc.x !! 2 * Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz> >> 3 * >> 4 * This file is dual-licensed: you can use it either under the terms >> 5 * of the GPL or the X11 license, at your option. Note that this dual >> 6 * licensing only applies to this file, and not this project as a >> 7 * whole. >> 8 * >> 9 * a) This file is free software; you can redistribute it and/or >> 10 * modify it under the terms of the GNU General Public License as >> 11 * published by the Free Software Foundation; either version 2 of the >> 12 * License, or (at your option) any later version. >> 13 * >> 14 * This file is distributed in the hope that it will be useful, >> 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 17 * GNU General Public License for more details. >> 18 * >> 19 * Or, alternatively, >> 20 * >> 21 * b) Permission is hereby granted, free of charge, to any person >> 22 * obtaining a copy of this software and associated documentation >> 23 * files (the "Software"), to deal in the Software without >> 24 * restriction, including without limitation the rights to use, >> 25 * copy, modify, merge, publish, distribute, sublicense, and/or >> 26 * sell copies of the Software, and to permit persons to whom the >> 27 * Software is furnished to do so, subject to the following >> 28 * conditions: >> 29 * >> 30 * The above copyright notice and this permission notice shall be >> 31 * included in all copies or substantial portions of the Software. >> 32 * >> 33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >> 34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >> 35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >> 36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >> 37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >> 38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >> 39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> 40 * OTHER DEALINGS IN THE SOFTWARE. >> 41 */ 3 42 4 /* 43 /* 5 * AXP803 Integrated Power Management Chip 44 * AXP803 Integrated Power Management Chip 6 * http://files.pine64.org/doc/datasheet/pine6 45 * http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf 7 */ 46 */ 8 47 9 &axp803 { 48 &axp803 { 10 interrupt-controller; 49 interrupt-controller; 11 #interrupt-cells = <1>; 50 #interrupt-cells = <1>; 12 51 13 ac_power_supply: ac-power { << 14 compatible = "x-powers,axp803- << 15 "x-powers,axp813- << 16 status = "disabled"; << 17 }; << 18 << 19 axp_adc: adc { << 20 compatible = "x-powers,axp803- << 21 #io-channel-cells = <1>; << 22 }; << 23 << 24 axp_gpio: gpio { << 25 compatible = "x-powers,axp803- << 26 gpio-controller; << 27 #gpio-cells = <2>; << 28 }; << 29 << 30 battery_power_supply: battery-power { << 31 compatible = "x-powers,axp803- << 32 "x-powers,axp813- << 33 status = "disabled"; << 34 }; << 35 << 36 regulators { 52 regulators { 37 /* Default work frequency for 53 /* Default work frequency for buck regulators */ 38 x-powers,dcdc-freq = <3000>; 54 x-powers,dcdc-freq = <3000>; 39 55 40 reg_aldo1: aldo1 { 56 reg_aldo1: aldo1 { 41 regulator-name = "aldo 57 regulator-name = "aldo1"; 42 }; 58 }; 43 59 44 reg_aldo2: aldo2 { 60 reg_aldo2: aldo2 { 45 regulator-name = "aldo 61 regulator-name = "aldo2"; 46 }; 62 }; 47 63 48 reg_aldo3: aldo3 { 64 reg_aldo3: aldo3 { 49 regulator-name = "aldo 65 regulator-name = "aldo3"; 50 }; 66 }; 51 67 52 reg_dc1sw: dc1sw { 68 reg_dc1sw: dc1sw { 53 regulator-name = "dc1s 69 regulator-name = "dc1sw"; 54 }; 70 }; 55 71 56 reg_dcdc1: dcdc1 { 72 reg_dcdc1: dcdc1 { 57 regulator-name = "dcdc 73 regulator-name = "dcdc1"; 58 }; 74 }; 59 75 60 reg_dcdc2: dcdc2 { 76 reg_dcdc2: dcdc2 { 61 regulator-name = "dcdc 77 regulator-name = "dcdc2"; 62 }; 78 }; 63 79 64 reg_dcdc3: dcdc3 { 80 reg_dcdc3: dcdc3 { 65 regulator-name = "dcdc 81 regulator-name = "dcdc3"; 66 }; 82 }; 67 83 68 reg_dcdc4: dcdc4 { 84 reg_dcdc4: dcdc4 { 69 regulator-name = "dcdc 85 regulator-name = "dcdc4"; 70 }; 86 }; 71 87 72 reg_dcdc5: dcdc5 { 88 reg_dcdc5: dcdc5 { 73 regulator-name = "dcdc 89 regulator-name = "dcdc5"; 74 }; 90 }; 75 91 76 reg_dcdc6: dcdc6 { 92 reg_dcdc6: dcdc6 { 77 regulator-name = "dcdc 93 regulator-name = "dcdc6"; 78 }; 94 }; 79 95 80 reg_dldo1: dldo1 { 96 reg_dldo1: dldo1 { 81 regulator-name = "dldo 97 regulator-name = "dldo1"; 82 }; 98 }; 83 99 84 reg_dldo2: dldo2 { 100 reg_dldo2: dldo2 { 85 regulator-name = "dldo 101 regulator-name = "dldo2"; 86 }; 102 }; 87 103 88 reg_dldo3: dldo3 { 104 reg_dldo3: dldo3 { 89 regulator-name = "dldo 105 regulator-name = "dldo3"; 90 }; 106 }; 91 107 92 reg_dldo4: dldo4 { 108 reg_dldo4: dldo4 { 93 regulator-name = "dldo 109 regulator-name = "dldo4"; 94 }; 110 }; 95 111 96 reg_eldo1: eldo1 { 112 reg_eldo1: eldo1 { 97 regulator-name = "eldo 113 regulator-name = "eldo1"; 98 }; 114 }; 99 115 100 reg_eldo2: eldo2 { 116 reg_eldo2: eldo2 { 101 regulator-name = "eldo 117 regulator-name = "eldo2"; 102 }; 118 }; 103 119 104 reg_eldo3: eldo3 { 120 reg_eldo3: eldo3 { 105 regulator-name = "eldo 121 regulator-name = "eldo3"; 106 }; 122 }; 107 123 108 reg_fldo1: fldo1 { 124 reg_fldo1: fldo1 { 109 regulator-name = "fldo 125 regulator-name = "fldo1"; 110 }; 126 }; 111 127 112 reg_fldo2: fldo2 { 128 reg_fldo2: fldo2 { 113 regulator-name = "fldo 129 regulator-name = "fldo2"; 114 }; 130 }; 115 131 116 reg_ldo_io0: ldo-io0 { 132 reg_ldo_io0: ldo-io0 { 117 regulator-name = "ldo- 133 regulator-name = "ldo-io0"; 118 status = "disabled"; 134 status = "disabled"; 119 }; 135 }; 120 136 121 reg_ldo_io1: ldo-io1 { 137 reg_ldo_io1: ldo-io1 { 122 regulator-name = "ldo- 138 regulator-name = "ldo-io1"; 123 status = "disabled"; 139 status = "disabled"; 124 }; 140 }; 125 141 126 reg_rtc_ldo: rtc-ldo { 142 reg_rtc_ldo: rtc-ldo { 127 /* RTC_LDO is a fixed, 143 /* RTC_LDO is a fixed, always-on regulator */ 128 regulator-always-on; 144 regulator-always-on; 129 regulator-min-microvol 145 regulator-min-microvolt = <3000000>; 130 regulator-max-microvol 146 regulator-max-microvolt = <3000000>; 131 regulator-name = "rtc- 147 regulator-name = "rtc-ldo"; 132 }; 148 }; 133 << 134 reg_drivevbus: drivevbus { << 135 regulator-name = "driv << 136 status = "disabled"; << 137 }; << 138 }; << 139 << 140 usb_power_supply: usb-power { << 141 compatible = "x-powers,axp803- << 142 "x-powers,axp813- << 143 status = "disabled"; << 144 }; 149 }; 145 }; 150 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.