1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 // Copyright 2017 Icenowy Zheng <icenowy@aosc.x 2 // Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz> 3 3 4 /* 4 /* 5 * AXP803 Integrated Power Management Chip 5 * AXP803 Integrated Power Management Chip 6 * http://files.pine64.org/doc/datasheet/pine6 6 * http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf 7 */ 7 */ 8 8 9 &axp803 { 9 &axp803 { 10 interrupt-controller; 10 interrupt-controller; 11 #interrupt-cells = <1>; 11 #interrupt-cells = <1>; 12 12 13 ac_power_supply: ac-power { 13 ac_power_supply: ac-power { 14 compatible = "x-powers,axp803- 14 compatible = "x-powers,axp803-ac-power-supply", 15 "x-powers,axp813- 15 "x-powers,axp813-ac-power-supply"; 16 status = "disabled"; 16 status = "disabled"; 17 }; 17 }; 18 18 19 axp_adc: adc { 19 axp_adc: adc { 20 compatible = "x-powers,axp803- 20 compatible = "x-powers,axp803-adc", "x-powers,axp813-adc"; 21 #io-channel-cells = <1>; 21 #io-channel-cells = <1>; 22 }; 22 }; 23 23 24 axp_gpio: gpio { 24 axp_gpio: gpio { 25 compatible = "x-powers,axp803- 25 compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio"; 26 gpio-controller; 26 gpio-controller; 27 #gpio-cells = <2>; 27 #gpio-cells = <2>; >> 28 >> 29 gpio0_ldo: gpio0-ldo-pin { >> 30 pins = "GPIO0"; >> 31 function = "ldo"; >> 32 }; >> 33 >> 34 gpio1_ldo: gpio1-ldo-pin { >> 35 pins = "GPIO1"; >> 36 function = "ldo"; >> 37 }; 28 }; 38 }; 29 39 30 battery_power_supply: battery-power { 40 battery_power_supply: battery-power { 31 compatible = "x-powers,axp803- 41 compatible = "x-powers,axp803-battery-power-supply", 32 "x-powers,axp813- 42 "x-powers,axp813-battery-power-supply"; 33 status = "disabled"; 43 status = "disabled"; 34 }; 44 }; 35 45 36 regulators { 46 regulators { 37 /* Default work frequency for 47 /* Default work frequency for buck regulators */ 38 x-powers,dcdc-freq = <3000>; 48 x-powers,dcdc-freq = <3000>; 39 49 40 reg_aldo1: aldo1 { 50 reg_aldo1: aldo1 { 41 regulator-name = "aldo 51 regulator-name = "aldo1"; 42 }; 52 }; 43 53 44 reg_aldo2: aldo2 { 54 reg_aldo2: aldo2 { 45 regulator-name = "aldo 55 regulator-name = "aldo2"; 46 }; 56 }; 47 57 48 reg_aldo3: aldo3 { 58 reg_aldo3: aldo3 { 49 regulator-name = "aldo 59 regulator-name = "aldo3"; 50 }; 60 }; 51 61 52 reg_dc1sw: dc1sw { 62 reg_dc1sw: dc1sw { 53 regulator-name = "dc1s 63 regulator-name = "dc1sw"; 54 }; 64 }; 55 65 56 reg_dcdc1: dcdc1 { 66 reg_dcdc1: dcdc1 { 57 regulator-name = "dcdc 67 regulator-name = "dcdc1"; 58 }; 68 }; 59 69 60 reg_dcdc2: dcdc2 { 70 reg_dcdc2: dcdc2 { 61 regulator-name = "dcdc 71 regulator-name = "dcdc2"; 62 }; 72 }; 63 73 64 reg_dcdc3: dcdc3 { 74 reg_dcdc3: dcdc3 { 65 regulator-name = "dcdc 75 regulator-name = "dcdc3"; 66 }; 76 }; 67 77 68 reg_dcdc4: dcdc4 { 78 reg_dcdc4: dcdc4 { 69 regulator-name = "dcdc 79 regulator-name = "dcdc4"; 70 }; 80 }; 71 81 72 reg_dcdc5: dcdc5 { 82 reg_dcdc5: dcdc5 { 73 regulator-name = "dcdc 83 regulator-name = "dcdc5"; 74 }; 84 }; 75 85 76 reg_dcdc6: dcdc6 { 86 reg_dcdc6: dcdc6 { 77 regulator-name = "dcdc 87 regulator-name = "dcdc6"; 78 }; 88 }; 79 89 80 reg_dldo1: dldo1 { 90 reg_dldo1: dldo1 { 81 regulator-name = "dldo 91 regulator-name = "dldo1"; 82 }; 92 }; 83 93 84 reg_dldo2: dldo2 { 94 reg_dldo2: dldo2 { 85 regulator-name = "dldo 95 regulator-name = "dldo2"; 86 }; 96 }; 87 97 88 reg_dldo3: dldo3 { 98 reg_dldo3: dldo3 { 89 regulator-name = "dldo 99 regulator-name = "dldo3"; 90 }; 100 }; 91 101 92 reg_dldo4: dldo4 { 102 reg_dldo4: dldo4 { 93 regulator-name = "dldo 103 regulator-name = "dldo4"; 94 }; 104 }; 95 105 96 reg_eldo1: eldo1 { 106 reg_eldo1: eldo1 { 97 regulator-name = "eldo 107 regulator-name = "eldo1"; 98 }; 108 }; 99 109 100 reg_eldo2: eldo2 { 110 reg_eldo2: eldo2 { 101 regulator-name = "eldo 111 regulator-name = "eldo2"; 102 }; 112 }; 103 113 104 reg_eldo3: eldo3 { 114 reg_eldo3: eldo3 { 105 regulator-name = "eldo 115 regulator-name = "eldo3"; 106 }; 116 }; 107 117 108 reg_fldo1: fldo1 { 118 reg_fldo1: fldo1 { 109 regulator-name = "fldo 119 regulator-name = "fldo1"; 110 }; 120 }; 111 121 112 reg_fldo2: fldo2 { 122 reg_fldo2: fldo2 { 113 regulator-name = "fldo 123 regulator-name = "fldo2"; 114 }; 124 }; 115 125 116 reg_ldo_io0: ldo-io0 { 126 reg_ldo_io0: ldo-io0 { 117 regulator-name = "ldo- 127 regulator-name = "ldo-io0"; 118 status = "disabled"; 128 status = "disabled"; 119 }; 129 }; 120 130 121 reg_ldo_io1: ldo-io1 { 131 reg_ldo_io1: ldo-io1 { 122 regulator-name = "ldo- 132 regulator-name = "ldo-io1"; 123 status = "disabled"; 133 status = "disabled"; 124 }; 134 }; 125 135 126 reg_rtc_ldo: rtc-ldo { 136 reg_rtc_ldo: rtc-ldo { 127 /* RTC_LDO is a fixed, 137 /* RTC_LDO is a fixed, always-on regulator */ 128 regulator-always-on; 138 regulator-always-on; 129 regulator-min-microvol 139 regulator-min-microvolt = <3000000>; 130 regulator-max-microvol 140 regulator-max-microvolt = <3000000>; 131 regulator-name = "rtc- 141 regulator-name = "rtc-ldo"; 132 }; 142 }; 133 143 134 reg_drivevbus: drivevbus { 144 reg_drivevbus: drivevbus { 135 regulator-name = "driv 145 regulator-name = "drivevbus"; 136 status = "disabled"; 146 status = "disabled"; 137 }; 147 }; 138 }; 148 }; 139 149 140 usb_power_supply: usb-power { 150 usb_power_supply: usb-power { 141 compatible = "x-powers,axp803- 151 compatible = "x-powers,axp803-usb-power-supply", 142 "x-powers,axp813- 152 "x-powers,axp813-usb-power-supply"; 143 status = "disabled"; 153 status = "disabled"; 144 }; 154 }; 145 }; 155 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.