blob: df5e3734b05f20e8ff9db1c83dea2aad3a41fe0f [file] [log] [blame]
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +02001menu "Power"
2
3source "drivers/power/pmic/Kconfig"
4
Przemyslaw Marczak08edd002015-04-20 20:07:42 +02005source "drivers/power/regulator/Kconfig"
6
Oliver Schinagld3a558d2013-07-26 12:56:58 +02007config AXP221_POWER
Hans de Goede1dd334b2014-11-29 23:54:25 +01008 boolean "axp221 / axp223 pmic support"
9 depends on MACH_SUN6I || MACH_SUN8I
Oliver Schinagld3a558d2013-07-26 12:56:58 +020010 default y
11 ---help---
Hans de Goede1dd334b2014-11-29 23:54:25 +010012 Say y here to enable support for the axp221 / axp223 pmic found on most
13 sun6i (A31) / sun8i (A23) boards.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020014
Hans de Goede78655482014-12-13 14:12:06 +010015config AXP221_DCDC1_VOLT
16 int "axp221 dcdc1 voltage"
17 depends on AXP221_POWER
18 default 3000
19 ---help---
20 Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to
21 disable dcdc1. This is typically used as generic 3.3V IO voltage for
22 things like GPIO-s, sdcard interfaces, etc. On most boards this is
23 undervolted to 3.0V to safe battery.
24
Hans de Goedec6c47c22015-08-14 16:19:34 +020025config AXP221_DCDC2_VOLT
26 int "axp221 dcdc2 voltage"
27 depends on AXP221_POWER
28 default 1200
29 ---help---
30 Set the voltage (mV) to program the axp221 dcdc2 at, set to 0 to
31 disable dcdc2. On A31 boards this is typically used for VDD-GPU,
32 on A23/A33 for VDD-SYS, this should normally be set to 1.2V.
33
Oliver Schinagld3a558d2013-07-26 12:56:58 +020034config AXP221_DLDO1_VOLT
35 int "axp221 dldo1 voltage"
36 depends on AXP221_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +010037 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +020038 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010039 Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to
Hans de Goede75916ff2014-12-13 12:40:45 +010040 disable dldo1. On sun6i (A31) boards with ethernet this is often used
41 to power the ethernet phy. On sun8i (A23) boards this is often used to
42 power the wifi.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020043
44config AXP221_DLDO4_VOLT
45 int "axp221 dldo4 voltage"
46 depends on AXP221_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +010047 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +020048 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010049 Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to
Oliver Schinagld3a558d2013-07-26 12:56:58 +020050 disable dldo4.
51
52config AXP221_ALDO1_VOLT
53 int "axp221 aldo1 voltage"
54 depends on AXP221_POWER
Hans de Goedebe4929c2014-12-13 14:02:38 +010055 default 0
Oliver Schinagld3a558d2013-07-26 12:56:58 +020056 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010057 Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to
Hans de Goede75916ff2014-12-13 12:40:45 +010058 disable aldo1. On sun6i (A31) boards which have a wifi module this is
59 often used to power the wifi module.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020060
61config AXP221_ALDO2_VOLT
62 int "axp221 aldo2 voltage"
63 depends on AXP221_POWER
Chen-Yu Tsai14135742015-01-03 10:17:24 +080064 default 0 if MACH_SUN6I
Hans de Goede75916ff2014-12-13 12:40:45 +010065 default 2500 if MACH_SUN8I
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 aldo2 at, set to 0 to
Chen-Yu Tsai14135742015-01-03 10:17:24 +080068 disable aldo2. On sun6i (A31) boards this is typically unused and
69 should be disabled, if it is used for LPDDR2 it should be set to 1.8V.
70 On sun8i (A23) this is typically connected to VDD-DLL and must be set
71 to 2.5V.
Oliver Schinagld3a558d2013-07-26 12:56:58 +020072
73config AXP221_ALDO3_VOLT
74 int "axp221 aldo3 voltage"
75 depends on AXP221_POWER
Hans de Goede75916ff2014-12-13 12:40:45 +010076 default 3000
Oliver Schinagld3a558d2013-07-26 12:56:58 +020077 ---help---
Hans de Goedebe4929c2014-12-13 14:02:38 +010078 Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to
Hans de Goede75916ff2014-12-13 12:40:45 +010079 disable aldo3. This is typically connected to VCC-PLL and AVCC and
80 must be set to 3V.
Siarhei Siamashka7e4eb6c2015-01-19 05:23:30 +020081
82config AXP221_ELDO3_VOLT
83 int "axp221 eldo3 voltage"
84 depends on AXP221_POWER
85 default 0
86 ---help---
87 Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to
88 disable eldo3. On some A31(s) tablets it might be used to supply
89 1.2V for the SSD2828 chip (converter of parallel LCD interface
90 into MIPI DSI).
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +020091
92endmenu