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 111c27b7dcSJens Kuske default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 12813c7372Svishnupatekar default AXP818_POWER if MACH_SUN8I_A83T 131c27b7dcSJens Kuske default SUNXI_NO_PMIC if MACH_SUN8I_H3 141df44814SHans de Goede 151df44814SHans de Goedeconfig SUNXI_NO_PMIC 161df44814SHans de Goede boolean "board without a pmic" 171df44814SHans de Goede ---help--- 181df44814SHans de Goede Select this for boards which do not use a PMIC. 191df44814SHans de Goede 201df44814SHans de Goedeconfig AXP152_POWER 211df44814SHans de Goede boolean "axp152 pmic support" 221df44814SHans de Goede depends on MACH_SUN5I 23c286cdfeSHans de Goede select CMD_POWEROFF 241df44814SHans de Goede ---help--- 251df44814SHans de Goede Select this to enable support for the axp152 pmic found on most 261df44814SHans de Goede A10s boards. 271df44814SHans de Goede 281df44814SHans de Goedeconfig AXP209_POWER 291df44814SHans de Goede boolean "axp209 pmic support" 301df44814SHans de Goede depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 31467e92b3SMichael van Slingerland select CMD_POWEROFF 321df44814SHans de Goede ---help--- 331df44814SHans de Goede Select this to enable support for the axp209 pmic found on most 341df44814SHans de Goede A10, A13 and A20 boards. 351df44814SHans de Goede 365c7f10fdSOliver Schinaglconfig AXP221_POWER 37bdcdf846SHans de Goede boolean "axp221 / axp223 pmic support" 381c27b7dcSJens Kuske depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 39*fe4b71b2SHans de Goede select CMD_POWEROFF 405c7f10fdSOliver Schinagl ---help--- 411df44814SHans de Goede Select this to enable support for the axp221/axp223 pmic found on most 421df44814SHans de Goede A23 and A31 boards. 431df44814SHans de Goede 44813c7372Svishnupatekarconfig AXP818_POWER 45813c7372Svishnupatekar boolean "axp818 pmic support" 46813c7372Svishnupatekar depends on MACH_SUN8I_A83T 47813c7372Svishnupatekar ---help--- 48813c7372Svishnupatekar Say y here to enable support for the axp818 pmic found on 49813c7372Svishnupatekar A83T dev board. 50813c7372Svishnupatekar 511df44814SHans de Goedeendchoice 525c7f10fdSOliver Schinagl 5340117522SHans de Goedeconfig AXP_DCDC1_VOLT 5440117522SHans de Goede int "axp pmic dcdc1 voltage" 55813c7372Svishnupatekar depends on AXP221_POWER || AXP818_POWER 56813c7372Svishnupatekar default 3300 if AXP818_POWER 5740117522SHans de Goede default 3000 if MACH_SUN6I || MACH_SUN8I 581262a85fSHans de Goede ---help--- 5940117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to 6040117522SHans de Goede disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for 6140117522SHans de Goede generic 3.3V IO voltage for external devices like the lcd-panal and 6240117522SHans de Goede sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to 63813c7372Svishnupatekar safe battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T 64813c7372Svishnupatekar dcdc1 is used for VCC-IO, nand, usb0, sd , etc. 651262a85fSHans de Goede 6640117522SHans de Goedeconfig AXP_DCDC2_VOLT 6740117522SHans de Goede int "axp pmic dcdc2 voltage" 68813c7372Svishnupatekar depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP818_POWER 69813c7372Svishnupatekar default 900 if AXP818_POWER 7040117522SHans de Goede default 1400 if AXP152_POWER || AXP209_POWER 71f339f09cSHans de Goede default 1200 if MACH_SUN6I 72f339f09cSHans de Goede default 1100 if MACH_SUN8I 7340117522SHans de Goede ---help--- 7440117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to 7540117522SHans de Goede disable dcdc2. 7640117522SHans de Goede On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V. 7740117522SHans de Goede On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V. 78f339f09cSHans de Goede On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V. 79813c7372Svishnupatekar On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V. 8040117522SHans de Goede 8140117522SHans de Goedeconfig AXP_DCDC3_VOLT 8240117522SHans de Goede int "axp pmic dcdc3 voltage" 83813c7372Svishnupatekar depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP818_POWER 84813c7372Svishnupatekar default 900 if AXP818_POWER 8540117522SHans de Goede default 1500 if AXP152_POWER 8640117522SHans de Goede default 1250 if AXP209_POWER 8740117522SHans de Goede default 1200 if MACH_SUN6I || MACH_SUN8I 8840117522SHans de Goede ---help--- 8940117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to 9040117522SHans de Goede disable dcdc3. 9140117522SHans de Goede On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and 9240117522SHans de Goede should be 1.25V. 9340117522SHans de Goede On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V. 9440117522SHans de Goede On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V. 95813c7372Svishnupatekar On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V. 9640117522SHans de Goede 9740117522SHans de Goedeconfig AXP_DCDC4_VOLT 9840117522SHans de Goede int "axp pmic dcdc4 voltage" 99813c7372Svishnupatekar depends on AXP152_POWER || AXP221_POWER || AXP818_POWER 10040117522SHans de Goede default 1250 if AXP152_POWER 10140117522SHans de Goede default 1200 if MACH_SUN6I 10240117522SHans de Goede default 0 if MACH_SUN8I 10340117522SHans de Goede ---help--- 10440117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to 10540117522SHans de Goede disable dcdc4. 10640117522SHans de Goede On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V. 10740117522SHans de Goede On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V. 10840117522SHans de Goede On A23 / A33 boards dcdc4 is unused and should be disabled. 109813c7372Svishnupatekar On A83T boards dcdc4 is used for VDD-GPU. 11040117522SHans de Goede 11140117522SHans de Goedeconfig AXP_DCDC5_VOLT 11240117522SHans de Goede int "axp pmic dcdc5 voltage" 113813c7372Svishnupatekar depends on AXP221_POWER || AXP818_POWER 114813c7372Svishnupatekar default 1800 if AXP818_POWER 11540117522SHans de Goede default 1500 if MACH_SUN6I || MACH_SUN8I 1167a0bbe64SHans de Goede ---help--- 11740117522SHans de Goede Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to 11840117522SHans de Goede disable dcdc5. 119813c7372Svishnupatekar On A23 / A31 / A33 / A83T boards dcdc5 is VCC-DRAM and should be 1.5V, 120813c7372Svishnupatekar 1.8V for A83T. 1217a0bbe64SHans de Goede 12240117522SHans de Goedeconfig AXP_ALDO1_VOLT 12340117522SHans de Goede int "axp pmic (a)ldo1 voltage" 1245c7f10fdSOliver Schinagl depends on AXP221_POWER 125514b2d9dSHans de Goede default 0 if MACH_SUN6I 126514b2d9dSHans de Goede default 3000 if MACH_SUN8I 1275c7f10fdSOliver Schinagl ---help--- 12840117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to 12940117522SHans de Goede disable aldo1. 13040117522SHans de Goede On A31 boards aldo1 is often used to power the wifi module. 13140117522SHans de Goede On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V. 1325c7f10fdSOliver Schinagl 13340117522SHans de Goedeconfig AXP_ALDO2_VOLT 13440117522SHans de Goede int "axp pmic (a)ldo2 voltage" 135813c7372Svishnupatekar depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP818_POWER 13640117522SHans de Goede default 3000 if AXP152_POWER || AXP209_POWER 13752755b12SChen-Yu Tsai default 0 if MACH_SUN6I 138f7044498SHans de Goede default 2500 if MACH_SUN8I 1395c7f10fdSOliver Schinagl ---help--- 14040117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to 14140117522SHans de Goede disable aldo2. 14240117522SHans de Goede On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V. 14340117522SHans de Goede On A31 boards aldo2 is typically unused and should be disabled. 14440117522SHans de Goede On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V. 14540117522SHans de Goede On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V. 1465c7f10fdSOliver Schinagl 14740117522SHans de Goedeconfig AXP_ALDO3_VOLT 14840117522SHans de Goede int "axp pmic (a)ldo3 voltage" 149813c7372Svishnupatekar depends on AXP209_POWER || AXP221_POWER || AXP818_POWER 150813c7372Svishnupatekar default 0 if AXP209_POWER || AXP818_POWER 15140117522SHans de Goede default 3000 if MACH_SUN6I || MACH_SUN8I 1525c7f10fdSOliver Schinagl ---help--- 15340117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to 15440117522SHans de Goede disable aldo3. 15540117522SHans de Goede On A10(s) / A13 / A20 boards aldo3 should be 2.8V. 15640117522SHans de Goede On A23 / A31 / A33 boards aldo3 is VCC-PLL and AVCC and should be 3.0V. 157813c7372Svishnupatekar On A83T aldo3 is used for LVDS, DSI, MIPI, HDMI, etc. 1586906df1aSSiarhei Siamashka 15940117522SHans de Goedeconfig AXP_ALDO4_VOLT 16040117522SHans de Goede int "axp pmic (a)ldo4 voltage" 16140117522SHans de Goede depends on AXP209_POWER 16202cc27c7SHans de Goede default 0 if AXP209_POWER 16340117522SHans de Goede ---help--- 16440117522SHans de Goede Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to 16540117522SHans de Goede disable aldo4. 16640117522SHans de Goede On A10(s) / A13 / A20 boards aldo4 should be 2.8V. 16740117522SHans de Goede 16840117522SHans de Goedeconfig AXP_DLDO1_VOLT 16940117522SHans de Goede int "axp pmic dldo1 voltage" 1706906df1aSSiarhei Siamashka depends on AXP221_POWER 1716906df1aSSiarhei Siamashka default 0 1726906df1aSSiarhei Siamashka ---help--- 17340117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to 17440117522SHans de Goede disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used 17540117522SHans de Goede to power the ethernet phy. On sun8i (A23) boards this is often used to 17640117522SHans de Goede power the wifi. 17740117522SHans de Goede 17840117522SHans de Goedeconfig AXP_DLDO2_VOLT 17940117522SHans de Goede int "axp pmic dldo2 voltage" 18040117522SHans de Goede depends on AXP221_POWER 18140117522SHans de Goede default 0 18240117522SHans de Goede ---help--- 18340117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to 18440117522SHans de Goede disable dldo2. 18540117522SHans de Goede 18640117522SHans de Goedeconfig AXP_DLDO3_VOLT 18740117522SHans de Goede int "axp pmic dldo3 voltage" 18840117522SHans de Goede depends on AXP221_POWER 18940117522SHans de Goede default 0 19040117522SHans de Goede ---help--- 19140117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to 19240117522SHans de Goede disable dldo3. 19340117522SHans de Goede 19440117522SHans de Goedeconfig AXP_DLDO4_VOLT 19540117522SHans de Goede int "axp pmic dldo4 voltage" 196813c7372Svishnupatekar depends on AXP221_POWER || AXP818_POWER 19740117522SHans de Goede default 0 19840117522SHans de Goede ---help--- 19940117522SHans de Goede Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to 20040117522SHans de Goede disable dldo4. 20140117522SHans de Goede 20240117522SHans de Goedeconfig AXP_ELDO1_VOLT 20340117522SHans de Goede int "axp pmic eldo1 voltage" 20440117522SHans de Goede depends on AXP221_POWER 20540117522SHans de Goede default 0 20640117522SHans de Goede ---help--- 20740117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to 20840117522SHans de Goede disable eldo1. 20940117522SHans de Goede 21040117522SHans de Goedeconfig AXP_ELDO2_VOLT 21140117522SHans de Goede int "axp pmic eldo2 voltage" 21240117522SHans de Goede depends on AXP221_POWER 21340117522SHans de Goede default 0 21440117522SHans de Goede ---help--- 21540117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to 21640117522SHans de Goede disable eldo2. 21740117522SHans de Goede 21840117522SHans de Goedeconfig AXP_ELDO3_VOLT 21940117522SHans de Goede int "axp pmic eldo3 voltage" 22040117522SHans de Goede depends on AXP221_POWER 22140117522SHans de Goede default 0 22240117522SHans de Goede ---help--- 22340117522SHans de Goede Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to 2246906df1aSSiarhei Siamashka disable eldo3. On some A31(s) tablets it might be used to supply 2256906df1aSSiarhei Siamashka 1.2V for the SSD2828 chip (converter of parallel LCD interface 2266906df1aSSiarhei Siamashka into MIPI DSI). 2274d9057e8SPrzemyslaw Marczak 2284d9057e8SPrzemyslaw Marczakendmenu 229