Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 1 | config AXP221_POWER |
Hans de Goede | bdcdf84 | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 2 | boolean "axp221 / axp223 pmic support" |
| 3 | depends on MACH_SUN6I || MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 4 | default y |
| 5 | ---help--- |
Hans de Goede | bdcdf84 | 2014-11-29 23:54:25 +0100 | [diff] [blame] | 6 | Say y here to enable support for the axp221 / axp223 pmic found on most |
| 7 | sun6i (A31) / sun8i (A23) boards. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 8 | |
Hans de Goede | 1262a85 | 2014-12-13 14:12:06 +0100 | [diff] [blame] | 9 | config AXP221_DCDC1_VOLT |
| 10 | int "axp221 dcdc1 voltage" |
| 11 | depends on AXP221_POWER |
| 12 | default 3000 |
| 13 | ---help--- |
| 14 | Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to |
| 15 | disable dcdc1. This is typically used as generic 3.3V IO voltage for |
| 16 | things like GPIO-s, sdcard interfaces, etc. On most boards this is |
| 17 | undervolted to 3.0V to safe battery. |
| 18 | |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 19 | config AXP221_DLDO1_VOLT |
| 20 | int "axp221 dldo1 voltage" |
| 21 | depends on AXP221_POWER |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 22 | default 0 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 23 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 24 | 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] | 25 | disable dldo1. On sun6i (A31) boards with ethernet this is often used |
| 26 | to power the ethernet phy. On sun8i (A23) boards this is often used to |
| 27 | power the wifi. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 28 | |
| 29 | config AXP221_DLDO4_VOLT |
| 30 | int "axp221 dldo4 voltage" |
| 31 | depends on AXP221_POWER |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 32 | default 0 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 33 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 34 | 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] | 35 | disable dldo4. |
| 36 | |
| 37 | config AXP221_ALDO1_VOLT |
| 38 | int "axp221 aldo1 voltage" |
| 39 | depends on AXP221_POWER |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 40 | default 0 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 41 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 42 | 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] | 43 | disable aldo1. On sun6i (A31) boards which have a wifi module this is |
| 44 | often used to power the wifi module. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 45 | |
| 46 | config AXP221_ALDO2_VOLT |
| 47 | int "axp221 aldo2 voltage" |
| 48 | depends on AXP221_POWER |
Chen-Yu Tsai | 52755b1 | 2015-01-03 10:17:24 +0800 | [diff] [blame] | 49 | default 0 if MACH_SUN6I |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 50 | default 2500 if MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 51 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 52 | 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] | 53 | disable aldo2. On sun6i (A31) boards this is typically unused and |
| 54 | should be disabled, if it is used for LPDDR2 it should be set to 1.8V. |
| 55 | On sun8i (A23) this is typically connected to VDD-DLL and must be set |
| 56 | to 2.5V. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 57 | |
| 58 | config AXP221_ALDO3_VOLT |
| 59 | int "axp221 aldo3 voltage" |
| 60 | depends on AXP221_POWER |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 61 | default 3000 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 62 | ---help--- |
Hans de Goede | 50e0d5e | 2014-12-13 14:02:38 +0100 | [diff] [blame] | 63 | 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] | 64 | disable aldo3. This is typically connected to VCC-PLL and AVCC and |
| 65 | must be set to 3V. |
Siarhei Siamashka | 6906df1 | 2015-01-19 05:23:30 +0200 | [diff] [blame^] | 66 | |
| 67 | config AXP221_ELDO3_VOLT |
| 68 | int "axp221 eldo3 voltage" |
| 69 | depends on AXP221_POWER |
| 70 | default 0 |
| 71 | ---help--- |
| 72 | Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to |
| 73 | disable eldo3. On some A31(s) tablets it might be used to supply |
| 74 | 1.2V for the SSD2828 chip (converter of parallel LCD interface |
| 75 | into MIPI DSI). |