14d9057e8SPrzemyslaw Marczakmenu "Power" 24d9057e8SPrzemyslaw Marczak 34d9057e8SPrzemyslaw Marczaksource "drivers/power/pmic/Kconfig" 44d9057e8SPrzemyslaw Marczak 5af41e8dbSPrzemyslaw Marczaksource "drivers/power/regulator/Kconfig" 6af41e8dbSPrzemyslaw Marczak 71df44814SHans de Goedechoice 81df44814SHans de Goede prompt "Select Sunxi PMIC Variant" 91df44814SHans de Goede depends on ARCH_SUNXI 101df44814SHans de Goede default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 111df44814SHans de Goede default AXP221_POWER if MACH_SUN6I || MACH_SUN8I 121df44814SHans de Goede 131df44814SHans de Goedeconfig SUNXI_NO_PMIC 141df44814SHans de Goede boolean "board without a pmic" 151df44814SHans de Goede ---help--- 161df44814SHans de Goede Select this for boards which do not use a PMIC. 171df44814SHans de Goede 181df44814SHans de Goedeconfig AXP152_POWER 191df44814SHans de Goede boolean "axp152 pmic support" 201df44814SHans de Goede depends on MACH_SUN5I 211df44814SHans de Goede ---help--- 221df44814SHans de Goede Select this to enable support for the axp152 pmic found on most 231df44814SHans de Goede A10s boards. 241df44814SHans de Goede 251df44814SHans de Goedeconfig AXP209_POWER 261df44814SHans de Goede boolean "axp209 pmic support" 271df44814SHans de Goede depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 281df44814SHans de Goede ---help--- 291df44814SHans de Goede Select this to enable support for the axp209 pmic found on most 301df44814SHans de Goede A10, A13 and A20 boards. 311df44814SHans de Goede 325c7f10fdSOliver Schinaglconfig AXP221_POWER 33bdcdf846SHans de Goede boolean "axp221 / axp223 pmic support" 34bdcdf846SHans de Goede depends on MACH_SUN6I || MACH_SUN8I 355c7f10fdSOliver Schinagl ---help--- 361df44814SHans de Goede Select this to enable support for the axp221/axp223 pmic found on most 371df44814SHans de Goede A23 and A31 boards. 381df44814SHans de Goede 391df44814SHans de Goedeendchoice 405c7f10fdSOliver Schinagl 4140117522SHans de Goedeconfig AXP_DCDC1_VOLT 4240117522SHans de Goede int "axp pmic dcdc1 voltage" 431262a85fSHans de Goede depends on AXP221_POWER 4440117522SHans de Goede default 3000 if MACH_SUN6I || MACH_SUN8I 451262a85fSHans de Goede ---help--- 4640117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to 4740117522SHans de Goede disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for 4840117522SHans de Goede generic 3.3V IO voltage for external devices like the lcd-panal and 4940117522SHans de Goede sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to 5040117522SHans de Goede safe battery. On A31 devices dcdc1 is also used for VCC-IO. 511262a85fSHans de Goede 5240117522SHans de Goedeconfig AXP_DCDC2_VOLT 5340117522SHans de Goede int "axp pmic dcdc2 voltage" 5440117522SHans de Goede depends on AXP152_POWER || AXP209_POWER || AXP221_POWER 5540117522SHans de Goede default 1400 if AXP152_POWER || AXP209_POWER 56*f339f09cSHans de Goede default 1200 if MACH_SUN6I 57*f339f09cSHans de Goede default 1100 if MACH_SUN8I 5840117522SHans de Goede ---help--- 5940117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to 6040117522SHans de Goede disable dcdc2. 6140117522SHans de Goede On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V. 6240117522SHans de Goede On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V. 63*f339f09cSHans de Goede On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V. 6440117522SHans de Goede 6540117522SHans de Goedeconfig AXP_DCDC3_VOLT 6640117522SHans de Goede int "axp pmic dcdc3 voltage" 6740117522SHans de Goede depends on AXP152_POWER || AXP209_POWER || AXP221_POWER 6840117522SHans de Goede default 1500 if AXP152_POWER 6940117522SHans de Goede default 1250 if AXP209_POWER 7040117522SHans de Goede default 1200 if MACH_SUN6I || MACH_SUN8I 7140117522SHans de Goede ---help--- 7240117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to 7340117522SHans de Goede disable dcdc3. 7440117522SHans de Goede On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and 7540117522SHans de Goede should be 1.25V. 7640117522SHans de Goede On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V. 7740117522SHans de Goede On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V. 7840117522SHans de Goede 7940117522SHans de Goedeconfig AXP_DCDC4_VOLT 8040117522SHans de Goede int "axp pmic dcdc4 voltage" 8140117522SHans de Goede depends on AXP152_POWER || AXP221_POWER 8240117522SHans de Goede default 1250 if AXP152_POWER 8340117522SHans de Goede default 1200 if MACH_SUN6I 8440117522SHans de Goede default 0 if MACH_SUN8I 8540117522SHans de Goede ---help--- 8640117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to 8740117522SHans de Goede disable dcdc4. 8840117522SHans de Goede On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V. 8940117522SHans de Goede On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V. 9040117522SHans de Goede On A23 / A33 boards dcdc4 is unused and should be disabled. 9140117522SHans de Goede 9240117522SHans de Goedeconfig AXP_DCDC5_VOLT 9340117522SHans de Goede int "axp pmic dcdc5 voltage" 947a0bbe64SHans de Goede depends on AXP221_POWER 9540117522SHans de Goede default 1500 if MACH_SUN6I || MACH_SUN8I 967a0bbe64SHans de Goede ---help--- 9740117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to 9840117522SHans de Goede disable dcdc5. 9940117522SHans de Goede On A23 / A31 / A33 boards dcdc5 is VCC-DRAM and should be 1.5V. 1007a0bbe64SHans de Goede 10140117522SHans de Goedeconfig AXP_ALDO1_VOLT 10240117522SHans de Goede int "axp pmic (a)ldo1 voltage" 1035c7f10fdSOliver Schinagl depends on AXP221_POWER 10450e0d5e6SHans de Goede default 0 1055c7f10fdSOliver Schinagl ---help--- 10640117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to 10740117522SHans de Goede disable aldo1. 10840117522SHans de Goede On A31 boards aldo1 is often used to power the wifi module. 10940117522SHans de Goede On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V. 1105c7f10fdSOliver Schinagl 11140117522SHans de Goedeconfig AXP_ALDO2_VOLT 11240117522SHans de Goede int "axp pmic (a)ldo2 voltage" 11340117522SHans de Goede depends on AXP152_POWER || AXP209_POWER || AXP221_POWER 11440117522SHans de Goede default 3000 if AXP152_POWER || AXP209_POWER 11552755b12SChen-Yu Tsai default 0 if MACH_SUN6I 116f7044498SHans de Goede default 2500 if MACH_SUN8I 1175c7f10fdSOliver Schinagl ---help--- 11840117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to 11940117522SHans de Goede disable aldo2. 12040117522SHans de Goede On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V. 12140117522SHans de Goede On A31 boards aldo2 is typically unused and should be disabled. 12240117522SHans de Goede On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V. 12340117522SHans de Goede On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V. 1245c7f10fdSOliver Schinagl 12540117522SHans de Goedeconfig AXP_ALDO3_VOLT 12640117522SHans de Goede int "axp pmic (a)ldo3 voltage" 12740117522SHans de Goede depends on AXP209_POWER || AXP221_POWER 12840117522SHans de Goede default 2800 if AXP209_POWER 12940117522SHans de Goede default 3000 if MACH_SUN6I || MACH_SUN8I 1305c7f10fdSOliver Schinagl ---help--- 13140117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to 13240117522SHans de Goede disable aldo3. 13340117522SHans de Goede On A10(s) / A13 / A20 boards aldo3 should be 2.8V. 13440117522SHans de Goede On A23 / A31 / A33 boards aldo3 is VCC-PLL and AVCC and should be 3.0V. 1356906df1aSSiarhei Siamashka 13640117522SHans de Goedeconfig AXP_ALDO4_VOLT 13740117522SHans de Goede int "axp pmic (a)ldo4 voltage" 13840117522SHans de Goede depends on AXP209_POWER 13940117522SHans de Goede default 2800 if AXP209_POWER 14040117522SHans de Goede ---help--- 14140117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to 14240117522SHans de Goede disable aldo4. 14340117522SHans de Goede On A10(s) / A13 / A20 boards aldo4 should be 2.8V. 14440117522SHans de Goede 14540117522SHans de Goedeconfig AXP_DLDO1_VOLT 14640117522SHans de Goede int "axp pmic dldo1 voltage" 1476906df1aSSiarhei Siamashka depends on AXP221_POWER 1486906df1aSSiarhei Siamashka default 0 1496906df1aSSiarhei Siamashka ---help--- 15040117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to 15140117522SHans de Goede disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used 15240117522SHans de Goede to power the ethernet phy. On sun8i (A23) boards this is often used to 15340117522SHans de Goede power the wifi. 15440117522SHans de Goede 15540117522SHans de Goedeconfig AXP_DLDO2_VOLT 15640117522SHans de Goede int "axp pmic dldo2 voltage" 15740117522SHans de Goede depends on AXP221_POWER 15840117522SHans de Goede default 0 15940117522SHans de Goede ---help--- 16040117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to 16140117522SHans de Goede disable dldo2. 16240117522SHans de Goede 16340117522SHans de Goedeconfig AXP_DLDO3_VOLT 16440117522SHans de Goede int "axp pmic dldo3 voltage" 16540117522SHans de Goede depends on AXP221_POWER 16640117522SHans de Goede default 0 16740117522SHans de Goede ---help--- 16840117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to 16940117522SHans de Goede disable dldo3. 17040117522SHans de Goede 17140117522SHans de Goedeconfig AXP_DLDO4_VOLT 17240117522SHans de Goede int "axp pmic dldo4 voltage" 17340117522SHans de Goede depends on AXP221_POWER 17440117522SHans de Goede default 0 17540117522SHans de Goede ---help--- 17640117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to 17740117522SHans de Goede disable dldo4. 17840117522SHans de Goede 17940117522SHans de Goedeconfig AXP_ELDO1_VOLT 18040117522SHans de Goede int "axp pmic eldo1 voltage" 18140117522SHans de Goede depends on AXP221_POWER 18240117522SHans de Goede default 0 18340117522SHans de Goede ---help--- 18440117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to 18540117522SHans de Goede disable eldo1. 18640117522SHans de Goede 18740117522SHans de Goedeconfig AXP_ELDO2_VOLT 18840117522SHans de Goede int "axp pmic eldo2 voltage" 18940117522SHans de Goede depends on AXP221_POWER 19040117522SHans de Goede default 0 19140117522SHans de Goede ---help--- 19240117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to 19340117522SHans de Goede disable eldo2. 19440117522SHans de Goede 19540117522SHans de Goedeconfig AXP_ELDO3_VOLT 19640117522SHans de Goede int "axp pmic eldo3 voltage" 19740117522SHans de Goede depends on AXP221_POWER 19840117522SHans de Goede default 0 19940117522SHans de Goede ---help--- 20040117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to 2016906df1aSSiarhei Siamashka disable eldo3. On some A31(s) tablets it might be used to supply 2026906df1aSSiarhei Siamashka 1.2V for the SSD2828 chip (converter of parallel LCD interface 2036906df1aSSiarhei Siamashka into MIPI DSI). 2044d9057e8SPrzemyslaw Marczak 2054d9057e8SPrzemyslaw Marczakendmenu 206