Przemyslaw Marczak | 9a8bc95 | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 1 | menu "Power" |
| 2 | |
| 3 | source "drivers/power/pmic/Kconfig" |
| 4 | |
Przemyslaw Marczak | 08edd00 | 2015-04-20 20:07:42 +0200 | [diff] [blame] | 5 | source "drivers/power/regulator/Kconfig" |
| 6 | |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 7 | config AXP221_POWER |
Hans de Goede | 1dd334b | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 8 | boolean "axp221 / axp223 pmic support" |
| 9 | depends on MACH_SUN6I || MACH_SUN8I |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 10 | default y |
| 11 | ---help--- |
Hans de Goede | 1dd334b | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 12 | Say y here to enable support for the axp221 / axp223 pmic found on most |
| 13 | sun6i (A31) / sun8i (A23) boards. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 14 | |
Hans de Goede | 7865548 | 2014-12-13 14:12:06 +0100 | [diff] [blame] | 15 | config 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 | |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 25 | config AXP221_DLDO1_VOLT |
| 26 | int "axp221 dldo1 voltage" |
| 27 | depends on AXP221_POWER |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 28 | default 0 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 29 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 30 | Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 31 | disable dldo1. On sun6i (A31) boards with ethernet this is often used |
| 32 | to power the ethernet phy. On sun8i (A23) boards this is often used to |
| 33 | power the wifi. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 34 | |
| 35 | config AXP221_DLDO4_VOLT |
| 36 | int "axp221 dldo4 voltage" |
| 37 | depends on AXP221_POWER |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 38 | default 0 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 39 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 40 | Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 41 | disable dldo4. |
| 42 | |
| 43 | config AXP221_ALDO1_VOLT |
| 44 | int "axp221 aldo1 voltage" |
| 45 | depends on AXP221_POWER |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 46 | default 0 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 47 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 48 | Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 49 | disable aldo1. On sun6i (A31) boards which have a wifi module this is |
| 50 | often used to power the wifi module. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 51 | |
| 52 | config AXP221_ALDO2_VOLT |
| 53 | int "axp221 aldo2 voltage" |
| 54 | depends on AXP221_POWER |
Chen-Yu Tsai | 1413574 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 55 | default 0 if MACH_SUN6I |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 56 | default 2500 if MACH_SUN8I |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 57 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 58 | Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to |
Chen-Yu Tsai | 1413574 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 59 | disable aldo2. On sun6i (A31) boards this is typically unused and |
| 60 | should be disabled, if it is used for LPDDR2 it should be set to 1.8V. |
| 61 | On sun8i (A23) this is typically connected to VDD-DLL and must be set |
| 62 | to 2.5V. |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 63 | |
| 64 | config AXP221_ALDO3_VOLT |
| 65 | int "axp221 aldo3 voltage" |
| 66 | depends on AXP221_POWER |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 67 | default 3000 |
Oliver Schinagl | d3a558d | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 68 | ---help--- |
Hans de Goede | be4929c | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 69 | Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to |
Hans de Goede | 75916ff | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 70 | disable aldo3. This is typically connected to VCC-PLL and AVCC and |
| 71 | must be set to 3V. |
Siarhei Siamashka | 7e4eb6c | 2015-01-19 05:23:30 +0200 | [diff] [blame] | 72 | |
| 73 | config AXP221_ELDO3_VOLT |
| 74 | int "axp221 eldo3 voltage" |
| 75 | depends on AXP221_POWER |
| 76 | default 0 |
| 77 | ---help--- |
| 78 | Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to |
| 79 | disable eldo3. On some A31(s) tablets it might be used to supply |
| 80 | 1.2V for the SSD2828 chip (converter of parallel LCD interface |
| 81 | into MIPI DSI). |
Przemyslaw Marczak | 9a8bc95 | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 82 | |
| 83 | endmenu |