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 11*1c27b7dcSJens Kuske default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 12*1c27b7dcSJens Kuske default SUNXI_NO_PMIC if MACH_SUN8I_H3 131df44814SHans de Goede 141df44814SHans de Goedeconfig SUNXI_NO_PMIC 151df44814SHans de Goede boolean "board without a pmic" 161df44814SHans de Goede ---help--- 171df44814SHans de Goede Select this for boards which do not use a PMIC. 181df44814SHans de Goede 191df44814SHans de Goedeconfig AXP152_POWER 201df44814SHans de Goede boolean "axp152 pmic support" 211df44814SHans de Goede depends on MACH_SUN5I 221df44814SHans de Goede ---help--- 231df44814SHans de Goede Select this to enable support for the axp152 pmic found on most 241df44814SHans de Goede A10s boards. 251df44814SHans de Goede 261df44814SHans de Goedeconfig AXP209_POWER 271df44814SHans de Goede boolean "axp209 pmic support" 281df44814SHans de Goede depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 291df44814SHans de Goede ---help--- 301df44814SHans de Goede Select this to enable support for the axp209 pmic found on most 311df44814SHans de Goede A10, A13 and A20 boards. 321df44814SHans de Goede 335c7f10fdSOliver Schinaglconfig AXP221_POWER 34bdcdf846SHans de Goede boolean "axp221 / axp223 pmic support" 35*1c27b7dcSJens Kuske depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 365c7f10fdSOliver Schinagl ---help--- 371df44814SHans de Goede Select this to enable support for the axp221/axp223 pmic found on most 381df44814SHans de Goede A23 and A31 boards. 391df44814SHans de Goede 401df44814SHans de Goedeendchoice 415c7f10fdSOliver Schinagl 4240117522SHans de Goedeconfig AXP_DCDC1_VOLT 4340117522SHans de Goede int "axp pmic dcdc1 voltage" 441262a85fSHans de Goede depends on AXP221_POWER 4540117522SHans de Goede default 3000 if MACH_SUN6I || MACH_SUN8I 461262a85fSHans de Goede ---help--- 4740117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to 4840117522SHans de Goede disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for 4940117522SHans de Goede generic 3.3V IO voltage for external devices like the lcd-panal and 5040117522SHans de Goede sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to 5140117522SHans de Goede safe battery. On A31 devices dcdc1 is also used for VCC-IO. 521262a85fSHans de Goede 5340117522SHans de Goedeconfig AXP_DCDC2_VOLT 5440117522SHans de Goede int "axp pmic dcdc2 voltage" 5540117522SHans de Goede depends on AXP152_POWER || AXP209_POWER || AXP221_POWER 5640117522SHans de Goede default 1400 if AXP152_POWER || AXP209_POWER 57f339f09cSHans de Goede default 1200 if MACH_SUN6I 58f339f09cSHans de Goede default 1100 if MACH_SUN8I 5940117522SHans de Goede ---help--- 6040117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to 6140117522SHans de Goede disable dcdc2. 6240117522SHans de Goede On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V. 6340117522SHans de Goede On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V. 64f339f09cSHans de Goede On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V. 6540117522SHans de Goede 6640117522SHans de Goedeconfig AXP_DCDC3_VOLT 6740117522SHans de Goede int "axp pmic dcdc3 voltage" 6840117522SHans de Goede depends on AXP152_POWER || AXP209_POWER || AXP221_POWER 6940117522SHans de Goede default 1500 if AXP152_POWER 7040117522SHans de Goede default 1250 if AXP209_POWER 7140117522SHans de Goede default 1200 if MACH_SUN6I || MACH_SUN8I 7240117522SHans de Goede ---help--- 7340117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to 7440117522SHans de Goede disable dcdc3. 7540117522SHans de Goede On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and 7640117522SHans de Goede should be 1.25V. 7740117522SHans de Goede On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V. 7840117522SHans de Goede On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V. 7940117522SHans de Goede 8040117522SHans de Goedeconfig AXP_DCDC4_VOLT 8140117522SHans de Goede int "axp pmic dcdc4 voltage" 8240117522SHans de Goede depends on AXP152_POWER || AXP221_POWER 8340117522SHans de Goede default 1250 if AXP152_POWER 8440117522SHans de Goede default 1200 if MACH_SUN6I 8540117522SHans de Goede default 0 if MACH_SUN8I 8640117522SHans de Goede ---help--- 8740117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to 8840117522SHans de Goede disable dcdc4. 8940117522SHans de Goede On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V. 9040117522SHans de Goede On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V. 9140117522SHans de Goede On A23 / A33 boards dcdc4 is unused and should be disabled. 9240117522SHans de Goede 9340117522SHans de Goedeconfig AXP_DCDC5_VOLT 9440117522SHans de Goede int "axp pmic dcdc5 voltage" 957a0bbe64SHans de Goede depends on AXP221_POWER 9640117522SHans de Goede default 1500 if MACH_SUN6I || MACH_SUN8I 977a0bbe64SHans de Goede ---help--- 9840117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to 9940117522SHans de Goede disable dcdc5. 10040117522SHans de Goede On A23 / A31 / A33 boards dcdc5 is VCC-DRAM and should be 1.5V. 1017a0bbe64SHans de Goede 10240117522SHans de Goedeconfig AXP_ALDO1_VOLT 10340117522SHans de Goede int "axp pmic (a)ldo1 voltage" 1045c7f10fdSOliver Schinagl depends on AXP221_POWER 105514b2d9dSHans de Goede default 0 if MACH_SUN6I 106514b2d9dSHans de Goede default 3000 if MACH_SUN8I 1075c7f10fdSOliver Schinagl ---help--- 10840117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to 10940117522SHans de Goede disable aldo1. 11040117522SHans de Goede On A31 boards aldo1 is often used to power the wifi module. 11140117522SHans de Goede On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V. 1125c7f10fdSOliver Schinagl 11340117522SHans de Goedeconfig AXP_ALDO2_VOLT 11440117522SHans de Goede int "axp pmic (a)ldo2 voltage" 11540117522SHans de Goede depends on AXP152_POWER || AXP209_POWER || AXP221_POWER 11640117522SHans de Goede default 3000 if AXP152_POWER || AXP209_POWER 11752755b12SChen-Yu Tsai default 0 if MACH_SUN6I 118f7044498SHans de Goede default 2500 if MACH_SUN8I 1195c7f10fdSOliver Schinagl ---help--- 12040117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to 12140117522SHans de Goede disable aldo2. 12240117522SHans de Goede On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V. 12340117522SHans de Goede On A31 boards aldo2 is typically unused and should be disabled. 12440117522SHans de Goede On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V. 12540117522SHans de Goede On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V. 1265c7f10fdSOliver Schinagl 12740117522SHans de Goedeconfig AXP_ALDO3_VOLT 12840117522SHans de Goede int "axp pmic (a)ldo3 voltage" 12940117522SHans de Goede depends on AXP209_POWER || AXP221_POWER 13002cc27c7SHans de Goede default 0 if AXP209_POWER 13140117522SHans de Goede default 3000 if MACH_SUN6I || MACH_SUN8I 1325c7f10fdSOliver Schinagl ---help--- 13340117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to 13440117522SHans de Goede disable aldo3. 13540117522SHans de Goede On A10(s) / A13 / A20 boards aldo3 should be 2.8V. 13640117522SHans de Goede On A23 / A31 / A33 boards aldo3 is VCC-PLL and AVCC and should be 3.0V. 1376906df1aSSiarhei Siamashka 13840117522SHans de Goedeconfig AXP_ALDO4_VOLT 13940117522SHans de Goede int "axp pmic (a)ldo4 voltage" 14040117522SHans de Goede depends on AXP209_POWER 14102cc27c7SHans de Goede default 0 if AXP209_POWER 14240117522SHans de Goede ---help--- 14340117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to 14440117522SHans de Goede disable aldo4. 14540117522SHans de Goede On A10(s) / A13 / A20 boards aldo4 should be 2.8V. 14640117522SHans de Goede 14740117522SHans de Goedeconfig AXP_DLDO1_VOLT 14840117522SHans de Goede int "axp pmic dldo1 voltage" 1496906df1aSSiarhei Siamashka depends on AXP221_POWER 1506906df1aSSiarhei Siamashka default 0 1516906df1aSSiarhei Siamashka ---help--- 15240117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to 15340117522SHans de Goede disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used 15440117522SHans de Goede to power the ethernet phy. On sun8i (A23) boards this is often used to 15540117522SHans de Goede power the wifi. 15640117522SHans de Goede 15740117522SHans de Goedeconfig AXP_DLDO2_VOLT 15840117522SHans de Goede int "axp pmic dldo2 voltage" 15940117522SHans de Goede depends on AXP221_POWER 16040117522SHans de Goede default 0 16140117522SHans de Goede ---help--- 16240117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to 16340117522SHans de Goede disable dldo2. 16440117522SHans de Goede 16540117522SHans de Goedeconfig AXP_DLDO3_VOLT 16640117522SHans de Goede int "axp pmic dldo3 voltage" 16740117522SHans de Goede depends on AXP221_POWER 16840117522SHans de Goede default 0 16940117522SHans de Goede ---help--- 17040117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to 17140117522SHans de Goede disable dldo3. 17240117522SHans de Goede 17340117522SHans de Goedeconfig AXP_DLDO4_VOLT 17440117522SHans de Goede int "axp pmic dldo4 voltage" 17540117522SHans de Goede depends on AXP221_POWER 17640117522SHans de Goede default 0 17740117522SHans de Goede ---help--- 17840117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to 17940117522SHans de Goede disable dldo4. 18040117522SHans de Goede 18140117522SHans de Goedeconfig AXP_ELDO1_VOLT 18240117522SHans de Goede int "axp pmic eldo1 voltage" 18340117522SHans de Goede depends on AXP221_POWER 18440117522SHans de Goede default 0 18540117522SHans de Goede ---help--- 18640117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to 18740117522SHans de Goede disable eldo1. 18840117522SHans de Goede 18940117522SHans de Goedeconfig AXP_ELDO2_VOLT 19040117522SHans de Goede int "axp pmic eldo2 voltage" 19140117522SHans de Goede depends on AXP221_POWER 19240117522SHans de Goede default 0 19340117522SHans de Goede ---help--- 19440117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to 19540117522SHans de Goede disable eldo2. 19640117522SHans de Goede 19740117522SHans de Goedeconfig AXP_ELDO3_VOLT 19840117522SHans de Goede int "axp pmic eldo3 voltage" 19940117522SHans de Goede depends on AXP221_POWER 20040117522SHans de Goede default 0 20140117522SHans de Goede ---help--- 20240117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to 2036906df1aSSiarhei Siamashka disable eldo3. On some A31(s) tablets it might be used to supply 2046906df1aSSiarhei Siamashka 1.2V for the SSD2828 chip (converter of parallel LCD interface 2056906df1aSSiarhei Siamashka into MIPI DSI). 2064d9057e8SPrzemyslaw Marczak 2074d9057e8SPrzemyslaw Marczakendmenu 208