blob: d03626e89c4c52df933cf91b307d25a60e257353 [file] [log] [blame]
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +02001menu "Power"
2
3source "drivers/power/pmic/Kconfig"
4
Oliver Schinagld3a558d2013-07-26 12:56:58 +02005config AXP221_POWER
Hans de Goede1dd334b2014-11-29 23:54:25 +01006 boolean "axp221 / axp223 pmic support"
7 depends on MACH_SUN6I || MACH_SUN8I
Oliver Schinagld3a558d2013-07-26 12:56:58 +02008 default y
9 ---help---
Hans de Goede1dd334b2014-11-29 23:54:25 +010010 Say y here to enable support for the axp221 / axp223 pmic found on most
11 sun6i (A31) / sun8i (A23) boards.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020012
Hans de Goede78655482014-12-13 14:12:06 +010013config AXP221_DCDC1_VOLT
14 int "axp221 dcdc1 voltage"
15 depends on AXP221_POWER
16 default 3000
17 ---help---
18 Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to
19 disable dcdc1. This is typically used as generic 3.3V IO voltage for
20 things like GPIO-s, sdcard interfaces, etc. On most boards this is
21 undervolted to 3.0V to safe battery.
22
Oliver Schinagld3a558d2013-07-26 12:56:58 +020023config AXP221_DLDO1_VOLT
24 int "axp221 dldo1 voltage"
25 depends on AXP221_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +010026 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +020027 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010028 Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to
Hans de Goede75916ff2014-12-13 12:40:45 +010029 disable dldo1. On sun6i (A31) boards with ethernet this is often used
30 to power the ethernet phy. On sun8i (A23) boards this is often used to
31 power the wifi.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020032
33config AXP221_DLDO4_VOLT
34 int "axp221 dldo4 voltage"
35 depends on AXP221_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +010036 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +020037 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010038 Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to
Oliver Schinagld3a558d2013-07-26 12:56:58 +020039 disable dldo4.
40
41config AXP221_ALDO1_VOLT
42 int "axp221 aldo1 voltage"
43 depends on AXP221_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +010044 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +020045 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010046 Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to
Hans de Goede75916ff2014-12-13 12:40:45 +010047 disable aldo1. On sun6i (A31) boards which have a wifi module this is
48 often used to power the wifi module.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020049
50config AXP221_ALDO2_VOLT
51 int "axp221 aldo2 voltage"
52 depends on AXP221_POWER
Chen-Yu Tsai14135742015-01-03 10:17:24 +080053 default 0 if MACH_SUN6I
Hans de Goede75916ff2014-12-13 12:40:45 +010054 default 2500 if MACH_SUN8I
Oliver Schinagld3a558d2013-07-26 12:56:58 +020055 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010056 Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to
Chen-Yu Tsai14135742015-01-03 10:17:24 +080057 disable aldo2. On sun6i (A31) boards this is typically unused and
58 should be disabled, if it is used for LPDDR2 it should be set to 1.8V.
59 On sun8i (A23) this is typically connected to VDD-DLL and must be set
60 to 2.5V.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020061
62config AXP221_ALDO3_VOLT
63 int "axp221 aldo3 voltage"
64 depends on AXP221_POWER
Hans de Goede75916ff2014-12-13 12:40:45 +010065 default 3000
Oliver Schinagld3a558d2013-07-26 12:56:58 +020066 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010067 Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to
Hans de Goede75916ff2014-12-13 12:40:45 +010068 disable aldo3. This is typically connected to VCC-PLL and AVCC and
69 must be set to 3V.
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +020070
71config AXP221_ELDO3_VOLT
72 int "axp221 eldo3 voltage"
73 depends on AXP221_POWER
74 default 0
75 ---help---
76 Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to
77 disable eldo3. On some A31(s) tablets it might be used to supply
78 1.2V for the SSD2828 chip (converter of parallel LCD interface
79 into MIPI DSI).
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +020080
81endmenu