1menu "Power" 2 3source "drivers/power/domain/Kconfig" 4 5source "drivers/power/fuel_gauge/Kconfig" 6 7source "drivers/power/io-domain/Kconfig" 8 9source "drivers/power/pmic/Kconfig" 10 11source "drivers/power/power_delivery/Kconfig" 12 13source "drivers/power/regulator/Kconfig" 14 15source "drivers/power/dvfs/Kconfig" 16 17source "drivers/power/charge/Kconfig" 18 19config DM_CHARGE_DISPLAY 20 bool "Enable driver model for charge display support" 21 depends on DM 22 help 23 This adds a simple uclass for charge display. 24 25choice 26 prompt "Select Sunxi PMIC Variant" 27 depends on ARCH_SUNXI 28 default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 29 default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40 30 default AXP818_POWER if MACH_SUN8I_A83T 31 default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I 32 33config SUNXI_NO_PMIC 34 bool "board without a pmic" 35 ---help--- 36 Select this for boards which do not use a PMIC. 37 38config AXP152_POWER 39 bool "axp152 pmic support" 40 depends on MACH_SUN5I 41 select CMD_POWEROFF 42 ---help--- 43 Select this to enable support for the axp152 pmic found on most 44 A10s boards. 45 46config AXP209_POWER 47 bool "axp209 pmic support" 48 depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 49 select CMD_POWEROFF 50 ---help--- 51 Select this to enable support for the axp209 pmic found on most 52 A10, A13 and A20 boards. 53 54config AXP221_POWER 55 bool "axp221 / axp223 pmic support" 56 depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40 57 select CMD_POWEROFF 58 ---help--- 59 Select this to enable support for the axp221/axp223 pmic found on most 60 A23 and A31 boards. 61 62config AXP809_POWER 63 bool "axp809 pmic support" 64 depends on MACH_SUN9I 65 select CMD_POWEROFF 66 ---help--- 67 Say y here to enable support for the axp809 pmic found on A80 boards. 68 69config AXP818_POWER 70 bool "axp818 pmic support" 71 depends on MACH_SUN8I_A83T 72 select CMD_POWEROFF 73 ---help--- 74 Say y here to enable support for the axp818 pmic found on 75 A83T dev board. 76 77config SY8106A_POWER 78 bool "SY8106A pmic support" 79 depends on MACH_SUNXI_H3_H5 80 ---help--- 81 Select this to enable support for the SY8106A pmic found on some 82 H3 boards. 83 84endchoice 85 86config CHARGE_ANIMATION 87 bool "Enable charge animation" 88 depends on DM_CHARGE_DISPLAY && DM_FUEL_GAUGE 89 select ARM_CPU_SUSPEND 90 help 91 This adds a simple function for charge animation display. 92 93config ROCKCHIP_PM 94 bool "Enable Rockchip power manager for charge animation" 95 depends on CHARGE_ANIMATION 96 default y 97 help 98 This adds power manage control of devices for low power 99 during system suspend in charge animation. 100 101config AXP_DCDC1_VOLT 102 int "axp pmic dcdc1 voltage" 103 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 104 default 3300 if AXP818_POWER || MACH_SUN8I_R40 105 default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I 106 ---help--- 107 Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to 108 disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for 109 generic 3.3V IO voltage for external devices like the lcd-panal and 110 sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to 111 save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T 112 dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally 113 powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG. 114 115config AXP_DCDC2_VOLT 116 int "axp pmic dcdc2 voltage" 117 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 118 default 900 if AXP818_POWER 119 default 1400 if AXP152_POWER || AXP209_POWER 120 default 1200 if MACH_SUN6I 121 default 1100 if MACH_SUN8I 122 default 0 if MACH_SUN9I 123 ---help--- 124 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to 125 disable dcdc2. 126 On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V. 127 On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V. 128 On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V. 129 On A80 boards dcdc2 powers the GPU and can be left off. 130 On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V. 131 On R40 boards dcdc2 is VDD-CPU and should be 1.1V 132 133config AXP_DCDC3_VOLT 134 int "axp pmic dcdc3 voltage" 135 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 136 default 900 if AXP809_POWER || AXP818_POWER 137 default 1500 if AXP152_POWER 138 default 1250 if AXP209_POWER 139 default 1100 if MACH_SUN8I_R40 140 default 1200 if MACH_SUN6I || MACH_SUN8I 141 ---help--- 142 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to 143 disable dcdc3. 144 On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and 145 should be 1.25V. 146 On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V. 147 On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V. 148 On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V. 149 On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V. 150 On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V. 151 152config AXP_DCDC4_VOLT 153 int "axp pmic dcdc4 voltage" 154 depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 155 default 1250 if AXP152_POWER 156 default 1200 if MACH_SUN6I 157 default 0 if MACH_SUN8I 158 default 900 if MACH_SUN9I 159 ---help--- 160 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to 161 disable dcdc4. 162 On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V. 163 On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V. 164 On A23 / A33 boards dcdc4 is unused and should be disabled. 165 On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V. 166 On A83T boards dcdc4 is used for VDD-GPU. 167 168config AXP_DCDC5_VOLT 169 int "axp pmic dcdc5 voltage" 170 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 171 default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I 172 ---help--- 173 Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to 174 disable dcdc5. 175 On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and 176 should be 1.5V, 1.35V if DDR3L is used. 177 178config AXP_ALDO1_VOLT 179 int "axp pmic (a)ldo1 voltage" 180 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 181 default 0 if MACH_SUN6I || MACH_SUN8I_R40 182 default 1800 if MACH_SUN8I_A83T 183 default 3000 if MACH_SUN8I || MACH_SUN9I 184 ---help--- 185 Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to 186 disable aldo1. 187 On A31 boards aldo1 is often used to power the wifi module. 188 On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V. 189 On A80 boards aldo1 powers the USB hosts and should be 3.0V. 190 On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and 191 should be 1.8V. 192 193config AXP_ALDO2_VOLT 194 int "axp pmic (a)ldo2 voltage" 195 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 196 default 3000 if AXP152_POWER || AXP209_POWER 197 default 0 if MACH_SUN6I || MACH_SUN9I 198 default 1800 if MACH_SUN8I_A83T 199 default 2500 if MACH_SUN8I 200 ---help--- 201 Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to 202 disable aldo2. 203 On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V. 204 On A31 boards aldo2 is typically unused and should be disabled. 205 On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V. 206 On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V. 207 On A80 boards aldo2 powers PB pingroup and camera IO and can be left off. 208 On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC, 209 LPDDR2, and the codec. It should be 1.8V. 210 211config AXP_ALDO3_VOLT 212 int "axp pmic (a)ldo3 voltage" 213 depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 214 default 0 if AXP209_POWER || MACH_SUN9I 215 default 3000 if MACH_SUN6I || MACH_SUN8I 216 ---help--- 217 Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to 218 disable aldo3. 219 On A10(s) / A13 / A20 boards aldo3 should be 2.8V. 220 On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should 221 be 3.0V. 222 On A80 boards aldo3 is normally not used. 223 On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be 224 3.0V. 225 226config AXP_ALDO4_VOLT 227 int "axp pmic (a)ldo4 voltage" 228 depends on AXP209_POWER 229 default 0 if AXP209_POWER 230 ---help--- 231 Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to 232 disable aldo4. 233 On A10(s) / A13 / A20 boards aldo4 should be 2.8V. 234 235config AXP_DLDO1_VOLT 236 int "axp pmic dldo1 voltage" 237 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 238 default 0 239 ---help--- 240 Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to 241 disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used 242 to power the ethernet phy. On A23, A33 and A80 boards this is often 243 used to power the wifi. 244 245config AXP_DLDO2_VOLT 246 int "axp pmic dldo2 voltage" 247 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 248 default 3000 if MACH_SUN9I 249 default 0 250 ---help--- 251 Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to 252 disable dldo2. 253 On A80 boards dldo2 normally powers the PL pins and should be 3.0V. 254 255config AXP_DLDO3_VOLT 256 int "axp pmic dldo3 voltage" 257 depends on AXP221_POWER || AXP818_POWER 258 default 0 259 ---help--- 260 Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to 261 disable dldo3. 262 263config AXP_DLDO4_VOLT 264 int "axp pmic dldo4 voltage" 265 depends on AXP221_POWER || AXP818_POWER 266 default 0 267 ---help--- 268 Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to 269 disable dldo4. 270 271config AXP_ELDO1_VOLT 272 int "axp pmic eldo1 voltage" 273 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 274 default 0 275 ---help--- 276 Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to 277 disable eldo1. 278 279config AXP_ELDO2_VOLT 280 int "axp pmic eldo2 voltage" 281 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 282 default 0 283 ---help--- 284 Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to 285 disable eldo2. 286 287config AXP_ELDO3_VOLT 288 int "axp pmic eldo3 voltage" 289 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 290 default 3000 if MACH_SUN9I 291 default 0 292 ---help--- 293 Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to 294 disable eldo3. On some A31(s) tablets it might be used to supply 295 1.2V for the SSD2828 chip (converter of parallel LCD interface 296 into MIPI DSI). 297 On A80 boards it powers the PM pingroup and should be 3.0V. 298 299config AXP_FLDO1_VOLT 300 int "axp pmic fldo1 voltage" 301 depends on AXP818_POWER 302 default 0 if MACH_SUN8I_A83T 303 ---help--- 304 Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to 305 disable fldo1. 306 On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is 307 used. 308 309config AXP_FLDO2_VOLT 310 int "axp pmic fldo2 voltage" 311 depends on AXP818_POWER 312 default 900 if MACH_SUN8I_A83T 313 ---help--- 314 Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to 315 disable fldo2. 316 On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V. 317 318config AXP_FLDO3_VOLT 319 int "axp pmic fldo3 voltage" 320 depends on AXP818_POWER 321 default 0 322 ---help--- 323 Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to 324 disable fldo3. 325 326config AXP_SW_ON 327 bool "axp pmic sw on" 328 depends on AXP809_POWER || AXP818_POWER 329 default n 330 ---help--- 331 Enable to turn on axp pmic sw. 332 333config SY8106A_VOUT1_VOLT 334 int "SY8106A pmic VOUT1 voltage" 335 depends on SY8106A_POWER 336 default 1200 337 ---help--- 338 Set the voltage (mV) to program the SY8106A pmic VOUT1. This 339 is typically used to power the VDD-CPU and should be 1200mV. 340 Values can range from 680mV till 1950mV. 341 342config TWL4030_POWER 343 depends on OMAP34XX 344 bool "Enable driver for TI TWL4030 power management chip" 345 imply CMD_POWEROFF 346 ---help--- 347 The TWL4030 in a combination audio CODEC/power management with 348 GPIO and it is commonly used with the OMAP3 family of processors 349 350endmenu 351