xref: /openbmc/u-boot/drivers/power/Kconfig (revision 6906df1ab8d64a4e21d38ea538d6cd383a089e1d)
15c7f10fdSOliver Schinaglconfig AXP221_POWER
2bdcdf846SHans de Goede	boolean "axp221 / axp223 pmic support"
3bdcdf846SHans de Goede	depends on MACH_SUN6I || MACH_SUN8I
45c7f10fdSOliver Schinagl	default y
55c7f10fdSOliver Schinagl	---help---
6bdcdf846SHans de Goede	Say y here to enable support for the axp221 / axp223 pmic found on most
7bdcdf846SHans de Goede	sun6i (A31) / sun8i (A23) boards.
85c7f10fdSOliver Schinagl
91262a85fSHans de Goedeconfig AXP221_DCDC1_VOLT
101262a85fSHans de Goede	int "axp221 dcdc1 voltage"
111262a85fSHans de Goede	depends on AXP221_POWER
121262a85fSHans de Goede	default 3000
131262a85fSHans de Goede	---help---
141262a85fSHans de Goede	Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to
151262a85fSHans de Goede	disable dcdc1. This is typically used as generic 3.3V IO voltage for
161262a85fSHans de Goede	things like GPIO-s, sdcard interfaces, etc. On most boards this is
171262a85fSHans de Goede	undervolted to 3.0V to safe battery.
181262a85fSHans de Goede
195c7f10fdSOliver Schinaglconfig AXP221_DLDO1_VOLT
205c7f10fdSOliver Schinagl	int "axp221 dldo1 voltage"
215c7f10fdSOliver Schinagl	depends on AXP221_POWER
2250e0d5e6SHans de Goede	default 0
235c7f10fdSOliver Schinagl	---help---
2450e0d5e6SHans de Goede	Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to
25f7044498SHans de Goede	disable dldo1. On sun6i (A31) boards with ethernet this is often used
26f7044498SHans de Goede	to power the ethernet phy. On sun8i (A23) boards this is often used to
27f7044498SHans de Goede	power the wifi.
285c7f10fdSOliver Schinagl
295c7f10fdSOliver Schinaglconfig AXP221_DLDO4_VOLT
305c7f10fdSOliver Schinagl	int "axp221 dldo4 voltage"
315c7f10fdSOliver Schinagl	depends on AXP221_POWER
3250e0d5e6SHans de Goede	default 0
335c7f10fdSOliver Schinagl	---help---
3450e0d5e6SHans de Goede	Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to
355c7f10fdSOliver Schinagl	disable dldo4.
365c7f10fdSOliver Schinagl
375c7f10fdSOliver Schinaglconfig AXP221_ALDO1_VOLT
385c7f10fdSOliver Schinagl	int "axp221 aldo1 voltage"
395c7f10fdSOliver Schinagl	depends on AXP221_POWER
4050e0d5e6SHans de Goede	default 0
415c7f10fdSOliver Schinagl	---help---
4250e0d5e6SHans de Goede	Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to
43f7044498SHans de Goede	disable aldo1. On sun6i (A31) boards which have a wifi module this is
44f7044498SHans de Goede	often used to power the wifi module.
455c7f10fdSOliver Schinagl
465c7f10fdSOliver Schinaglconfig AXP221_ALDO2_VOLT
475c7f10fdSOliver Schinagl	int "axp221 aldo2 voltage"
485c7f10fdSOliver Schinagl	depends on AXP221_POWER
4952755b12SChen-Yu Tsai	default 0 if MACH_SUN6I
50f7044498SHans de Goede	default 2500 if MACH_SUN8I
515c7f10fdSOliver Schinagl	---help---
5250e0d5e6SHans de Goede	Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to
5352755b12SChen-Yu Tsai	disable aldo2. On sun6i (A31) boards this is typically unused and
5452755b12SChen-Yu Tsai	should be disabled, if it is used for LPDDR2 it should be set to 1.8V.
5552755b12SChen-Yu Tsai	On sun8i (A23) this is typically connected to VDD-DLL and must be set
5652755b12SChen-Yu Tsai	to 2.5V.
575c7f10fdSOliver Schinagl
585c7f10fdSOliver Schinaglconfig AXP221_ALDO3_VOLT
595c7f10fdSOliver Schinagl	int "axp221 aldo3 voltage"
605c7f10fdSOliver Schinagl	depends on AXP221_POWER
61f7044498SHans de Goede	default 3000
625c7f10fdSOliver Schinagl	---help---
6350e0d5e6SHans de Goede	Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to
64f7044498SHans de Goede	disable aldo3. This is typically connected to VCC-PLL and AVCC and
65f7044498SHans de Goede	must be set to 3V.
66*6906df1aSSiarhei Siamashka
67*6906df1aSSiarhei Siamashkaconfig AXP221_ELDO3_VOLT
68*6906df1aSSiarhei Siamashka	int "axp221 eldo3 voltage"
69*6906df1aSSiarhei Siamashka	depends on AXP221_POWER
70*6906df1aSSiarhei Siamashka	default 0
71*6906df1aSSiarhei Siamashka	---help---
72*6906df1aSSiarhei Siamashka	Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to
73*6906df1aSSiarhei Siamashka	disable eldo3. On some A31(s) tablets it might be used to supply
74*6906df1aSSiarhei Siamashka	1.2V for the SSD2828 chip (converter of parallel LCD interface
75*6906df1aSSiarhei Siamashka	into MIPI DSI).
76