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