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
17 bool "Legacy power support"
19 Note: This is a legacy option. Use DM_PMIC instead.
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
30 config SPL_POWER_LEGACY
31 bool "Legacy power support in SPL"
32 depends on SPL && !SPL_DM_PMIC
33 default y if POWER_LEGACY
35 Note: This is a legacy option. Use SPL_DM_PMIC instead.
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
46 source "drivers/power/acpi_pmc/Kconfig"
48 source "drivers/power/domain/Kconfig"
50 source "drivers/power/pmic/Kconfig"
52 source "drivers/power/regulator/Kconfig"
55 prompt "Select Sunxi PMIC Variant"
57 default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
58 default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
59 default AXP305_POWER if MACH_SUN50I_H616
60 default AXP818_POWER if MACH_SUN8I_A83T
61 default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S
64 bool "board without a pmic"
66 Select this for boards which do not use a PMIC.
69 bool "axp152 pmic support"
74 Select this to enable support for the axp152 pmic found on most
78 bool "axp209 pmic support"
79 depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S
83 Select this to enable support for the axp209 pmic found on most
84 A10, A13 and A20 boards.
87 bool "axp221 / axp223 pmic support"
88 depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
92 Select this to enable support for the axp221/axp223 pmic found on most
96 bool "axp305 pmic support"
97 depends on MACH_SUN50I_H616
101 Select this to enable support for the axp305 pmic found on most
105 bool "axp809 pmic support"
106 depends on MACH_SUN9I
110 Say y here to enable support for the axp809 pmic found on A80 boards.
113 bool "axp818 pmic support"
114 depends on MACH_SUN8I_A83T
118 Say y here to enable support for the axp818 pmic found on
122 bool "SY8106A pmic support"
123 depends on MACH_SUNXI_H3_H5
125 Select this to enable support for the SY8106A pmic found on some
130 config AXP_DCDC1_VOLT
131 int "axp pmic dcdc1 voltage"
132 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
133 default 3300 if AXP818_POWER || MACH_SUN8I_R40
134 default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
136 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
140 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.
144 config AXP_DCDC2_VOLT
145 int "axp pmic dcdc2 voltage"
146 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
147 default 900 if AXP818_POWER
148 default 1400 if AXP152_POWER || AXP209_POWER
149 default 1200 if MACH_SUN6I
150 default 1100 if MACH_SUN8I
151 default 0 if MACH_SUN9I
153 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to
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.
157 On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V.
158 On A80 boards dcdc2 powers the GPU and can be left off.
159 On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V.
160 On R40 boards dcdc2 is VDD-CPU and should be 1.1V
162 config AXP_DCDC3_VOLT
163 int "axp pmic dcdc3 voltage"
164 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
165 default 900 if AXP809_POWER || AXP818_POWER
166 default 1500 if AXP152_POWER
167 default 1250 if AXP209_POWER
168 default 1100 if MACH_SUN8I_R40
169 default 1200 if MACH_SUN6I || MACH_SUN8I
171 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
173 On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and
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.
177 On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V.
178 On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V.
179 On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V.
181 config AXP_DCDC4_VOLT
182 int "axp pmic dcdc4 voltage"
183 depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP305_POWER
184 default 1250 if AXP152_POWER
185 default 1200 if MACH_SUN6I
186 default 0 if MACH_SUN8I
187 default 900 if MACH_SUN9I
188 default 1500 if AXP305_POWER
190 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to
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.
195 On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V.
196 On A83T boards dcdc4 is used for VDD-GPU.
197 On H616 boards dcdcd is used for VCC-DRAM.
199 config AXP_DCDC5_VOLT
200 int "axp pmic dcdc5 voltage"
201 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
202 default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
204 Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to
206 On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and
207 should be 1.5V, 1.35V if DDR3L is used.
209 config AXP_ALDO1_VOLT
210 int "axp pmic (a)ldo1 voltage"
211 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
212 default 0 if MACH_SUN6I || MACH_SUN8I_R40
213 default 1800 if MACH_SUN8I_A83T
214 default 3000 if MACH_SUN8I || MACH_SUN9I
216 Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to
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.
220 On A80 boards aldo1 powers the USB hosts and should be 3.0V.
221 On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and
224 config AXP_ALDO2_VOLT
225 int "axp pmic (a)ldo2 voltage"
226 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
227 default 3000 if AXP152_POWER || AXP209_POWER
228 default 0 if MACH_SUN6I || MACH_SUN9I
229 default 1800 if MACH_SUN8I_A83T
230 default 2500 if MACH_SUN8I
232 Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to
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.
238 On A80 boards aldo2 powers PB pingroup and camera IO and can be left off.
239 On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC,
240 LPDDR2, and the codec. It should be 1.8V.
242 config AXP_ALDO3_VOLT
243 int "axp pmic (a)ldo3 voltage"
244 depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
245 default 0 if AXP209_POWER || MACH_SUN9I
246 default 3000 if MACH_SUN6I || MACH_SUN8I
248 Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to
250 On A10(s) / A13 / A20 boards aldo3 should be 2.8V.
251 On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should
253 On A80 boards aldo3 is normally not used.
254 On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be
258 prompt "axp pmic (a)ldo3 voltage rate control"
259 depends on AXP209_POWER
260 default AXP_ALDO3_VOLT_SLOPE_NONE
262 The AXP can slowly ramp up voltage to reduce the inrush current when
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.
268 config AXP_ALDO3_VOLT_SLOPE_NONE
269 bool "No voltage slope"
271 Tries to reach the next voltage setting near instantaneously. Measurements
272 indicate that this is about 0.0167 V/uS.
274 config AXP_ALDO3_VOLT_SLOPE_16
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.
281 config AXP_ALDO3_VOLT_SLOPE_08
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.
291 config AXP_ALDO3_INRUSH_QUIRK
292 bool "axp pmic (a)ldo3 inrush quirk"
293 depends on AXP209_POWER
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.
299 config AXP_ALDO4_VOLT
300 int "axp pmic (a)ldo4 voltage"
301 depends on AXP209_POWER
302 default 0 if AXP209_POWER
304 Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to
306 On A10(s) / A13 / A20 boards aldo4 should be 2.8V.
308 config AXP_DLDO1_VOLT
309 int "axp pmic dldo1 voltage"
310 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
313 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
315 to power the ethernet phy. On A23, A33 and A80 boards this is often
316 used to power the wifi.
318 config AXP_DLDO2_VOLT
319 int "axp pmic dldo2 voltage"
320 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
321 default 3000 if MACH_SUN9I
324 Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to
326 On A80 boards dldo2 normally powers the PL pins and should be 3.0V.
328 config AXP_DLDO3_VOLT
329 int "axp pmic dldo3 voltage"
330 depends on AXP221_POWER || AXP818_POWER
333 Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to
336 config AXP_DLDO4_VOLT
337 int "axp pmic dldo4 voltage"
338 depends on AXP221_POWER || AXP818_POWER
341 Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to
344 config AXP_ELDO1_VOLT
345 int "axp pmic eldo1 voltage"
346 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
349 Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to
352 config AXP_ELDO2_VOLT
353 int "axp pmic eldo2 voltage"
354 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
357 Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to
360 config AXP_ELDO3_VOLT
361 int "axp pmic eldo3 voltage"
362 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
363 default 3000 if MACH_SUN9I
366 Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to
367 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
370 On A80 boards it powers the PM pingroup and should be 3.0V.
372 config AXP_FLDO1_VOLT
373 int "axp pmic fldo1 voltage"
374 depends on AXP818_POWER
375 default 0 if MACH_SUN8I_A83T
377 Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to
379 On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is
382 config AXP_FLDO2_VOLT
383 int "axp pmic fldo2 voltage"
384 depends on AXP818_POWER
385 default 900 if MACH_SUN8I_A83T
387 Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to
389 On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V.
391 config AXP_FLDO3_VOLT
392 int "axp pmic fldo3 voltage"
393 depends on AXP818_POWER
396 Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to
400 bool "axp pmic sw on"
401 depends on AXP809_POWER || AXP818_POWER
403 Enable to turn on axp pmic sw.
405 config SY8106A_VOUT1_VOLT
406 int "SY8106A pmic VOUT1 voltage"
407 depends on SY8106A_POWER
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.
414 config TPS6586X_POWER
415 bool "Enable legacy driver for TI TPS6586x power management chip"
419 bool "Enable driver for TI TWL4030 power management chip"
422 The TWL4030 in a combination audio CODEC/power management with
423 GPIO and it is commonly used with the OMAP3 family of processors
427 bool "Enable driver for TI TWL6030 power management chip"
430 bool "Poweroff driver for mediatek mt6323"
433 This adds poweroff driver for mt6323
434 this pmic is used on mt7623 / Bananapi R2
437 bool "Palmas power support"
441 bool "Power control (legacy) for Freescale / NXP platforms"
442 depends on POWER_LEGACY
445 bool "I2C-based power control for legacy power"
446 depends on POWER_LEGACY
448 Enable this to use the I2C driver designed for the legacy PMIC
451 Not to be used for new designs and existing ones should be moved to
452 the new PMIC interface based on driver model.
455 bool "SPI-based power control for legacy power_fsl driver"
456 depends on POWER_FSL && !POWER_I2C
459 bool "I2C-based power control for legacy power"
460 depends on SPL_POWER_LEGACY
461 default y if POWER_I2C
463 Enable this to use the I2C driver designed for the legacy PMIC
466 Not to be used for new designs and existing ones should be moved to
467 the new PMIC interface based on driver model.
471 default POWER_FSL_MC13892
472 depends on POWER_FSL && POWER_I2C
474 config POWER_FSL_MC13892
477 config POWER_FSL_MC34704