Przemyslaw Marczak | 4d9057e | 2015-04-20 20:07:41 +0200 | [diff] [blame^] | 1 | menu "Power" |
| 2 | |
| 3 | source "drivers/power/pmic/Kconfig" |
| 4 | |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 5 | config AXP221_POWER |
Hans de Goede | bdcdf84 | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 6 | boolean "axp221 / axp223 pmic support" |
| 7 | depends on MACH_SUN6I || MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 8 | default y |
| 9 | ---help--- |
Hans de Goede | bdcdf84 | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 10 | Say y here to enable support for the axp221 / axp223 pmic found on most |
| 11 | sun6i (A31) / sun8i (A23) boards. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 12 | |
Hans de Goede | 1262a85 | 2014-12-13 14:12:06 +0100 | [diff] [blame] | 13 | config 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 Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 23 | config AXP221_DLDO1_VOLT |
| 24 | int "axp221 dldo1 voltage" |
| 25 | depends on AXP221_POWER |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 26 | default 0 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 27 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 28 | Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 29 | 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 Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 32 | |
| 33 | config AXP221_DLDO4_VOLT |
| 34 | int "axp221 dldo4 voltage" |
| 35 | depends on AXP221_POWER |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 36 | default 0 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 37 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 38 | Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 39 | disable dldo4. |
| 40 | |
| 41 | config AXP221_ALDO1_VOLT |
| 42 | int "axp221 aldo1 voltage" |
| 43 | depends on AXP221_POWER |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 44 | default 0 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 45 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 46 | Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 47 | disable aldo1. On sun6i (A31) boards which have a wifi module this is |
| 48 | often used to power the wifi module. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 49 | |
| 50 | config AXP221_ALDO2_VOLT |
| 51 | int "axp221 aldo2 voltage" |
| 52 | depends on AXP221_POWER |
Chen-Yu Tsai | 52755b1 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 53 | default 0 if MACH_SUN6I |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 54 | default 2500 if MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 55 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 56 | Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to |
Chen-Yu Tsai | 52755b1 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 57 | 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 Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 61 | |
| 62 | config AXP221_ALDO3_VOLT |
| 63 | int "axp221 aldo3 voltage" |
| 64 | depends on AXP221_POWER |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 65 | default 3000 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 66 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 67 | Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 68 | disable aldo3. This is typically connected to VCC-PLL and AVCC and |
| 69 | must be set to 3V. |
Siarhei Siamashka | 6906df1 | 2015-01-19 05:23:30 +0200 | [diff] [blame] | 70 | |
| 71 | config 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 Marczak | 4d9057e | 2015-04-20 20:07:41 +0200 | [diff] [blame^] | 80 | |
| 81 | endmenu |