blob: 2395720c99c8e4998b11b0ae3a497c262c0374d9 [file] [log] [blame]
Simon Glass7ff61042021-08-08 12:20:28 -06001menuconfig POWER
2 bool "Power"
3 default y
4 help
5 Enable support for power control in U-Boot. This includes support
6 for PMICs (Power-management Integrated Circuits) and some of the
7 features provided by PMICs. In particular, voltage regulators can
8 be used to enable/disable power and vary its voltage. That can be
9 useful in U-Boot to turn on boot peripherals and adjust CPU voltage
10 so that the clock speed can be increased. This enables the drivers
11 in drivers/power, drivers/power/pmic and drivers/power/regulator
12 as part of a build.
13
14if POWER
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +020015
Simon Glass31339412021-08-08 12:20:27 -060016config POWER_LEGACY
17 bool "Legacy power support"
18 help
19 Note: This is a legacy option. Use DM_PMIC instead.
20
21 Enable support for power control in U-Boot. This includes support
22 for PMICs (Power-management Integrated Circuits) and some of the
23 features provided by PMICs. In particular, voltage regulators can
24 be used to enable/disable power and vary its voltage. That can be
25 useful in U-Boot to turn on boot peripherals and adjust CPU voltage
26 so that the clock speed can be increased. This enables the drivers
27 in drivers/power, drivers/power/pmic and drivers/power/regulator
28 as part of a build.
29
30config SPL_POWER_LEGACY
31 bool "Legacy power support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -040032 depends on SPL && !SPL_DM_PMIC
Simon Glass31339412021-08-08 12:20:27 -060033 default y if POWER_LEGACY
34 help
35 Note: This is a legacy option. Use SPL_DM_PMIC instead.
36
37 Enable support for power control in SPL. This includes support
38 for PMICs (Power-management Integrated Circuits) and some of the
39 features provided by PMICs. In particular, voltage regulators can
40 be used to enable/disable power and vary its voltage. That can be
41 useful in SPL to turn on boot peripherals and adjust CPU voltage
42 so that the clock speed can be increased. This enables the drivers
43 in drivers/power, drivers/power/pmic and drivers/power/regulator
44 as part of a build.
45
Simon Glass5e5c0cd2019-12-06 21:41:53 -070046source "drivers/power/acpi_pmc/Kconfig"
47
Stephen Warren92c67fa2016-07-13 13:45:31 -060048source "drivers/power/domain/Kconfig"
49
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +020050source "drivers/power/pmic/Kconfig"
51
Przemyslaw Marczak08edd002015-04-20 20:07:42 +020052source "drivers/power/regulator/Kconfig"
53
Hans de Goede70ce2c82015-09-30 15:12:30 +020054choice
55 prompt "Select Sunxi PMIC Variant"
56 depends on ARCH_SUNXI
57 default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +080058 default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
Jernej Skrabece638e052021-01-11 21:11:46 +010059 default AXP305_POWER if MACH_SUN50I_H616
vishnupatekar91bce9c2015-11-29 01:07:21 +080060 default AXP818_POWER if MACH_SUN8I_A83T
Icenowy Zheng365951a2020-10-26 22:19:34 +080061 default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S
Hans de Goede70ce2c82015-09-30 15:12:30 +020062
63config SUNXI_NO_PMIC
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090064 bool "board without a pmic"
Hans de Goede70ce2c82015-09-30 15:12:30 +020065 ---help---
66 Select this for boards which do not use a PMIC.
67
68config AXP152_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090069 bool "axp152 pmic support"
Hans de Goede70ce2c82015-09-30 15:12:30 +020070 depends on MACH_SUN5I
Jagan Tekifeb29272018-02-14 22:28:30 +053071 select AXP_PMIC_BUS
Hans de Goeded728da12015-12-20 16:10:01 +010072 select CMD_POWEROFF
Hans de Goede70ce2c82015-09-30 15:12:30 +020073 ---help---
74 Select this to enable support for the axp152 pmic found on most
75 A10s boards.
76
77config AXP209_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090078 bool "axp209 pmic support"
Icenowy Zheng365951a2020-10-26 22:19:34 +080079 depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S
Jagan Tekifeb29272018-02-14 22:28:30 +053080 select AXP_PMIC_BUS
Michael van Slingerland8fb31fe2015-12-13 13:17:31 +010081 select CMD_POWEROFF
Hans de Goede70ce2c82015-09-30 15:12:30 +020082 ---help---
83 Select this to enable support for the axp209 pmic found on most
84 A10, A13 and A20 boards.
85
Oliver Schinagld3a558d2013-07-26 12:56:58 +020086config AXP221_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090087 bool "axp221 / axp223 pmic support"
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +080088 depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
Jagan Tekifeb29272018-02-14 22:28:30 +053089 select AXP_PMIC_BUS
Hans de Goede6391f0e2015-12-20 16:14:31 +010090 select CMD_POWEROFF
Oliver Schinagld3a558d2013-07-26 12:56:58 +020091 ---help---
Hans de Goede70ce2c82015-09-30 15:12:30 +020092 Select this to enable support for the axp221/axp223 pmic found on most
93 A23 and A31 boards.
94
Jernej Skrabecfde828c2021-01-11 21:11:33 +010095config AXP305_POWER
96 bool "axp305 pmic support"
97 depends on MACH_SUN50I_H616
98 select AXP_PMIC_BUS
99 select CMD_POWEROFF
100 ---help---
101 Select this to enable support for the axp305 pmic found on most
102 H616 boards.
103
Andre Przywara107d1ae2023-07-30 01:11:01 +0100104config AXP313_POWER
105 bool "axp313 pmic support"
106 depends on MACH_SUN50I_H616
107 select AXP_PMIC_BUS
108 select CMD_POWEROFF
109 ---help---
110 Select this to enable support for the AXP313 PMIC found on some
111 H616 boards.
112
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800113config AXP809_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +0900114 bool "axp809 pmic support"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800115 depends on MACH_SUN9I
Jagan Tekifeb29272018-02-14 22:28:30 +0530116 select AXP_PMIC_BUS
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800117 select CMD_POWEROFF
118 ---help---
119 Say y here to enable support for the axp809 pmic found on A80 boards.
120
vishnupatekar91bce9c2015-11-29 01:07:21 +0800121config AXP818_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +0900122 bool "axp818 pmic support"
vishnupatekar91bce9c2015-11-29 01:07:21 +0800123 depends on MACH_SUN8I_A83T
Jagan Tekifeb29272018-02-14 22:28:30 +0530124 select AXP_PMIC_BUS
Chen-Yu Tsai45f192c2016-05-02 10:28:14 +0800125 select CMD_POWEROFF
vishnupatekar91bce9c2015-11-29 01:07:21 +0800126 ---help---
127 Say y here to enable support for the axp818 pmic found on
128 A83T dev board.
129
Jelle van der Waa3f3a3092016-02-23 18:47:19 +0100130config SY8106A_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +0900131 bool "SY8106A pmic support"
Andre Przywara5fb97432017-02-16 01:20:27 +0000132 depends on MACH_SUNXI_H3_H5
Jelle van der Waa3f3a3092016-02-23 18:47:19 +0100133 ---help---
134 Select this to enable support for the SY8106A pmic found on some
135 H3 boards.
136
Hans de Goede70ce2c82015-09-30 15:12:30 +0200137endchoice
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200138
Hans de Goede04bfd412015-09-30 15:22:42 +0200139config AXP_DCDC1_VOLT
140 int "axp pmic dcdc1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800141 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800142 default 3300 if AXP818_POWER || MACH_SUN8I_R40
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800143 default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
Hans de Goede78655482014-12-13 14:12:06 +0100144 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200145 Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to
146 disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for
147 generic 3.3V IO voltage for external devices like the lcd-panal and
148 sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800149 save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T
150 dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally
151 powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG.
Hans de Goede78655482014-12-13 14:12:06 +0100152
Hans de Goede04bfd412015-09-30 15:22:42 +0200153config AXP_DCDC2_VOLT
154 int "axp pmic dcdc2 voltage"
Andre Przywara107d1ae2023-07-30 01:11:01 +0100155 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER
vishnupatekar91bce9c2015-11-29 01:07:21 +0800156 default 900 if AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200157 default 1400 if AXP152_POWER || AXP209_POWER
Andre Przywara107d1ae2023-07-30 01:11:01 +0100158 default 1000 if AXP313_POWER
Hans de Goedecf96e3f2015-10-03 15:21:53 +0200159 default 1200 if MACH_SUN6I
160 default 1100 if MACH_SUN8I
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800161 default 0 if MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200162 ---help---
163 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to
164 disable dcdc2.
165 On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V.
166 On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V.
Hans de Goedecf96e3f2015-10-03 15:21:53 +0200167 On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800168 On A80 boards dcdc2 powers the GPU and can be left off.
vishnupatekar91bce9c2015-11-29 01:07:21 +0800169 On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800170 On R40 boards dcdc2 is VDD-CPU and should be 1.1V
Andre Przywara107d1ae2023-07-30 01:11:01 +0100171 On boards using the AXP313 it's often VDD-CPU.
Hans de Goede04bfd412015-09-30 15:22:42 +0200172
173config AXP_DCDC3_VOLT
174 int "axp pmic dcdc3 voltage"
Andre Przywara107d1ae2023-07-30 01:11:01 +0100175 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800176 default 900 if AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200177 default 1500 if AXP152_POWER
178 default 1250 if AXP209_POWER
Andre Przywara107d1ae2023-07-30 01:11:01 +0100179 default 1100 if AXP313_POWER
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800180 default 1100 if MACH_SUN8I_R40
Hans de Goede04bfd412015-09-30 15:22:42 +0200181 default 1200 if MACH_SUN6I || MACH_SUN8I
182 ---help---
183 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
184 disable dcdc3.
185 On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and
186 should be 1.25V.
187 On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V.
188 On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800189 On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V.
vishnupatekar91bce9c2015-11-29 01:07:21 +0800190 On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800191 On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V.
Andre Przywara107d1ae2023-07-30 01:11:01 +0100192 On boards using the AXP313 it's often VDD-DRAM and should be 1.1V for LPDDR4.
Hans de Goede04bfd412015-09-30 15:22:42 +0200193
194config AXP_DCDC4_VOLT
195 int "axp pmic dcdc4 voltage"
Andre Przywara2e370a32021-06-27 01:13:09 +0100196 depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP305_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200197 default 1250 if AXP152_POWER
198 default 1200 if MACH_SUN6I
199 default 0 if MACH_SUN8I
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800200 default 900 if MACH_SUN9I
Jernej Skrabecfde828c2021-01-11 21:11:33 +0100201 default 1500 if AXP305_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200202 ---help---
203 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to
204 disable dcdc4.
205 On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V.
206 On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V.
207 On A23 / A33 boards dcdc4 is unused and should be disabled.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800208 On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V.
vishnupatekar91bce9c2015-11-29 01:07:21 +0800209 On A83T boards dcdc4 is used for VDD-GPU.
Jernej Skrabecfde828c2021-01-11 21:11:33 +0100210 On H616 boards dcdcd is used for VCC-DRAM.
Hans de Goede04bfd412015-09-30 15:22:42 +0200211
212config AXP_DCDC5_VOLT
213 int "axp pmic dcdc5 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800214 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
215 default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200216 ---help---
217 Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to
218 disable dcdc5.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800219 On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800220 should be 1.5V, 1.35V if DDR3L is used.
Hans de Goede04bfd412015-09-30 15:22:42 +0200221
222config AXP_ALDO1_VOLT
223 int "axp pmic (a)ldo1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800224 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800225 default 0 if MACH_SUN6I || MACH_SUN8I_R40
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800226 default 1800 if MACH_SUN8I_A83T
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800227 default 3000 if MACH_SUN8I || MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200228 ---help---
229 Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to
230 disable aldo1.
231 On A31 boards aldo1 is often used to power the wifi module.
232 On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800233 On A80 boards aldo1 powers the USB hosts and should be 3.0V.
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800234 On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and
235 should be 1.8V.
Hans de Goede04bfd412015-09-30 15:22:42 +0200236
237config AXP_ALDO2_VOLT
238 int "axp pmic (a)ldo2 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800239 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200240 default 3000 if AXP152_POWER || AXP209_POWER
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800241 default 0 if MACH_SUN6I || MACH_SUN9I
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800242 default 1800 if MACH_SUN8I_A83T
Hans de Goede04bfd412015-09-30 15:22:42 +0200243 default 2500 if MACH_SUN8I
Hans de Goedec6c47c22015-08-14 16:19:34 +0200244 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200245 Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to
246 disable aldo2.
247 On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V.
248 On A31 boards aldo2 is typically unused and should be disabled.
249 On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V.
250 On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800251 On A80 boards aldo2 powers PB pingroup and camera IO and can be left off.
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800252 On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC,
253 LPDDR2, and the codec. It should be 1.8V.
Hans de Goedec6c47c22015-08-14 16:19:34 +0200254
Hans de Goede04bfd412015-09-30 15:22:42 +0200255config AXP_ALDO3_VOLT
256 int "axp pmic (a)ldo3 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800257 depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
258 default 0 if AXP209_POWER || MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200259 default 3000 if MACH_SUN6I || MACH_SUN8I
260 ---help---
261 Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to
262 disable aldo3.
263 On A10(s) / A13 / A20 boards aldo3 should be 2.8V.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800264 On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should
265 be 3.0V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800266 On A80 boards aldo3 is normally not used.
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800267 On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be
268 3.0V.
Hans de Goede04bfd412015-09-30 15:22:42 +0200269
Olliver Schinagl353b4cf2018-11-21 20:05:30 +0200270choice
271 prompt "axp pmic (a)ldo3 voltage rate control"
272 depends on AXP209_POWER
273 default AXP_ALDO3_VOLT_SLOPE_NONE
274 ---help---
275 The AXP can slowly ramp up voltage to reduce the inrush current when
276 changing voltages.
277 Note, this does not apply when enabling/disabling LDO3. See
278 "axp pmic (a)ldo3 inrush quirk" below to enable a slew rate to limit
279 inrush current on broken board designs.
280
281config AXP_ALDO3_VOLT_SLOPE_NONE
282 bool "No voltage slope"
283 ---help---
284 Tries to reach the next voltage setting near instantaneously. Measurements
285 indicate that this is about 0.0167 V/uS.
286
287config AXP_ALDO3_VOLT_SLOPE_16
288 bool "1.6 mV per uS"
289 ---help---
290 Increases the voltage by 1.6 mV per uS until the final voltage has
291 been reached. Note that the scaling is in 25 mV steps and thus
292 the slew rate in reality is about 25 mV/31.250 uS.
293
294config AXP_ALDO3_VOLT_SLOPE_08
295 bool "0.8 mV per uS"
296 ---help---
297 Increases the voltage by 0.8 mV per uS until the final voltage has
298 been reached. Note that the scaling is in 25 mV steps however and thus
299 the slew rate in reality is about 25 mV/15.625 uS.
300 This is the slowest supported rate.
301
302endchoice
303
Olliver Schinagl9e77d612018-11-21 20:05:31 +0200304config AXP_ALDO3_INRUSH_QUIRK
305 bool "axp pmic (a)ldo3 inrush quirk"
306 depends on AXP209_POWER
Olliver Schinagl9e77d612018-11-21 20:05:31 +0200307 ---help---
308 The reference design denotes a value of 4.7 uF for the output capacitor
309 of LDO3. Some boards have too high capacitance causing an inrush current
310 and resulting an AXP209 shutdown.
311
Hans de Goede04bfd412015-09-30 15:22:42 +0200312config AXP_ALDO4_VOLT
313 int "axp pmic (a)ldo4 voltage"
314 depends on AXP209_POWER
Hans de Goedea8c84912015-10-03 15:29:24 +0200315 default 0 if AXP209_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200316 ---help---
317 Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to
318 disable aldo4.
319 On A10(s) / A13 / A20 boards aldo4 should be 2.8V.
320
321config AXP_DLDO1_VOLT
322 int "axp pmic dldo1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800323 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +0100324 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200325 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200326 Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to
327 disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800328 to power the ethernet phy. On A23, A33 and A80 boards this is often
329 used to power the wifi.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200330
Hans de Goede04bfd412015-09-30 15:22:42 +0200331config AXP_DLDO2_VOLT
332 int "axp pmic dldo2 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800333 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
334 default 3000 if MACH_SUN9I
Hans de Goedebe4929c2014-12-13 14:02:38 +0100335 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200336 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200337 Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to
338 disable dldo2.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800339 On A80 boards dldo2 normally powers the PL pins and should be 3.0V.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200340
Hans de Goede04bfd412015-09-30 15:22:42 +0200341config AXP_DLDO3_VOLT
342 int "axp pmic dldo3 voltage"
Chen-Yu Tsai265015b2016-01-12 14:42:38 +0800343 depends on AXP221_POWER || AXP818_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +0100344 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200345 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200346 Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to
347 disable dldo3.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200348
Hans de Goede04bfd412015-09-30 15:22:42 +0200349config AXP_DLDO4_VOLT
350 int "axp pmic dldo4 voltage"
vishnupatekar91bce9c2015-11-29 01:07:21 +0800351 depends on AXP221_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200352 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200353 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200354 Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to
355 disable dldo4.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200356
Hans de Goede04bfd412015-09-30 15:22:42 +0200357config AXP_ELDO1_VOLT
358 int "axp pmic eldo1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800359 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200360 default 0
361 ---help---
362 Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to
363 disable eldo1.
364
365config AXP_ELDO2_VOLT
366 int "axp pmic eldo2 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800367 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200368 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200369 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200370 Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to
371 disable eldo2.
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +0200372
Hans de Goede04bfd412015-09-30 15:22:42 +0200373config AXP_ELDO3_VOLT
374 int "axp pmic eldo3 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800375 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
376 default 3000 if MACH_SUN9I
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +0200377 default 0
378 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200379 Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +0200380 disable eldo3. On some A31(s) tablets it might be used to supply
381 1.2V for the SSD2828 chip (converter of parallel LCD interface
382 into MIPI DSI).
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800383 On A80 boards it powers the PM pingroup and should be 3.0V.
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +0200384
Chen-Yu Tsaid028fba2016-03-30 00:26:48 +0800385config AXP_FLDO1_VOLT
386 int "axp pmic fldo1 voltage"
387 depends on AXP818_POWER
388 default 0 if MACH_SUN8I_A83T
389 ---help---
390 Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to
391 disable fldo1.
392 On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is
393 used.
394
395config AXP_FLDO2_VOLT
Chen-Yu Tsai70965342016-05-02 10:28:11 +0800396 int "axp pmic fldo2 voltage"
Chen-Yu Tsaid028fba2016-03-30 00:26:48 +0800397 depends on AXP818_POWER
398 default 900 if MACH_SUN8I_A83T
399 ---help---
400 Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to
401 disable fldo2.
402 On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V.
403
404config AXP_FLDO3_VOLT
405 int "axp pmic fldo3 voltage"
406 depends on AXP818_POWER
407 default 0
408 ---help---
409 Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to
410 disable fldo3.
411
Chen-Yu Tsai0e3efd32016-05-02 10:28:12 +0800412config AXP_SW_ON
413 bool "axp pmic sw on"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800414 depends on AXP809_POWER || AXP818_POWER
Chen-Yu Tsai0e3efd32016-05-02 10:28:12 +0800415 ---help---
416 Enable to turn on axp pmic sw.
417
Jelle van der Waa3f3a3092016-02-23 18:47:19 +0100418config SY8106A_VOUT1_VOLT
419 int "SY8106A pmic VOUT1 voltage"
420 depends on SY8106A_POWER
421 default 1200
422 ---help---
423 Set the voltage (mV) to program the SY8106A pmic VOUT1. This
424 is typically used to power the VDD-CPU and should be 1200mV.
425 Values can range from 680mV till 1950mV.
426
Tom Rini7b6e5d02022-11-19 18:45:35 -0500427config TPS6586X_POWER
428 bool "Enable legacy driver for TI TPS6586x power management chip"
429
Adam Fordbc168042017-04-26 13:41:31 -0500430config TWL4030_POWER
431 depends on OMAP34XX
432 bool "Enable driver for TI TWL4030 power management chip"
Adam Fordc53d6132017-05-13 07:02:24 -0500433 imply CMD_POWEROFF
Adam Fordbc168042017-04-26 13:41:31 -0500434 ---help---
435 The TWL4030 in a combination audio CODEC/power management with
436 GPIO and it is commonly used with the OMAP3 family of processors
437
Tom Rini7b6e5d02022-11-19 18:45:35 -0500438config TWL6030_POWER
439 depends on OMAP44XX
440 bool "Enable driver for TI TWL6030 power management chip"
441
Frank Wunderlich06aeb742019-11-22 15:32:24 +0100442config POWER_MT6323
443 bool "Poweroff driver for mediatek mt6323"
444 select CMD_POWEROFF
445 help
446 This adds poweroff driver for mt6323
447 this pmic is used on mt7623 / Bananapi R2
448
Tom Riniac7f3212022-06-25 11:02:38 -0400449config PALMAS_POWER
450 bool "Palmas power support"
451 depends on OMAP54XX
452
Tom Rinidb9d9252022-11-19 18:45:15 -0500453config POWER_FSL
454 bool "Power control (legacy) for Freescale / NXP platforms"
455 depends on POWER_LEGACY
456
Simon Glass31339412021-08-08 12:20:27 -0600457config POWER_I2C
458 bool "I2C-based power control for legacy power"
459 depends on POWER_LEGACY
460 help
461 Enable this to use the I2C driver designed for the legacy PMIC
462 interface.
463
464 Not to be used for new designs and existing ones should be moved to
465 the new PMIC interface based on driver model.
466
Tom Rinidb9d9252022-11-19 18:45:15 -0500467config POWER_SPI
468 bool "SPI-based power control for legacy power_fsl driver"
469 depends on POWER_FSL && !POWER_I2C
470
Simon Glass31339412021-08-08 12:20:27 -0600471config SPL_POWER_I2C
472 bool "I2C-based power control for legacy power"
473 depends on SPL_POWER_LEGACY
474 default y if POWER_I2C
475 help
476 Enable this to use the I2C driver designed for the legacy PMIC
477 interface.
478
479 Not to be used for new designs and existing ones should be moved to
480 the new PMIC interface based on driver model.
481
Tom Rinidb9d9252022-11-19 18:45:15 -0500482choice
483 prompt "PMIC chip"
484 default POWER_FSL_MC13892
485 depends on POWER_FSL && POWER_I2C
486
487config POWER_FSL_MC13892
488 bool "MC13892"
489
490config POWER_FSL_MC34704
491 bool "MC34704"
492
493endchoice
494
Simon Glass7ff61042021-08-08 12:20:28 -0600495endif