blob: 5c73bc75a1557253a074086967dd10abd191831b [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
vishnupatekar91bce9c2015-11-29 01:07:21 +080059 default AXP818_POWER if MACH_SUN8I_A83T
Icenowy Zheng365951a2020-10-26 22:19:34 +080060 default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S
Hans de Goede70ce2c82015-09-30 15:12:30 +020061
62config SUNXI_NO_PMIC
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090063 bool "board without a pmic"
Hans de Goede70ce2c82015-09-30 15:12:30 +020064 ---help---
65 Select this for boards which do not use a PMIC.
66
67config AXP152_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090068 bool "axp152 pmic support"
Hans de Goede70ce2c82015-09-30 15:12:30 +020069 depends on MACH_SUN5I
Jagan Tekifeb29272018-02-14 22:28:30 +053070 select AXP_PMIC_BUS
Hans de Goeded728da12015-12-20 16:10:01 +010071 select CMD_POWEROFF
Hans de Goede70ce2c82015-09-30 15:12:30 +020072 ---help---
73 Select this to enable support for the axp152 pmic found on most
74 A10s boards.
75
76config AXP209_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090077 bool "axp209 pmic support"
Icenowy Zheng365951a2020-10-26 22:19:34 +080078 depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S
Jagan Tekifeb29272018-02-14 22:28:30 +053079 select AXP_PMIC_BUS
Michael van Slingerland8fb31fe2015-12-13 13:17:31 +010080 select CMD_POWEROFF
Hans de Goede70ce2c82015-09-30 15:12:30 +020081 ---help---
82 Select this to enable support for the axp209 pmic found on most
83 A10, A13 and A20 boards.
84
Oliver Schinagld3a558d2013-07-26 12:56:58 +020085config AXP221_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +090086 bool "axp221 / axp223 pmic support"
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +080087 depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
Jagan Tekifeb29272018-02-14 22:28:30 +053088 select AXP_PMIC_BUS
Hans de Goede6391f0e2015-12-20 16:14:31 +010089 select CMD_POWEROFF
Oliver Schinagld3a558d2013-07-26 12:56:58 +020090 ---help---
Hans de Goede70ce2c82015-09-30 15:12:30 +020091 Select this to enable support for the axp221/axp223 pmic found on most
92 A23 and A31 boards.
93
Jernej Skrabecfde828c2021-01-11 21:11:33 +010094config AXP305_POWER
95 bool "axp305 pmic support"
96 depends on MACH_SUN50I_H616
97 select AXP_PMIC_BUS
98 select CMD_POWEROFF
99 ---help---
100 Select this to enable support for the axp305 pmic found on most
101 H616 boards.
102
Andre Przywara107d1ae2023-07-30 01:11:01 +0100103config AXP313_POWER
104 bool "axp313 pmic support"
105 depends on MACH_SUN50I_H616
106 select AXP_PMIC_BUS
107 select CMD_POWEROFF
108 ---help---
109 Select this to enable support for the AXP313 PMIC found on some
110 H616 boards.
111
Andre Przywarab95b9012024-05-10 00:43:18 +0100112config AXP717_POWER
113 bool "axp717 pmic support"
114 select AXP_PMIC_BUS
115 select CMD_POWEROFF
116 ---help---
117 Select this to enable support for the AXP717 PMIC found on some boards.
118
Andre Przywara3febb0a2024-10-20 17:36:19 +0100119config AXP803_POWER
120 bool "AXP803 PMIC support"
121 select AXP_PMIC_BUS
122 ---help---
123 Select this to enable support for the AXP803 PMIC found on some boards.
124
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800125config AXP809_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +0900126 bool "axp809 pmic support"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800127 depends on MACH_SUN9I
Jagan Tekifeb29272018-02-14 22:28:30 +0530128 select AXP_PMIC_BUS
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800129 select CMD_POWEROFF
130 ---help---
131 Say y here to enable support for the axp809 pmic found on A80 boards.
132
vishnupatekar91bce9c2015-11-29 01:07:21 +0800133config AXP818_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +0900134 bool "axp818 pmic support"
vishnupatekar91bce9c2015-11-29 01:07:21 +0800135 depends on MACH_SUN8I_A83T
Jagan Tekifeb29272018-02-14 22:28:30 +0530136 select AXP_PMIC_BUS
Chen-Yu Tsai45f192c2016-05-02 10:28:14 +0800137 select CMD_POWEROFF
vishnupatekar91bce9c2015-11-29 01:07:21 +0800138 ---help---
139 Say y here to enable support for the axp818 pmic found on
140 A83T dev board.
141
Jelle van der Waa3f3a3092016-02-23 18:47:19 +0100142config SY8106A_POWER
Masahiro Yamada78cd22a2016-08-12 10:26:50 +0900143 bool "SY8106A pmic support"
Andre Przywara5fb97432017-02-16 01:20:27 +0000144 depends on MACH_SUNXI_H3_H5
Jelle van der Waa3f3a3092016-02-23 18:47:19 +0100145 ---help---
146 Select this to enable support for the SY8106A pmic found on some
147 H3 boards.
148
Hans de Goede70ce2c82015-09-30 15:12:30 +0200149endchoice
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200150
Hans de Goede04bfd412015-09-30 15:22:42 +0200151config AXP_DCDC1_VOLT
152 int "axp pmic dcdc1 voltage"
Andre Przywara3febb0a2024-10-20 17:36:19 +0100153 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP803_POWER
154 default 3300 if AXP818_POWER || MACH_SUN8I_R40 || AXP803_POWER
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800155 default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
Hans de Goede78655482014-12-13 14:12:06 +0100156 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200157 Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to
158 disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for
159 generic 3.3V IO voltage for external devices like the lcd-panal and
160 sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800161 save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T
162 dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally
163 powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG.
Hans de Goede78655482014-12-13 14:12:06 +0100164
Hans de Goede04bfd412015-09-30 15:22:42 +0200165config AXP_DCDC2_VOLT
166 int "axp pmic dcdc2 voltage"
Andre Przywara3febb0a2024-10-20 17:36:19 +0100167 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER || AXP717_POWER || AXP803_POWER
vishnupatekar91bce9c2015-11-29 01:07:21 +0800168 default 900 if AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200169 default 1400 if AXP152_POWER || AXP209_POWER
Andre Przywara107d1ae2023-07-30 01:11:01 +0100170 default 1000 if AXP313_POWER
Andre Przywarab95b9012024-05-10 00:43:18 +0100171 default 1000 if AXP717_POWER
Andre Przywara3febb0a2024-10-20 17:36:19 +0100172 default 1000 if AXP803_POWER
Hans de Goedecf96e3f2015-10-03 15:21:53 +0200173 default 1200 if MACH_SUN6I
174 default 1100 if MACH_SUN8I
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800175 default 0 if MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200176 ---help---
177 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to
178 disable dcdc2.
179 On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V.
180 On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V.
Hans de Goedecf96e3f2015-10-03 15:21:53 +0200181 On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800182 On A80 boards dcdc2 powers the GPU and can be left off.
vishnupatekar91bce9c2015-11-29 01:07:21 +0800183 On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800184 On R40 boards dcdc2 is VDD-CPU and should be 1.1V
Andre Przywarab95b9012024-05-10 00:43:18 +0100185 On boards using the AXP313 or AXP717 it's often VDD-CPU.
Hans de Goede04bfd412015-09-30 15:22:42 +0200186
187config AXP_DCDC3_VOLT
188 int "axp pmic dcdc3 voltage"
Andre Przywarab95b9012024-05-10 00:43:18 +0100189 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER || AXP717_POWER
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800190 default 900 if AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200191 default 1500 if AXP152_POWER
192 default 1250 if AXP209_POWER
Andre Przywara107d1ae2023-07-30 01:11:01 +0100193 default 1100 if AXP313_POWER
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800194 default 1100 if MACH_SUN8I_R40
Hans de Goede04bfd412015-09-30 15:22:42 +0200195 default 1200 if MACH_SUN6I || MACH_SUN8I
196 ---help---
197 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
198 disable dcdc3.
199 On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and
200 should be 1.25V.
201 On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V.
202 On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800203 On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V.
vishnupatekar91bce9c2015-11-29 01:07:21 +0800204 On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800205 On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V.
Andre Przywarab95b9012024-05-10 00:43:18 +0100206 On boards using the AXP313 or AXP717 it's often VDD-DRAM and should
207 be 1.1V for LPDDR4.
Hans de Goede04bfd412015-09-30 15:22:42 +0200208
209config AXP_DCDC4_VOLT
210 int "axp pmic dcdc4 voltage"
Andre Przywara2e370a32021-06-27 01:13:09 +0100211 depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP305_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200212 default 1250 if AXP152_POWER
213 default 1200 if MACH_SUN6I
214 default 0 if MACH_SUN8I
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800215 default 900 if MACH_SUN9I
Jernej Skrabecfde828c2021-01-11 21:11:33 +0100216 default 1500 if AXP305_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200217 ---help---
218 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to
219 disable dcdc4.
220 On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V.
221 On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V.
222 On A23 / A33 boards dcdc4 is unused and should be disabled.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800223 On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V.
vishnupatekar91bce9c2015-11-29 01:07:21 +0800224 On A83T boards dcdc4 is used for VDD-GPU.
Jernej Skrabecfde828c2021-01-11 21:11:33 +0100225 On H616 boards dcdcd is used for VCC-DRAM.
Hans de Goede04bfd412015-09-30 15:22:42 +0200226
227config AXP_DCDC5_VOLT
228 int "axp pmic dcdc5 voltage"
Andre Przywara3febb0a2024-10-20 17:36:19 +0100229 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP803_POWER
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800230 default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200231 ---help---
232 Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to
233 disable dcdc5.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800234 On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800235 should be 1.5V, 1.35V if DDR3L is used.
Hans de Goede04bfd412015-09-30 15:22:42 +0200236
237config AXP_ALDO1_VOLT
238 int "axp pmic (a)ldo1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800239 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800240 default 0 if MACH_SUN6I || MACH_SUN8I_R40
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800241 default 1800 if MACH_SUN8I_A83T
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800242 default 3000 if MACH_SUN8I || MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200243 ---help---
244 Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to
245 disable aldo1.
246 On A31 boards aldo1 is often used to power the wifi module.
247 On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800248 On A80 boards aldo1 powers the USB hosts and should be 3.0V.
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800249 On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and
250 should be 1.8V.
Hans de Goede04bfd412015-09-30 15:22:42 +0200251
252config AXP_ALDO2_VOLT
253 int "axp pmic (a)ldo2 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800254 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200255 default 3000 if AXP152_POWER || AXP209_POWER
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800256 default 0 if MACH_SUN6I || MACH_SUN9I
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800257 default 1800 if MACH_SUN8I_A83T
Hans de Goede04bfd412015-09-30 15:22:42 +0200258 default 2500 if MACH_SUN8I
Hans de Goedec6c47c22015-08-14 16:19:34 +0200259 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200260 Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to
261 disable aldo2.
262 On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V.
263 On A31 boards aldo2 is typically unused and should be disabled.
264 On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V.
265 On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800266 On A80 boards aldo2 powers PB pingroup and camera IO and can be left off.
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800267 On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC,
268 LPDDR2, and the codec. It should be 1.8V.
Hans de Goedec6c47c22015-08-14 16:19:34 +0200269
Hans de Goede04bfd412015-09-30 15:22:42 +0200270config AXP_ALDO3_VOLT
271 int "axp pmic (a)ldo3 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800272 depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
273 default 0 if AXP209_POWER || MACH_SUN9I
Hans de Goede04bfd412015-09-30 15:22:42 +0200274 default 3000 if MACH_SUN6I || MACH_SUN8I
275 ---help---
276 Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to
277 disable aldo3.
278 On A10(s) / A13 / A20 boards aldo3 should be 2.8V.
Chen-Yu Tsai478a3c52016-11-30 15:30:30 +0800279 On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should
280 be 3.0V.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800281 On A80 boards aldo3 is normally not used.
Chen-Yu Tsaic05aa392016-01-12 14:42:40 +0800282 On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be
283 3.0V.
Hans de Goede04bfd412015-09-30 15:22:42 +0200284
Olliver Schinagl353b4cf2018-11-21 20:05:30 +0200285choice
286 prompt "axp pmic (a)ldo3 voltage rate control"
287 depends on AXP209_POWER
288 default AXP_ALDO3_VOLT_SLOPE_NONE
289 ---help---
290 The AXP can slowly ramp up voltage to reduce the inrush current when
291 changing voltages.
292 Note, this does not apply when enabling/disabling LDO3. See
293 "axp pmic (a)ldo3 inrush quirk" below to enable a slew rate to limit
294 inrush current on broken board designs.
295
296config AXP_ALDO3_VOLT_SLOPE_NONE
297 bool "No voltage slope"
298 ---help---
299 Tries to reach the next voltage setting near instantaneously. Measurements
300 indicate that this is about 0.0167 V/uS.
301
302config AXP_ALDO3_VOLT_SLOPE_16
303 bool "1.6 mV per uS"
304 ---help---
305 Increases the voltage by 1.6 mV per uS until the final voltage has
306 been reached. Note that the scaling is in 25 mV steps and thus
307 the slew rate in reality is about 25 mV/31.250 uS.
308
309config AXP_ALDO3_VOLT_SLOPE_08
310 bool "0.8 mV per uS"
311 ---help---
312 Increases the voltage by 0.8 mV per uS until the final voltage has
313 been reached. Note that the scaling is in 25 mV steps however and thus
314 the slew rate in reality is about 25 mV/15.625 uS.
315 This is the slowest supported rate.
316
317endchoice
318
Olliver Schinagl9e77d612018-11-21 20:05:31 +0200319config AXP_ALDO3_INRUSH_QUIRK
320 bool "axp pmic (a)ldo3 inrush quirk"
321 depends on AXP209_POWER
Olliver Schinagl9e77d612018-11-21 20:05:31 +0200322 ---help---
323 The reference design denotes a value of 4.7 uF for the output capacitor
324 of LDO3. Some boards have too high capacitance causing an inrush current
325 and resulting an AXP209 shutdown.
326
Hans de Goede04bfd412015-09-30 15:22:42 +0200327config AXP_ALDO4_VOLT
328 int "axp pmic (a)ldo4 voltage"
329 depends on AXP209_POWER
Hans de Goedea8c84912015-10-03 15:29:24 +0200330 default 0 if AXP209_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200331 ---help---
332 Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to
333 disable aldo4.
334 On A10(s) / A13 / A20 boards aldo4 should be 2.8V.
335
336config AXP_DLDO1_VOLT
337 int "axp pmic dldo1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800338 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +0100339 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200340 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200341 Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to
342 disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800343 to power the ethernet phy. On A23, A33 and A80 boards this is often
344 used to power the wifi.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200345
Hans de Goede04bfd412015-09-30 15:22:42 +0200346config AXP_DLDO2_VOLT
347 int "axp pmic dldo2 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800348 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
349 default 3000 if MACH_SUN9I
Hans de Goedebe4929c2014-12-13 14:02:38 +0100350 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200351 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200352 Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to
353 disable dldo2.
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800354 On A80 boards dldo2 normally powers the PL pins and should be 3.0V.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200355
Hans de Goede04bfd412015-09-30 15:22:42 +0200356config AXP_DLDO3_VOLT
357 int "axp pmic dldo3 voltage"
Chen-Yu Tsai265015b2016-01-12 14:42:38 +0800358 depends on AXP221_POWER || AXP818_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +0100359 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200360 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200361 Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to
362 disable dldo3.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200363
Hans de Goede04bfd412015-09-30 15:22:42 +0200364config AXP_DLDO4_VOLT
365 int "axp pmic dldo4 voltage"
vishnupatekar91bce9c2015-11-29 01:07:21 +0800366 depends on AXP221_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200367 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200368 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200369 Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to
370 disable dldo4.
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200371
Hans de Goede04bfd412015-09-30 15:22:42 +0200372config AXP_ELDO1_VOLT
373 int "axp pmic eldo1 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800374 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200375 default 0
376 ---help---
377 Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to
378 disable eldo1.
379
380config AXP_ELDO2_VOLT
381 int "axp pmic eldo2 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800382 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
Hans de Goede04bfd412015-09-30 15:22:42 +0200383 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +0200384 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200385 Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to
386 disable eldo2.
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +0200387
Hans de Goede04bfd412015-09-30 15:22:42 +0200388config AXP_ELDO3_VOLT
389 int "axp pmic eldo3 voltage"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800390 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
391 default 3000 if MACH_SUN9I
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +0200392 default 0
393 ---help---
Hans de Goede04bfd412015-09-30 15:22:42 +0200394 Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +0200395 disable eldo3. On some A31(s) tablets it might be used to supply
396 1.2V for the SSD2828 chip (converter of parallel LCD interface
397 into MIPI DSI).
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800398 On A80 boards it powers the PM pingroup and should be 3.0V.
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +0200399
Chen-Yu Tsaid028fba2016-03-30 00:26:48 +0800400config AXP_FLDO1_VOLT
401 int "axp pmic fldo1 voltage"
402 depends on AXP818_POWER
403 default 0 if MACH_SUN8I_A83T
404 ---help---
405 Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to
406 disable fldo1.
407 On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is
408 used.
409
410config AXP_FLDO2_VOLT
Chen-Yu Tsai70965342016-05-02 10:28:11 +0800411 int "axp pmic fldo2 voltage"
Chen-Yu Tsaid028fba2016-03-30 00:26:48 +0800412 depends on AXP818_POWER
413 default 900 if MACH_SUN8I_A83T
414 ---help---
415 Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to
416 disable fldo2.
417 On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V.
418
419config AXP_FLDO3_VOLT
420 int "axp pmic fldo3 voltage"
421 depends on AXP818_POWER
422 default 0
423 ---help---
424 Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to
425 disable fldo3.
426
Chen-Yu Tsai0e3efd32016-05-02 10:28:12 +0800427config AXP_SW_ON
428 bool "axp pmic sw on"
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +0800429 depends on AXP809_POWER || AXP818_POWER
Chen-Yu Tsai0e3efd32016-05-02 10:28:12 +0800430 ---help---
431 Enable to turn on axp pmic sw.
432
Jelle van der Waa3f3a3092016-02-23 18:47:19 +0100433config SY8106A_VOUT1_VOLT
434 int "SY8106A pmic VOUT1 voltage"
435 depends on SY8106A_POWER
436 default 1200
437 ---help---
438 Set the voltage (mV) to program the SY8106A pmic VOUT1. This
439 is typically used to power the VDD-CPU and should be 1200mV.
440 Values can range from 680mV till 1950mV.
441
Tom Rini7b6e5d02022-11-19 18:45:35 -0500442config TPS6586X_POWER
443 bool "Enable legacy driver for TI TPS6586x power management chip"
444
Adam Fordbc168042017-04-26 13:41:31 -0500445config TWL4030_POWER
446 depends on OMAP34XX
447 bool "Enable driver for TI TWL4030 power management chip"
Adam Fordc53d6132017-05-13 07:02:24 -0500448 imply CMD_POWEROFF
Adam Fordbc168042017-04-26 13:41:31 -0500449 ---help---
450 The TWL4030 in a combination audio CODEC/power management with
451 GPIO and it is commonly used with the OMAP3 family of processors
452
Frank Wunderlich06aeb742019-11-22 15:32:24 +0100453config POWER_MT6323
454 bool "Poweroff driver for mediatek mt6323"
455 select CMD_POWEROFF
456 help
457 This adds poweroff driver for mt6323
458 this pmic is used on mt7623 / Bananapi R2
459
Tom Riniac7f3212022-06-25 11:02:38 -0400460config PALMAS_POWER
461 bool "Palmas power support"
462 depends on OMAP54XX
463
Tom Rinidb9d9252022-11-19 18:45:15 -0500464config POWER_FSL
465 bool "Power control (legacy) for Freescale / NXP platforms"
466 depends on POWER_LEGACY
467
Simon Glass31339412021-08-08 12:20:27 -0600468config POWER_I2C
469 bool "I2C-based power control for legacy power"
470 depends on POWER_LEGACY
471 help
472 Enable this to use the I2C driver designed for the legacy PMIC
473 interface.
474
475 Not to be used for new designs and existing ones should be moved to
476 the new PMIC interface based on driver model.
477
Tom Rinidb9d9252022-11-19 18:45:15 -0500478config POWER_SPI
479 bool "SPI-based power control for legacy power_fsl driver"
480 depends on POWER_FSL && !POWER_I2C
481
Simon Glass31339412021-08-08 12:20:27 -0600482config SPL_POWER_I2C
483 bool "I2C-based power control for legacy power"
484 depends on SPL_POWER_LEGACY
485 default y if POWER_I2C
486 help
487 Enable this to use the I2C driver designed for the legacy PMIC
488 interface.
489
490 Not to be used for new designs and existing ones should be moved to
491 the new PMIC interface based on driver model.
492
Tom Rinidb9d9252022-11-19 18:45:15 -0500493choice
494 prompt "PMIC chip"
495 default POWER_FSL_MC13892
496 depends on POWER_FSL && POWER_I2C
497
498config POWER_FSL_MC13892
499 bool "MC13892"
500
501config POWER_FSL_MC34704
502 bool "MC34704"
503
504endchoice
505
Simon Glass7ff61042021-08-08 12:20:28 -0600506endif