Simon Glass | 14c251f | 2021-08-08 12:20:28 -0600 | [diff] [blame] | 1 | menuconfig POWER |
| 2 | bool "Power" |
| 3 | default y |
| 4 | help |
| 5 | Enable support for power control in U-Boot. This includes support |
| 6 | for PMICs (Power-management Integrated Circuits) and some of the |
| 7 | features provided by PMICs. In particular, voltage regulators can |
| 8 | be used to enable/disable power and vary its voltage. That can be |
| 9 | useful in U-Boot to turn on boot peripherals and adjust CPU voltage |
| 10 | so that the clock speed can be increased. This enables the drivers |
| 11 | in drivers/power, drivers/power/pmic and drivers/power/regulator |
| 12 | as part of a build. |
| 13 | |
| 14 | if POWER |
Przemyslaw Marczak | 4d9057e | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 15 | |
Simon Glass | 9d8665b | 2021-08-08 12:20:27 -0600 | [diff] [blame] | 16 | config POWER_LEGACY |
| 17 | bool "Legacy power support" |
| 18 | help |
| 19 | Note: This is a legacy option. Use DM_PMIC instead. |
| 20 | |
| 21 | Enable support for power control in U-Boot. This includes support |
| 22 | for PMICs (Power-management Integrated Circuits) and some of the |
| 23 | features provided by PMICs. In particular, voltage regulators can |
| 24 | be used to enable/disable power and vary its voltage. That can be |
| 25 | useful in U-Boot to turn on boot peripherals and adjust CPU voltage |
| 26 | so that the clock speed can be increased. This enables the drivers |
| 27 | in drivers/power, drivers/power/pmic and drivers/power/regulator |
| 28 | as part of a build. |
| 29 | |
| 30 | config SPL_POWER_LEGACY |
| 31 | bool "Legacy power support in SPL" |
| 32 | default y if POWER_LEGACY |
| 33 | help |
| 34 | Note: This is a legacy option. Use SPL_DM_PMIC instead. |
| 35 | |
| 36 | Enable support for power control in SPL. This includes support |
| 37 | for PMICs (Power-management Integrated Circuits) and some of the |
| 38 | features provided by PMICs. In particular, voltage regulators can |
| 39 | be used to enable/disable power and vary its voltage. That can be |
| 40 | useful in SPL to turn on boot peripherals and adjust CPU voltage |
| 41 | so that the clock speed can be increased. This enables the drivers |
| 42 | in drivers/power, drivers/power/pmic and drivers/power/regulator |
| 43 | as part of a build. |
| 44 | |
Simon Glass | 6c6d88e | 2019-12-06 21:41:53 -0700 | [diff] [blame] | 45 | source "drivers/power/acpi_pmc/Kconfig" |
| 46 | |
Stephen Warren | 61f5ddc | 2016-07-13 13:45:31 -0600 | [diff] [blame] | 47 | source "drivers/power/domain/Kconfig" |
| 48 | |
Przemyslaw Marczak | 4d9057e | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 49 | source "drivers/power/pmic/Kconfig" |
| 50 | |
Przemyslaw Marczak | af41e8d | 2015-04-20 20:07:42 +0200 | [diff] [blame] | 51 | source "drivers/power/regulator/Kconfig" |
| 52 | |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 53 | choice |
| 54 | prompt "Select Sunxi PMIC Variant" |
| 55 | depends on ARCH_SUNXI |
| 56 | default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 57 | default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40 |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 58 | default AXP305_POWER if MACH_SUN50I_H616 |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 59 | default AXP818_POWER if MACH_SUN8I_A83T |
Icenowy Zheng | 8c51c65 | 2020-10-26 22:19:34 +0800 | [diff] [blame] | 60 | default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 61 | |
| 62 | config SUNXI_NO_PMIC |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 63 | bool "board without a pmic" |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 64 | ---help--- |
| 65 | Select this for boards which do not use a PMIC. |
| 66 | |
| 67 | config AXP152_POWER |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 68 | bool "axp152 pmic support" |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 69 | depends on MACH_SUN5I |
Jagan Teki | 735fb25 | 2018-02-14 22:28:30 +0530 | [diff] [blame] | 70 | select AXP_PMIC_BUS |
Hans de Goede | c286cdf | 2015-12-20 16:10:01 +0100 | [diff] [blame] | 71 | select CMD_POWEROFF |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 72 | ---help--- |
| 73 | Select this to enable support for the axp152 pmic found on most |
| 74 | A10s boards. |
| 75 | |
| 76 | config AXP209_POWER |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 77 | bool "axp209 pmic support" |
Icenowy Zheng | 8c51c65 | 2020-10-26 22:19:34 +0800 | [diff] [blame] | 78 | depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S |
Jagan Teki | 735fb25 | 2018-02-14 22:28:30 +0530 | [diff] [blame] | 79 | select AXP_PMIC_BUS |
Michael van Slingerland | 467e92b | 2015-12-13 13:17:31 +0100 | [diff] [blame] | 80 | select CMD_POWEROFF |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 81 | ---help--- |
| 82 | Select this to enable support for the axp209 pmic found on most |
| 83 | A10, A13 and A20 boards. |
| 84 | |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 85 | config AXP221_POWER |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 86 | bool "axp221 / axp223 pmic support" |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 87 | depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40 |
Jagan Teki | 735fb25 | 2018-02-14 22:28:30 +0530 | [diff] [blame] | 88 | select AXP_PMIC_BUS |
Hans de Goede | fe4b71b | 2015-12-20 16:14:31 +0100 | [diff] [blame] | 89 | select CMD_POWEROFF |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 90 | ---help--- |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 91 | Select this to enable support for the axp221/axp223 pmic found on most |
| 92 | A23 and A31 boards. |
| 93 | |
Jernej Skrabec | fbd37d8 | 2021-01-11 21:11:33 +0100 | [diff] [blame] | 94 | config AXP305_POWER |
| 95 | bool "axp305 pmic support" |
| 96 | depends on MACH_SUN50I_H616 |
| 97 | select AXP_PMIC_BUS |
| 98 | select CMD_POWEROFF |
| 99 | ---help--- |
| 100 | Select this to enable support for the axp305 pmic found on most |
| 101 | H616 boards. |
| 102 | |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 103 | config AXP809_POWER |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 104 | bool "axp809 pmic support" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 105 | depends on MACH_SUN9I |
Jagan Teki | 735fb25 | 2018-02-14 22:28:30 +0530 | [diff] [blame] | 106 | select AXP_PMIC_BUS |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 107 | select CMD_POWEROFF |
| 108 | ---help--- |
| 109 | Say y here to enable support for the axp809 pmic found on A80 boards. |
| 110 | |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 111 | config AXP818_POWER |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 112 | bool "axp818 pmic support" |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 113 | depends on MACH_SUN8I_A83T |
Jagan Teki | 735fb25 | 2018-02-14 22:28:30 +0530 | [diff] [blame] | 114 | select AXP_PMIC_BUS |
Chen-Yu Tsai | 5119926 | 2016-05-02 10:28:14 +0800 | [diff] [blame] | 115 | select CMD_POWEROFF |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 116 | ---help--- |
| 117 | Say y here to enable support for the axp818 pmic found on |
| 118 | A83T dev board. |
| 119 | |
Jelle van der Waa | 0d8382a | 2016-02-23 18:47:19 +0100 | [diff] [blame] | 120 | config SY8106A_POWER |
Masahiro Yamada | ab65006 | 2016-08-12 10:26:50 +0900 | [diff] [blame] | 121 | bool "SY8106A pmic support" |
Andre Przywara | 7b82a22 | 2017-02-16 01:20:27 +0000 | [diff] [blame] | 122 | depends on MACH_SUNXI_H3_H5 |
Jelle van der Waa | 0d8382a | 2016-02-23 18:47:19 +0100 | [diff] [blame] | 123 | ---help--- |
| 124 | Select this to enable support for the SY8106A pmic found on some |
| 125 | H3 boards. |
| 126 | |
Hans de Goede | 1df4481 | 2015-09-30 15:12:30 +0200 | [diff] [blame] | 127 | endchoice |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 128 | |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 129 | config AXP_DCDC1_VOLT |
| 130 | int "axp pmic dcdc1 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 131 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 132 | default 3300 if AXP818_POWER || MACH_SUN8I_R40 |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 133 | default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I |
Hans de Goede | 1262a85 | 2014-12-13 14:12:06 +0100 | [diff] [blame] | 134 | ---help--- |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 135 | Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to |
| 136 | disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for |
| 137 | generic 3.3V IO voltage for external devices like the lcd-panal and |
| 138 | sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 139 | save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T |
| 140 | dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally |
| 141 | powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG. |
Hans de Goede | 1262a85 | 2014-12-13 14:12:06 +0100 | [diff] [blame] | 142 | |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 143 | config AXP_DCDC2_VOLT |
| 144 | int "axp pmic dcdc2 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 145 | depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 146 | default 900 if AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 147 | default 1400 if AXP152_POWER || AXP209_POWER |
Hans de Goede | f339f09 | 2015-10-03 15:21:53 +0200 | [diff] [blame] | 148 | default 1200 if MACH_SUN6I |
| 149 | default 1100 if MACH_SUN8I |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 150 | default 0 if MACH_SUN9I |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 151 | ---help--- |
| 152 | Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to |
| 153 | disable dcdc2. |
| 154 | On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V. |
| 155 | On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V. |
Hans de Goede | f339f09 | 2015-10-03 15:21:53 +0200 | [diff] [blame] | 156 | On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 157 | On A80 boards dcdc2 powers the GPU and can be left off. |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 158 | On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V. |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 159 | On R40 boards dcdc2 is VDD-CPU and should be 1.1V |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 160 | |
| 161 | config AXP_DCDC3_VOLT |
| 162 | int "axp pmic dcdc3 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 163 | depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER |
| 164 | default 900 if AXP809_POWER || AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 165 | default 1500 if AXP152_POWER |
| 166 | default 1250 if AXP209_POWER |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 167 | default 1100 if MACH_SUN8I_R40 |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 168 | default 1200 if MACH_SUN6I || MACH_SUN8I |
| 169 | ---help--- |
| 170 | Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to |
| 171 | disable dcdc3. |
| 172 | On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and |
| 173 | should be 1.25V. |
| 174 | On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V. |
| 175 | On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 176 | On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V. |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 177 | On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V. |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 178 | On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V. |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 179 | |
| 180 | config AXP_DCDC4_VOLT |
| 181 | int "axp pmic dcdc4 voltage" |
Jernej Skrabec | fbd37d8 | 2021-01-11 21:11:33 +0100 | [diff] [blame] | 182 | depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP305_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 183 | default 1250 if AXP152_POWER |
| 184 | default 1200 if MACH_SUN6I |
| 185 | default 0 if MACH_SUN8I |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 186 | default 900 if MACH_SUN9I |
Jernej Skrabec | fbd37d8 | 2021-01-11 21:11:33 +0100 | [diff] [blame] | 187 | default 1500 if AXP305_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 188 | ---help--- |
| 189 | Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to |
| 190 | disable dcdc4. |
| 191 | On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V. |
| 192 | On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V. |
| 193 | On A23 / A33 boards dcdc4 is unused and should be disabled. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 194 | On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V. |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 195 | On A83T boards dcdc4 is used for VDD-GPU. |
Jernej Skrabec | fbd37d8 | 2021-01-11 21:11:33 +0100 | [diff] [blame] | 196 | On H616 boards dcdcd is used for VCC-DRAM. |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 197 | |
| 198 | config AXP_DCDC5_VOLT |
| 199 | int "axp pmic dcdc5 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 200 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
| 201 | default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I |
Hans de Goede | 7a0bbe6 | 2015-08-14 16:19:34 +0200 | [diff] [blame] | 202 | ---help--- |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 203 | Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to |
| 204 | disable dcdc5. |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 205 | On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 206 | should be 1.5V, 1.35V if DDR3L is used. |
Hans de Goede | 7a0bbe6 | 2015-08-14 16:19:34 +0200 | [diff] [blame] | 207 | |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 208 | config AXP_ALDO1_VOLT |
| 209 | int "axp pmic (a)ldo1 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 210 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 211 | default 0 if MACH_SUN6I || MACH_SUN8I_R40 |
Chen-Yu Tsai | f3c5045 | 2016-01-12 14:42:40 +0800 | [diff] [blame] | 212 | default 1800 if MACH_SUN8I_A83T |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 213 | default 3000 if MACH_SUN8I || MACH_SUN9I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 214 | ---help--- |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 215 | Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to |
| 216 | disable aldo1. |
| 217 | On A31 boards aldo1 is often used to power the wifi module. |
| 218 | On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 219 | On A80 boards aldo1 powers the USB hosts and should be 3.0V. |
Chen-Yu Tsai | f3c5045 | 2016-01-12 14:42:40 +0800 | [diff] [blame] | 220 | On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and |
| 221 | should be 1.8V. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 222 | |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 223 | config AXP_ALDO2_VOLT |
| 224 | int "axp pmic (a)ldo2 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 225 | depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 226 | default 3000 if AXP152_POWER || AXP209_POWER |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 227 | default 0 if MACH_SUN6I || MACH_SUN9I |
Chen-Yu Tsai | f3c5045 | 2016-01-12 14:42:40 +0800 | [diff] [blame] | 228 | default 1800 if MACH_SUN8I_A83T |
Hans de Goede | f704449 | 2014-12-13 12:40:45 +0100 | [diff] [blame] | 229 | default 2500 if MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 230 | ---help--- |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 231 | Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to |
| 232 | disable aldo2. |
| 233 | On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V. |
| 234 | On A31 boards aldo2 is typically unused and should be disabled. |
| 235 | On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V. |
| 236 | On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 237 | On A80 boards aldo2 powers PB pingroup and camera IO and can be left off. |
Chen-Yu Tsai | f3c5045 | 2016-01-12 14:42:40 +0800 | [diff] [blame] | 238 | On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC, |
| 239 | LPDDR2, and the codec. It should be 1.8V. |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 240 | |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 241 | config AXP_ALDO3_VOLT |
| 242 | int "axp pmic (a)ldo3 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 243 | depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER |
| 244 | default 0 if AXP209_POWER || MACH_SUN9I |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 245 | default 3000 if MACH_SUN6I || MACH_SUN8I |
Oliver Schinagl | 5c7f10f | 2013-07-26 12:56:58 +0200 | [diff] [blame] | 246 | ---help--- |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 247 | Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to |
| 248 | disable aldo3. |
| 249 | On A10(s) / A13 / A20 boards aldo3 should be 2.8V. |
Chen-Yu Tsai | 409677e | 2016-11-30 15:30:30 +0800 | [diff] [blame] | 250 | On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should |
| 251 | be 3.0V. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 252 | On A80 boards aldo3 is normally not used. |
Chen-Yu Tsai | f3c5045 | 2016-01-12 14:42:40 +0800 | [diff] [blame] | 253 | On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be |
| 254 | 3.0V. |
Siarhei Siamashka | 6906df1 | 2015-01-19 05:23:30 +0200 | [diff] [blame] | 255 | |
Olliver Schinagl | 61436d5 | 2018-11-21 20:05:30 +0200 | [diff] [blame] | 256 | choice |
| 257 | prompt "axp pmic (a)ldo3 voltage rate control" |
| 258 | depends on AXP209_POWER |
| 259 | default AXP_ALDO3_VOLT_SLOPE_NONE |
| 260 | ---help--- |
| 261 | The AXP can slowly ramp up voltage to reduce the inrush current when |
| 262 | changing voltages. |
| 263 | Note, this does not apply when enabling/disabling LDO3. See |
| 264 | "axp pmic (a)ldo3 inrush quirk" below to enable a slew rate to limit |
| 265 | inrush current on broken board designs. |
| 266 | |
| 267 | config AXP_ALDO3_VOLT_SLOPE_NONE |
| 268 | bool "No voltage slope" |
| 269 | ---help--- |
| 270 | Tries to reach the next voltage setting near instantaneously. Measurements |
| 271 | indicate that this is about 0.0167 V/uS. |
| 272 | |
| 273 | config AXP_ALDO3_VOLT_SLOPE_16 |
| 274 | bool "1.6 mV per uS" |
| 275 | ---help--- |
| 276 | Increases the voltage by 1.6 mV per uS until the final voltage has |
| 277 | been reached. Note that the scaling is in 25 mV steps and thus |
| 278 | the slew rate in reality is about 25 mV/31.250 uS. |
| 279 | |
| 280 | config AXP_ALDO3_VOLT_SLOPE_08 |
| 281 | bool "0.8 mV per uS" |
| 282 | ---help--- |
| 283 | Increases the voltage by 0.8 mV per uS until the final voltage has |
| 284 | been reached. Note that the scaling is in 25 mV steps however and thus |
| 285 | the slew rate in reality is about 25 mV/15.625 uS. |
| 286 | This is the slowest supported rate. |
| 287 | |
| 288 | endchoice |
| 289 | |
Olliver Schinagl | ef52605 | 2018-11-21 20:05:31 +0200 | [diff] [blame] | 290 | config AXP_ALDO3_INRUSH_QUIRK |
| 291 | bool "axp pmic (a)ldo3 inrush quirk" |
| 292 | depends on AXP209_POWER |
Olliver Schinagl | ef52605 | 2018-11-21 20:05:31 +0200 | [diff] [blame] | 293 | ---help--- |
| 294 | The reference design denotes a value of 4.7 uF for the output capacitor |
| 295 | of LDO3. Some boards have too high capacitance causing an inrush current |
| 296 | and resulting an AXP209 shutdown. |
| 297 | |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 298 | config AXP_ALDO4_VOLT |
| 299 | int "axp pmic (a)ldo4 voltage" |
| 300 | depends on AXP209_POWER |
Hans de Goede | 02cc27c | 2015-10-03 15:29:24 +0200 | [diff] [blame] | 301 | default 0 if AXP209_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 302 | ---help--- |
| 303 | Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to |
| 304 | disable aldo4. |
| 305 | On A10(s) / A13 / A20 boards aldo4 should be 2.8V. |
| 306 | |
| 307 | config AXP_DLDO1_VOLT |
| 308 | int "axp pmic dldo1 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 309 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
Siarhei Siamashka | 6906df1 | 2015-01-19 05:23:30 +0200 | [diff] [blame] | 310 | default 0 |
| 311 | ---help--- |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 312 | Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to |
| 313 | disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 314 | to power the ethernet phy. On A23, A33 and A80 boards this is often |
| 315 | used to power the wifi. |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 316 | |
| 317 | config AXP_DLDO2_VOLT |
| 318 | int "axp pmic dldo2 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 319 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
| 320 | default 3000 if MACH_SUN9I |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 321 | default 0 |
| 322 | ---help--- |
| 323 | Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to |
| 324 | disable dldo2. |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 325 | On A80 boards dldo2 normally powers the PL pins and should be 3.0V. |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 326 | |
| 327 | config AXP_DLDO3_VOLT |
| 328 | int "axp pmic dldo3 voltage" |
Chen-Yu Tsai | 0509efb | 2016-01-12 14:42:38 +0800 | [diff] [blame] | 329 | depends on AXP221_POWER || AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 330 | default 0 |
| 331 | ---help--- |
| 332 | Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to |
| 333 | disable dldo3. |
| 334 | |
| 335 | config AXP_DLDO4_VOLT |
| 336 | int "axp pmic dldo4 voltage" |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 337 | depends on AXP221_POWER || AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 338 | default 0 |
| 339 | ---help--- |
| 340 | Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to |
| 341 | disable dldo4. |
| 342 | |
| 343 | config AXP_ELDO1_VOLT |
| 344 | int "axp pmic eldo1 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 345 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 346 | default 0 |
| 347 | ---help--- |
| 348 | Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to |
| 349 | disable eldo1. |
| 350 | |
| 351 | config AXP_ELDO2_VOLT |
| 352 | int "axp pmic eldo2 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 353 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 354 | default 0 |
| 355 | ---help--- |
| 356 | Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to |
| 357 | disable eldo2. |
| 358 | |
| 359 | config AXP_ELDO3_VOLT |
| 360 | int "axp pmic eldo3 voltage" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 361 | depends on AXP221_POWER || AXP809_POWER || AXP818_POWER |
| 362 | default 3000 if MACH_SUN9I |
Hans de Goede | 4011752 | 2015-09-30 15:22:42 +0200 | [diff] [blame] | 363 | default 0 |
| 364 | ---help--- |
| 365 | Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to |
Siarhei Siamashka | 6906df1 | 2015-01-19 05:23:30 +0200 | [diff] [blame] | 366 | disable eldo3. On some A31(s) tablets it might be used to supply |
| 367 | 1.2V for the SSD2828 chip (converter of parallel LCD interface |
| 368 | into MIPI DSI). |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 369 | On A80 boards it powers the PM pingroup and should be 3.0V. |
Przemyslaw Marczak | 4d9057e | 2015-04-20 20:07:41 +0200 | [diff] [blame] | 370 | |
Chen-Yu Tsai | 38491d9 | 2016-03-30 00:26:48 +0800 | [diff] [blame] | 371 | config AXP_FLDO1_VOLT |
| 372 | int "axp pmic fldo1 voltage" |
| 373 | depends on AXP818_POWER |
| 374 | default 0 if MACH_SUN8I_A83T |
| 375 | ---help--- |
| 376 | Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to |
| 377 | disable fldo1. |
| 378 | On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is |
| 379 | used. |
| 380 | |
| 381 | config AXP_FLDO2_VOLT |
Chen-Yu Tsai | a696253 | 2016-05-02 10:28:11 +0800 | [diff] [blame] | 382 | int "axp pmic fldo2 voltage" |
Chen-Yu Tsai | 38491d9 | 2016-03-30 00:26:48 +0800 | [diff] [blame] | 383 | depends on AXP818_POWER |
| 384 | default 900 if MACH_SUN8I_A83T |
| 385 | ---help--- |
| 386 | Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to |
| 387 | disable fldo2. |
| 388 | On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V. |
| 389 | |
| 390 | config AXP_FLDO3_VOLT |
| 391 | int "axp pmic fldo3 voltage" |
| 392 | depends on AXP818_POWER |
| 393 | default 0 |
| 394 | ---help--- |
| 395 | Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to |
| 396 | disable fldo3. |
| 397 | |
Chen-Yu Tsai | 15278cc | 2016-05-02 10:28:12 +0800 | [diff] [blame] | 398 | config AXP_SW_ON |
| 399 | bool "axp pmic sw on" |
Chen-Yu Tsai | 795857d | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 400 | depends on AXP809_POWER || AXP818_POWER |
Chen-Yu Tsai | 15278cc | 2016-05-02 10:28:12 +0800 | [diff] [blame] | 401 | ---help--- |
| 402 | Enable to turn on axp pmic sw. |
| 403 | |
Jelle van der Waa | 0d8382a | 2016-02-23 18:47:19 +0100 | [diff] [blame] | 404 | config SY8106A_VOUT1_VOLT |
| 405 | int "SY8106A pmic VOUT1 voltage" |
| 406 | depends on SY8106A_POWER |
| 407 | default 1200 |
| 408 | ---help--- |
| 409 | Set the voltage (mV) to program the SY8106A pmic VOUT1. This |
| 410 | is typically used to power the VDD-CPU and should be 1200mV. |
| 411 | Values can range from 680mV till 1950mV. |
| 412 | |
Adam Ford | 7815c70 | 2017-04-26 13:41:31 -0500 | [diff] [blame] | 413 | config TWL4030_POWER |
| 414 | depends on OMAP34XX |
| 415 | bool "Enable driver for TI TWL4030 power management chip" |
Adam Ford | df7fafd | 2017-05-13 07:02:24 -0500 | [diff] [blame] | 416 | imply CMD_POWEROFF |
Adam Ford | 7815c70 | 2017-04-26 13:41:31 -0500 | [diff] [blame] | 417 | ---help--- |
| 418 | The TWL4030 in a combination audio CODEC/power management with |
| 419 | GPIO and it is commonly used with the OMAP3 family of processors |
| 420 | |
Frank Wunderlich | 36b8b5d | 2019-11-22 15:32:24 +0100 | [diff] [blame] | 421 | config POWER_MT6323 |
| 422 | bool "Poweroff driver for mediatek mt6323" |
| 423 | select CMD_POWEROFF |
| 424 | help |
| 425 | This adds poweroff driver for mt6323 |
| 426 | this pmic is used on mt7623 / Bananapi R2 |
| 427 | |
Simon Glass | 9d8665b | 2021-08-08 12:20:27 -0600 | [diff] [blame] | 428 | config POWER_I2C |
| 429 | bool "I2C-based power control for legacy power" |
| 430 | depends on POWER_LEGACY |
| 431 | help |
| 432 | Enable this to use the I2C driver designed for the legacy PMIC |
| 433 | interface. |
| 434 | |
| 435 | Not to be used for new designs and existing ones should be moved to |
| 436 | the new PMIC interface based on driver model. |
| 437 | |
| 438 | config SPL_POWER_I2C |
| 439 | bool "I2C-based power control for legacy power" |
| 440 | depends on SPL_POWER_LEGACY |
| 441 | default y if POWER_I2C |
| 442 | help |
| 443 | Enable this to use the I2C driver designed for the legacy PMIC |
| 444 | interface. |
| 445 | |
| 446 | Not to be used for new designs and existing ones should be moved to |
| 447 | the new PMIC interface based on driver model. |
| 448 | |
Simon Glass | 14c251f | 2021-08-08 12:20:28 -0600 | [diff] [blame] | 449 | endif |