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 AXP_DCDC1_VOLT 79 int "axp pmic dcdc1 voltage" 80 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 81 default 3300 if AXP818_POWER || MACH_SUN8I_R40 82 default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I 83 ---help--- 84 Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to 85 disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for 86 generic 3.3V IO voltage for external devices like the lcd-panal and 87 sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to 88 save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T 89 dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally 90 powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG. 91 92config AXP_DCDC2_VOLT 93 int "axp pmic dcdc2 voltage" 94 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 95 default 900 if AXP818_POWER 96 default 1400 if AXP152_POWER || AXP209_POWER 97 default 1200 if MACH_SUN6I 98 default 1100 if MACH_SUN8I 99 default 0 if MACH_SUN9I 100 ---help--- 101 Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to 102 disable dcdc2. 103 On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V. 104 On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V. 105 On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V. 106 On A80 boards dcdc2 powers the GPU and can be left off. 107 On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V. 108 On R40 boards dcdc2 is VDD-CPU and should be 1.1V 109 110config AXP_DCDC3_VOLT 111 int "axp pmic dcdc3 voltage" 112 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 113 default 900 if AXP809_POWER || AXP818_POWER 114 default 1500 if AXP152_POWER 115 default 1250 if AXP209_POWER 116 default 1100 if MACH_SUN8I_R40 117 default 1200 if MACH_SUN6I || MACH_SUN8I 118 ---help--- 119 Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to 120 disable dcdc3. 121 On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and 122 should be 1.25V. 123 On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V. 124 On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V. 125 On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V. 126 On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V. 127 On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V. 128 129config AXP_DCDC4_VOLT 130 int "axp pmic dcdc4 voltage" 131 depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 132 default 1250 if AXP152_POWER 133 default 1200 if MACH_SUN6I 134 default 0 if MACH_SUN8I 135 default 900 if MACH_SUN9I 136 ---help--- 137 Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to 138 disable dcdc4. 139 On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V. 140 On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V. 141 On A23 / A33 boards dcdc4 is unused and should be disabled. 142 On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V. 143 On A83T boards dcdc4 is used for VDD-GPU. 144 145config AXP_DCDC5_VOLT 146 int "axp pmic dcdc5 voltage" 147 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 148 default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I 149 ---help--- 150 Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to 151 disable dcdc5. 152 On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and 153 should be 1.5V, 1.35V if DDR3L is used. 154 155config AXP_ALDO1_VOLT 156 int "axp pmic (a)ldo1 voltage" 157 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 158 default 0 if MACH_SUN6I || MACH_SUN8I_R40 159 default 1800 if MACH_SUN8I_A83T 160 default 3000 if MACH_SUN8I || MACH_SUN9I 161 ---help--- 162 Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to 163 disable aldo1. 164 On A31 boards aldo1 is often used to power the wifi module. 165 On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V. 166 On A80 boards aldo1 powers the USB hosts and should be 3.0V. 167 On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and 168 should be 1.8V. 169 170config AXP_ALDO2_VOLT 171 int "axp pmic (a)ldo2 voltage" 172 depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 173 default 3000 if AXP152_POWER || AXP209_POWER 174 default 0 if MACH_SUN6I || MACH_SUN9I 175 default 1800 if MACH_SUN8I_A83T 176 default 2500 if MACH_SUN8I 177 ---help--- 178 Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to 179 disable aldo2. 180 On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V. 181 On A31 boards aldo2 is typically unused and should be disabled. 182 On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V. 183 On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V. 184 On A80 boards aldo2 powers PB pingroup and camera IO and can be left off. 185 On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC, 186 LPDDR2, and the codec. It should be 1.8V. 187 188config AXP_ALDO3_VOLT 189 int "axp pmic (a)ldo3 voltage" 190 depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER 191 default 0 if AXP209_POWER || MACH_SUN9I 192 default 3000 if MACH_SUN6I || MACH_SUN8I 193 ---help--- 194 Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to 195 disable aldo3. 196 On A10(s) / A13 / A20 boards aldo3 should be 2.8V. 197 On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should 198 be 3.0V. 199 On A80 boards aldo3 is normally not used. 200 On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be 201 3.0V. 202 203config AXP_ALDO4_VOLT 204 int "axp pmic (a)ldo4 voltage" 205 depends on AXP209_POWER 206 default 0 if AXP209_POWER 207 ---help--- 208 Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to 209 disable aldo4. 210 On A10(s) / A13 / A20 boards aldo4 should be 2.8V. 211 212config AXP_DLDO1_VOLT 213 int "axp pmic dldo1 voltage" 214 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 215 default 0 216 ---help--- 217 Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to 218 disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used 219 to power the ethernet phy. On A23, A33 and A80 boards this is often 220 used to power the wifi. 221 222config AXP_DLDO2_VOLT 223 int "axp pmic dldo2 voltage" 224 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 225 default 3000 if MACH_SUN9I 226 default 0 227 ---help--- 228 Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to 229 disable dldo2. 230 On A80 boards dldo2 normally powers the PL pins and should be 3.0V. 231 232config AXP_DLDO3_VOLT 233 int "axp pmic dldo3 voltage" 234 depends on AXP221_POWER || AXP818_POWER 235 default 0 236 ---help--- 237 Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to 238 disable dldo3. 239 240config AXP_DLDO4_VOLT 241 int "axp pmic dldo4 voltage" 242 depends on AXP221_POWER || AXP818_POWER 243 default 0 244 ---help--- 245 Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to 246 disable dldo4. 247 248config AXP_ELDO1_VOLT 249 int "axp pmic eldo1 voltage" 250 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 251 default 0 252 ---help--- 253 Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to 254 disable eldo1. 255 256config AXP_ELDO2_VOLT 257 int "axp pmic eldo2 voltage" 258 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 259 default 0 260 ---help--- 261 Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to 262 disable eldo2. 263 264config AXP_ELDO3_VOLT 265 int "axp pmic eldo3 voltage" 266 depends on AXP221_POWER || AXP809_POWER || AXP818_POWER 267 default 3000 if MACH_SUN9I 268 default 0 269 ---help--- 270 Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to 271 disable eldo3. On some A31(s) tablets it might be used to supply 272 1.2V for the SSD2828 chip (converter of parallel LCD interface 273 into MIPI DSI). 274 On A80 boards it powers the PM pingroup and should be 3.0V. 275 276config AXP_FLDO1_VOLT 277 int "axp pmic fldo1 voltage" 278 depends on AXP818_POWER 279 default 0 if MACH_SUN8I_A83T 280 ---help--- 281 Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to 282 disable fldo1. 283 On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is 284 used. 285 286config AXP_FLDO2_VOLT 287 int "axp pmic fldo2 voltage" 288 depends on AXP818_POWER 289 default 900 if MACH_SUN8I_A83T 290 ---help--- 291 Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to 292 disable fldo2. 293 On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V. 294 295config AXP_FLDO3_VOLT 296 int "axp pmic fldo3 voltage" 297 depends on AXP818_POWER 298 default 0 299 ---help--- 300 Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to 301 disable fldo3. 302 303config AXP_SW_ON 304 bool "axp pmic sw on" 305 depends on AXP809_POWER || AXP818_POWER 306 default n 307 ---help--- 308 Enable to turn on axp pmic sw. 309 310config SY8106A_VOUT1_VOLT 311 int "SY8106A pmic VOUT1 voltage" 312 depends on SY8106A_POWER 313 default 1200 314 ---help--- 315 Set the voltage (mV) to program the SY8106A pmic VOUT1. This 316 is typically used to power the VDD-CPU and should be 1200mV. 317 Values can range from 680mV till 1950mV. 318 319config TWL4030_POWER 320 depends on OMAP34XX 321 bool "Enable driver for TI TWL4030 power management chip" 322 imply CMD_POWEROFF 323 ---help--- 324 The TWL4030 in a combination audio CODEC/power management with 325 GPIO and it is commonly used with the OMAP3 family of processors 326 327endmenu 328