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 | |
| 9 | config AXP221_DLDO1_VOLT |
| 10 | int "axp221 dldo1 voltage" |
| 11 | depends on AXP221_POWER |
| 12 | default -1 |
| 13 | ---help--- |
| 14 | Set the voltage (mV) to program the axp221 dldo1 at, set to -1 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame^] | 15 | disable dldo1. On sun6i (A31) boards with ethernet this is often used |
| 16 | to power the ethernet phy. On sun8i (A23) boards this is often used to |
| 17 | power the wifi. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 18 | |
| 19 | config AXP221_DLDO4_VOLT |
| 20 | int "axp221 dldo4 voltage" |
| 21 | depends on AXP221_POWER |
| 22 | default -1 |
| 23 | ---help--- |
| 24 | Set the voltage (mV) to program the axp221 dldo4 at, set to -1 to |
| 25 | disable dldo4. |
| 26 | |
| 27 | config AXP221_ALDO1_VOLT |
| 28 | int "axp221 aldo1 voltage" |
| 29 | depends on AXP221_POWER |
| 30 | default -1 |
| 31 | ---help--- |
| 32 | Set the voltage (mV) to program the axp221 aldo1 at, set to -1 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame^] | 33 | disable aldo1. On sun6i (A31) boards which have a wifi module this is |
| 34 | often used to power the wifi module. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 35 | |
| 36 | config AXP221_ALDO2_VOLT |
| 37 | int "axp221 aldo2 voltage" |
| 38 | depends on AXP221_POWER |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame^] | 39 | default 1800 if MACH_SUN6I |
| 40 | default 2500 if MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 41 | ---help--- |
| 42 | Set the voltage (mV) to program the axp221 aldo2 at, set to -1 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame^] | 43 | disable aldo2. On sun6i (A31) boards this is typically connected to |
| 44 | VCC-PM, which powers the port M gpios, and should be set to 1.8V. |
| 45 | On sun8i (A23) this is typically connected to VDD-DLL and must be |
| 46 | set to 2.5V. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 47 | |
| 48 | config AXP221_ALDO3_VOLT |
| 49 | int "axp221 aldo3 voltage" |
| 50 | depends on AXP221_POWER |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame^] | 51 | default 3000 |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 52 | ---help--- |
| 53 | Set the voltage (mV) to program the axp221 aldo3 at, set to -1 to |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame^] | 54 | disable aldo3. This is typically connected to VCC-PLL and AVCC and |
| 55 | must be set to 3V. |