blob: 0af53a6c67fe6a1ace6ea69462d63db6a2795db8 [file] [log] [blame]
Simon Glass14c251f2021-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 Marczak4d9057e2015-04-20 20:07:41 +020015
Simon Glass9d8665b2021-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 Rinib3401992022-06-10 23:03:09 -040032 depends on SPL && !SPL_DM_PMIC
Simon Glass9d8665b2021-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 Glass6c6d88e2019-12-06 21:41:53 -070046source "drivers/power/acpi_pmc/Kconfig"
47
Stephen Warren61f5ddc2016-07-13 13:45:31 -060048source "drivers/power/domain/Kconfig"
49
Przemyslaw Marczak4d9057e2015-04-20 20:07:41 +020050source "drivers/power/pmic/Kconfig"
51
Przemyslaw Marczakaf41e8d2015-04-20 20:07:42 +020052source "drivers/power/regulator/Kconfig"
53
Hans de Goede1df44812015-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 Tsai409677e2016-11-30 15:30:30 +080058 default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010059 default AXP305_POWER if MACH_SUN50I_H616
vishnupatekar813c7372015-11-29 01:07:21 +080060 default AXP818_POWER if MACH_SUN8I_A83T
Icenowy Zheng8c51c652020-10-26 22:19:34 +080061 default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S
Hans de Goede1df44812015-09-30 15:12:30 +020062
63config SUNXI_NO_PMIC
Masahiro Yamadaab650062016-08-12 10:26:50 +090064 bool "board without a pmic"
Hans de Goede1df44812015-09-30 15:12:30 +020065 ---help---
66 Select this for boards which do not use a PMIC.
67
68config AXP152_POWER
Masahiro Yamadaab650062016-08-12 10:26:50 +090069 bool "axp152 pmic support"
Hans de Goede1df44812015-09-30 15:12:30 +020070 depends on MACH_SUN5I
Jagan Teki735fb252018-02-14 22:28:30 +053071 select AXP_PMIC_BUS
Hans de Goedec286cdf2015-12-20 16:10:01 +010072 select CMD_POWEROFF
Hans de Goede1df44812015-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 Yamadaab650062016-08-12 10:26:50 +090078 bool "axp209 pmic support"
Icenowy Zheng8c51c652020-10-26 22:19:34 +080079 depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S
Jagan Teki735fb252018-02-14 22:28:30 +053080 select AXP_PMIC_BUS
Michael van Slingerland467e92b2015-12-13 13:17:31 +010081 select CMD_POWEROFF
Hans de Goede1df44812015-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 Schinagl5c7f10f2013-07-26 12:56:58 +020086config AXP221_POWER
Masahiro Yamadaab650062016-08-12 10:26:50 +090087 bool "axp221 / axp223 pmic support"
Chen-Yu Tsai409677e2016-11-30 15:30:30 +080088 depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
Jagan Teki735fb252018-02-14 22:28:30 +053089 select AXP_PMIC_BUS
Hans de Goedefe4b71b2015-12-20 16:14:31 +010090 select CMD_POWEROFF
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +020091 ---help---
Hans de Goede1df44812015-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 Skrabecfbd37d82021-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
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800104config AXP809_POWER
Masahiro Yamadaab650062016-08-12 10:26:50 +0900105 bool "axp809 pmic support"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800106 depends on MACH_SUN9I
Jagan Teki735fb252018-02-14 22:28:30 +0530107 select AXP_PMIC_BUS
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800108 select CMD_POWEROFF
109 ---help---
110 Say y here to enable support for the axp809 pmic found on A80 boards.
111
vishnupatekar813c7372015-11-29 01:07:21 +0800112config AXP818_POWER
Masahiro Yamadaab650062016-08-12 10:26:50 +0900113 bool "axp818 pmic support"
vishnupatekar813c7372015-11-29 01:07:21 +0800114 depends on MACH_SUN8I_A83T
Jagan Teki735fb252018-02-14 22:28:30 +0530115 select AXP_PMIC_BUS
Chen-Yu Tsai51199262016-05-02 10:28:14 +0800116 select CMD_POWEROFF
vishnupatekar813c7372015-11-29 01:07:21 +0800117 ---help---
118 Say y here to enable support for the axp818 pmic found on
119 A83T dev board.
120
Jelle van der Waa0d8382a2016-02-23 18:47:19 +0100121config SY8106A_POWER
Masahiro Yamadaab650062016-08-12 10:26:50 +0900122 bool "SY8106A pmic support"
Andre Przywara7b82a222017-02-16 01:20:27 +0000123 depends on MACH_SUNXI_H3_H5
Jelle van der Waa0d8382a2016-02-23 18:47:19 +0100124 ---help---
125 Select this to enable support for the SY8106A pmic found on some
126 H3 boards.
127
Hans de Goede1df44812015-09-30 15:12:30 +0200128endchoice
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +0200129
Hans de Goede40117522015-09-30 15:22:42 +0200130config AXP_DCDC1_VOLT
131 int "axp pmic dcdc1 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800132 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800133 default 3300 if AXP818_POWER || MACH_SUN8I_R40
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800134 default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
Hans de Goede1262a852014-12-13 14:12:06 +0100135 ---help---
Hans de Goede40117522015-09-30 15:22:42 +0200136 Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to
137 disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for
138 generic 3.3V IO voltage for external devices like the lcd-panal and
139 sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800140 save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T
141 dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally
142 powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG.
Hans de Goede1262a852014-12-13 14:12:06 +0100143
Hans de Goede40117522015-09-30 15:22:42 +0200144config AXP_DCDC2_VOLT
145 int "axp pmic dcdc2 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800146 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
vishnupatekar813c7372015-11-29 01:07:21 +0800147 default 900 if AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200148 default 1400 if AXP152_POWER || AXP209_POWER
Hans de Goedef339f092015-10-03 15:21:53 +0200149 default 1200 if MACH_SUN6I
150 default 1100 if MACH_SUN8I
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800151 default 0 if MACH_SUN9I
Hans de Goede40117522015-09-30 15:22:42 +0200152 ---help---
153 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to
154 disable dcdc2.
155 On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V.
156 On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V.
Hans de Goedef339f092015-10-03 15:21:53 +0200157 On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800158 On A80 boards dcdc2 powers the GPU and can be left off.
vishnupatekar813c7372015-11-29 01:07:21 +0800159 On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V.
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800160 On R40 boards dcdc2 is VDD-CPU and should be 1.1V
Hans de Goede40117522015-09-30 15:22:42 +0200161
162config AXP_DCDC3_VOLT
163 int "axp pmic dcdc3 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800164 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
165 default 900 if AXP809_POWER || AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200166 default 1500 if AXP152_POWER
167 default 1250 if AXP209_POWER
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800168 default 1100 if MACH_SUN8I_R40
Hans de Goede40117522015-09-30 15:22:42 +0200169 default 1200 if MACH_SUN6I || MACH_SUN8I
170 ---help---
171 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
172 disable dcdc3.
173 On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and
174 should be 1.25V.
175 On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V.
176 On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800177 On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V.
vishnupatekar813c7372015-11-29 01:07:21 +0800178 On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V.
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800179 On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V.
Hans de Goede40117522015-09-30 15:22:42 +0200180
181config AXP_DCDC4_VOLT
182 int "axp pmic dcdc4 voltage"
Jernej Skrabecfbd37d82021-01-11 21:11:33 +0100183 depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP305_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200184 default 1250 if AXP152_POWER
185 default 1200 if MACH_SUN6I
186 default 0 if MACH_SUN8I
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800187 default 900 if MACH_SUN9I
Jernej Skrabecfbd37d82021-01-11 21:11:33 +0100188 default 1500 if AXP305_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200189 ---help---
190 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to
191 disable dcdc4.
192 On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V.
193 On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V.
194 On A23 / A33 boards dcdc4 is unused and should be disabled.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800195 On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V.
vishnupatekar813c7372015-11-29 01:07:21 +0800196 On A83T boards dcdc4 is used for VDD-GPU.
Jernej Skrabecfbd37d82021-01-11 21:11:33 +0100197 On H616 boards dcdcd is used for VCC-DRAM.
Hans de Goede40117522015-09-30 15:22:42 +0200198
199config AXP_DCDC5_VOLT
200 int "axp pmic dcdc5 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800201 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
202 default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
Hans de Goede7a0bbe62015-08-14 16:19:34 +0200203 ---help---
Hans de Goede40117522015-09-30 15:22:42 +0200204 Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to
205 disable dcdc5.
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800206 On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800207 should be 1.5V, 1.35V if DDR3L is used.
Hans de Goede7a0bbe62015-08-14 16:19:34 +0200208
Hans de Goede40117522015-09-30 15:22:42 +0200209config AXP_ALDO1_VOLT
210 int "axp pmic (a)ldo1 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800211 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800212 default 0 if MACH_SUN6I || MACH_SUN8I_R40
Chen-Yu Tsaif3c50452016-01-12 14:42:40 +0800213 default 1800 if MACH_SUN8I_A83T
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800214 default 3000 if MACH_SUN8I || MACH_SUN9I
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +0200215 ---help---
Hans de Goede40117522015-09-30 15:22:42 +0200216 Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to
217 disable aldo1.
218 On A31 boards aldo1 is often used to power the wifi module.
219 On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800220 On A80 boards aldo1 powers the USB hosts and should be 3.0V.
Chen-Yu Tsaif3c50452016-01-12 14:42:40 +0800221 On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and
222 should be 1.8V.
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +0200223
Hans de Goede40117522015-09-30 15:22:42 +0200224config AXP_ALDO2_VOLT
225 int "axp pmic (a)ldo2 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800226 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200227 default 3000 if AXP152_POWER || AXP209_POWER
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800228 default 0 if MACH_SUN6I || MACH_SUN9I
Chen-Yu Tsaif3c50452016-01-12 14:42:40 +0800229 default 1800 if MACH_SUN8I_A83T
Hans de Goedef7044492014-12-13 12:40:45 +0100230 default 2500 if MACH_SUN8I
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +0200231 ---help---
Hans de Goede40117522015-09-30 15:22:42 +0200232 Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to
233 disable aldo2.
234 On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V.
235 On A31 boards aldo2 is typically unused and should be disabled.
236 On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V.
237 On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800238 On A80 boards aldo2 powers PB pingroup and camera IO and can be left off.
Chen-Yu Tsaif3c50452016-01-12 14:42:40 +0800239 On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC,
240 LPDDR2, and the codec. It should be 1.8V.
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +0200241
Hans de Goede40117522015-09-30 15:22:42 +0200242config AXP_ALDO3_VOLT
243 int "axp pmic (a)ldo3 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800244 depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
245 default 0 if AXP209_POWER || MACH_SUN9I
Hans de Goede40117522015-09-30 15:22:42 +0200246 default 3000 if MACH_SUN6I || MACH_SUN8I
Oliver Schinagl5c7f10f2013-07-26 12:56:58 +0200247 ---help---
Hans de Goede40117522015-09-30 15:22:42 +0200248 Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to
249 disable aldo3.
250 On A10(s) / A13 / A20 boards aldo3 should be 2.8V.
Chen-Yu Tsai409677e2016-11-30 15:30:30 +0800251 On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should
252 be 3.0V.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800253 On A80 boards aldo3 is normally not used.
Chen-Yu Tsaif3c50452016-01-12 14:42:40 +0800254 On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be
255 3.0V.
Siarhei Siamashka6906df12015-01-19 05:23:30 +0200256
Olliver Schinagl61436d52018-11-21 20:05:30 +0200257choice
258 prompt "axp pmic (a)ldo3 voltage rate control"
259 depends on AXP209_POWER
260 default AXP_ALDO3_VOLT_SLOPE_NONE
261 ---help---
262 The AXP can slowly ramp up voltage to reduce the inrush current when
263 changing voltages.
264 Note, this does not apply when enabling/disabling LDO3. See
265 "axp pmic (a)ldo3 inrush quirk" below to enable a slew rate to limit
266 inrush current on broken board designs.
267
268config AXP_ALDO3_VOLT_SLOPE_NONE
269 bool "No voltage slope"
270 ---help---
271 Tries to reach the next voltage setting near instantaneously. Measurements
272 indicate that this is about 0.0167 V/uS.
273
274config AXP_ALDO3_VOLT_SLOPE_16
275 bool "1.6 mV per uS"
276 ---help---
277 Increases the voltage by 1.6 mV per uS until the final voltage has
278 been reached. Note that the scaling is in 25 mV steps and thus
279 the slew rate in reality is about 25 mV/31.250 uS.
280
281config AXP_ALDO3_VOLT_SLOPE_08
282 bool "0.8 mV per uS"
283 ---help---
284 Increases the voltage by 0.8 mV per uS until the final voltage has
285 been reached. Note that the scaling is in 25 mV steps however and thus
286 the slew rate in reality is about 25 mV/15.625 uS.
287 This is the slowest supported rate.
288
289endchoice
290
Olliver Schinaglef526052018-11-21 20:05:31 +0200291config AXP_ALDO3_INRUSH_QUIRK
292 bool "axp pmic (a)ldo3 inrush quirk"
293 depends on AXP209_POWER
Olliver Schinaglef526052018-11-21 20:05:31 +0200294 ---help---
295 The reference design denotes a value of 4.7 uF for the output capacitor
296 of LDO3. Some boards have too high capacitance causing an inrush current
297 and resulting an AXP209 shutdown.
298
Hans de Goede40117522015-09-30 15:22:42 +0200299config AXP_ALDO4_VOLT
300 int "axp pmic (a)ldo4 voltage"
301 depends on AXP209_POWER
Hans de Goede02cc27c2015-10-03 15:29:24 +0200302 default 0 if AXP209_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200303 ---help---
304 Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to
305 disable aldo4.
306 On A10(s) / A13 / A20 boards aldo4 should be 2.8V.
307
308config AXP_DLDO1_VOLT
309 int "axp pmic dldo1 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800310 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Siarhei Siamashka6906df12015-01-19 05:23:30 +0200311 default 0
312 ---help---
Hans de Goede40117522015-09-30 15:22:42 +0200313 Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to
314 disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800315 to power the ethernet phy. On A23, A33 and A80 boards this is often
316 used to power the wifi.
Hans de Goede40117522015-09-30 15:22:42 +0200317
318config AXP_DLDO2_VOLT
319 int "axp pmic dldo2 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800320 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
321 default 3000 if MACH_SUN9I
Hans de Goede40117522015-09-30 15:22:42 +0200322 default 0
323 ---help---
324 Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to
325 disable dldo2.
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800326 On A80 boards dldo2 normally powers the PL pins and should be 3.0V.
Hans de Goede40117522015-09-30 15:22:42 +0200327
328config AXP_DLDO3_VOLT
329 int "axp pmic dldo3 voltage"
Chen-Yu Tsai0509efb2016-01-12 14:42:38 +0800330 depends on AXP221_POWER || AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200331 default 0
332 ---help---
333 Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to
334 disable dldo3.
335
336config AXP_DLDO4_VOLT
337 int "axp pmic dldo4 voltage"
vishnupatekar813c7372015-11-29 01:07:21 +0800338 depends on AXP221_POWER || AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200339 default 0
340 ---help---
341 Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to
342 disable dldo4.
343
344config AXP_ELDO1_VOLT
345 int "axp pmic eldo1 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800346 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200347 default 0
348 ---help---
349 Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to
350 disable eldo1.
351
352config AXP_ELDO2_VOLT
353 int "axp pmic eldo2 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800354 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede40117522015-09-30 15:22:42 +0200355 default 0
356 ---help---
357 Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to
358 disable eldo2.
359
360config AXP_ELDO3_VOLT
361 int "axp pmic eldo3 voltage"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800362 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
363 default 3000 if MACH_SUN9I
Hans de Goede40117522015-09-30 15:22:42 +0200364 default 0
365 ---help---
366 Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to
Siarhei Siamashka6906df12015-01-19 05:23:30 +0200367 disable eldo3. On some A31(s) tablets it might be used to supply
368 1.2V for the SSD2828 chip (converter of parallel LCD interface
369 into MIPI DSI).
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800370 On A80 boards it powers the PM pingroup and should be 3.0V.
Przemyslaw Marczak4d9057e2015-04-20 20:07:41 +0200371
Chen-Yu Tsai38491d92016-03-30 00:26:48 +0800372config AXP_FLDO1_VOLT
373 int "axp pmic fldo1 voltage"
374 depends on AXP818_POWER
375 default 0 if MACH_SUN8I_A83T
376 ---help---
377 Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to
378 disable fldo1.
379 On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is
380 used.
381
382config AXP_FLDO2_VOLT
Chen-Yu Tsaia6962532016-05-02 10:28:11 +0800383 int "axp pmic fldo2 voltage"
Chen-Yu Tsai38491d92016-03-30 00:26:48 +0800384 depends on AXP818_POWER
385 default 900 if MACH_SUN8I_A83T
386 ---help---
387 Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to
388 disable fldo2.
389 On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V.
390
391config AXP_FLDO3_VOLT
392 int "axp pmic fldo3 voltage"
393 depends on AXP818_POWER
394 default 0
395 ---help---
396 Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to
397 disable fldo3.
398
Chen-Yu Tsai15278cc2016-05-02 10:28:12 +0800399config AXP_SW_ON
400 bool "axp pmic sw on"
Chen-Yu Tsai795857d2016-05-02 10:28:15 +0800401 depends on AXP809_POWER || AXP818_POWER
Chen-Yu Tsai15278cc2016-05-02 10:28:12 +0800402 ---help---
403 Enable to turn on axp pmic sw.
404
Jelle van der Waa0d8382a2016-02-23 18:47:19 +0100405config SY8106A_VOUT1_VOLT
406 int "SY8106A pmic VOUT1 voltage"
407 depends on SY8106A_POWER
408 default 1200
409 ---help---
410 Set the voltage (mV) to program the SY8106A pmic VOUT1. This
411 is typically used to power the VDD-CPU and should be 1200mV.
412 Values can range from 680mV till 1950mV.
413
Adam Ford7815c702017-04-26 13:41:31 -0500414config TWL4030_POWER
415 depends on OMAP34XX
416 bool "Enable driver for TI TWL4030 power management chip"
Adam Forddf7fafd2017-05-13 07:02:24 -0500417 imply CMD_POWEROFF
Adam Ford7815c702017-04-26 13:41:31 -0500418 ---help---
419 The TWL4030 in a combination audio CODEC/power management with
420 GPIO and it is commonly used with the OMAP3 family of processors
421
Frank Wunderlich36b8b5d2019-11-22 15:32:24 +0100422config POWER_MT6323
423 bool "Poweroff driver for mediatek mt6323"
424 select CMD_POWEROFF
425 help
426 This adds poweroff driver for mt6323
427 this pmic is used on mt7623 / Bananapi R2
428
Simon Glass9d8665b2021-08-08 12:20:27 -0600429config POWER_I2C
430 bool "I2C-based power control for legacy power"
431 depends on POWER_LEGACY
432 help
433 Enable this to use the I2C driver designed for the legacy PMIC
434 interface.
435
436 Not to be used for new designs and existing ones should be moved to
437 the new PMIC interface based on driver model.
438
439config SPL_POWER_I2C
440 bool "I2C-based power control for legacy power"
441 depends on SPL_POWER_LEGACY
442 default y if POWER_I2C
443 help
444 Enable this to use the I2C driver designed for the legacy PMIC
445 interface.
446
447 Not to be used for new designs and existing ones should be moved to
448 the new PMIC interface based on driver model.
449
Simon Glass14c251f2021-08-08 12:20:28 -0600450endif