14d9057e8SPrzemyslaw Marczakmenu "Power" 24d9057e8SPrzemyslaw Marczak 34d9057e8SPrzemyslaw Marczaksource "drivers/power/pmic/Kconfig" 44d9057e8SPrzemyslaw Marczak 5af41e8dbSPrzemyslaw Marczaksource "drivers/power/regulator/Kconfig" 6af41e8dbSPrzemyslaw Marczak 7*1df44814SHans de Goedechoice 8*1df44814SHans de Goede prompt "Select Sunxi PMIC Variant" 9*1df44814SHans de Goede depends on ARCH_SUNXI 10*1df44814SHans de Goede default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 11*1df44814SHans de Goede default AXP221_POWER if MACH_SUN6I || MACH_SUN8I 12*1df44814SHans de Goede 13*1df44814SHans de Goedeconfig SUNXI_NO_PMIC 14*1df44814SHans de Goede boolean "board without a pmic" 15*1df44814SHans de Goede ---help--- 16*1df44814SHans de Goede Select this for boards which do not use a PMIC. 17*1df44814SHans de Goede 18*1df44814SHans de Goedeconfig AXP152_POWER 19*1df44814SHans de Goede boolean "axp152 pmic support" 20*1df44814SHans de Goede depends on MACH_SUN5I 21*1df44814SHans de Goede ---help--- 22*1df44814SHans de Goede Select this to enable support for the axp152 pmic found on most 23*1df44814SHans de Goede A10s boards. 24*1df44814SHans de Goede 25*1df44814SHans de Goedeconfig AXP209_POWER 26*1df44814SHans de Goede boolean "axp209 pmic support" 27*1df44814SHans de Goede depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I 28*1df44814SHans de Goede ---help--- 29*1df44814SHans de Goede Select this to enable support for the axp209 pmic found on most 30*1df44814SHans de Goede A10, A13 and A20 boards. 31*1df44814SHans 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--- 36*1df44814SHans de Goede Select this to enable support for the axp221/axp223 pmic found on most 37*1df44814SHans de Goede A23 and A31 boards. 38*1df44814SHans de Goede 39*1df44814SHans de Goedeendchoice 405c7f10fdSOliver Schinagl 411262a85fSHans de Goedeconfig AXP221_DCDC1_VOLT 421262a85fSHans de Goede int "axp221 dcdc1 voltage" 431262a85fSHans de Goede depends on AXP221_POWER 441262a85fSHans de Goede default 3000 451262a85fSHans de Goede ---help--- 461262a85fSHans de Goede Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to 471262a85fSHans de Goede disable dcdc1. This is typically used as generic 3.3V IO voltage for 481262a85fSHans de Goede things like GPIO-s, sdcard interfaces, etc. On most boards this is 491262a85fSHans de Goede undervolted to 3.0V to safe battery. 501262a85fSHans de Goede 517a0bbe64SHans de Goedeconfig AXP221_DCDC2_VOLT 527a0bbe64SHans de Goede int "axp221 dcdc2 voltage" 537a0bbe64SHans de Goede depends on AXP221_POWER 547a0bbe64SHans de Goede default 1200 557a0bbe64SHans de Goede ---help--- 567a0bbe64SHans de Goede Set the voltage (mV) to program the axp221 dcdc2 at, set to 0 to 577a0bbe64SHans de Goede disable dcdc2. On A31 boards this is typically used for VDD-GPU, 587a0bbe64SHans de Goede on A23/A33 for VDD-SYS, this should normally be set to 1.2V. 597a0bbe64SHans de Goede 605c7f10fdSOliver Schinaglconfig AXP221_DLDO1_VOLT 615c7f10fdSOliver Schinagl int "axp221 dldo1 voltage" 625c7f10fdSOliver Schinagl depends on AXP221_POWER 6350e0d5e6SHans de Goede default 0 645c7f10fdSOliver Schinagl ---help--- 6550e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to 66f7044498SHans de Goede disable dldo1. On sun6i (A31) boards with ethernet this is often used 67f7044498SHans de Goede to power the ethernet phy. On sun8i (A23) boards this is often used to 68f7044498SHans de Goede power the wifi. 695c7f10fdSOliver Schinagl 705c7f10fdSOliver Schinaglconfig AXP221_DLDO4_VOLT 715c7f10fdSOliver Schinagl int "axp221 dldo4 voltage" 725c7f10fdSOliver Schinagl depends on AXP221_POWER 7350e0d5e6SHans de Goede default 0 745c7f10fdSOliver Schinagl ---help--- 7550e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to 765c7f10fdSOliver Schinagl disable dldo4. 775c7f10fdSOliver Schinagl 785c7f10fdSOliver Schinaglconfig AXP221_ALDO1_VOLT 795c7f10fdSOliver Schinagl int "axp221 aldo1 voltage" 805c7f10fdSOliver Schinagl depends on AXP221_POWER 8150e0d5e6SHans de Goede default 0 825c7f10fdSOliver Schinagl ---help--- 8350e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to 84f7044498SHans de Goede disable aldo1. On sun6i (A31) boards which have a wifi module this is 85f7044498SHans de Goede often used to power the wifi module. 865c7f10fdSOliver Schinagl 875c7f10fdSOliver Schinaglconfig AXP221_ALDO2_VOLT 885c7f10fdSOliver Schinagl int "axp221 aldo2 voltage" 895c7f10fdSOliver Schinagl depends on AXP221_POWER 9052755b12SChen-Yu Tsai default 0 if MACH_SUN6I 91f7044498SHans de Goede default 2500 if MACH_SUN8I 925c7f10fdSOliver Schinagl ---help--- 9350e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to 9452755b12SChen-Yu Tsai disable aldo2. On sun6i (A31) boards this is typically unused and 9552755b12SChen-Yu Tsai should be disabled, if it is used for LPDDR2 it should be set to 1.8V. 9652755b12SChen-Yu Tsai On sun8i (A23) this is typically connected to VDD-DLL and must be set 9752755b12SChen-Yu Tsai to 2.5V. 985c7f10fdSOliver Schinagl 995c7f10fdSOliver Schinaglconfig AXP221_ALDO3_VOLT 1005c7f10fdSOliver Schinagl int "axp221 aldo3 voltage" 1015c7f10fdSOliver Schinagl depends on AXP221_POWER 102f7044498SHans de Goede default 3000 1035c7f10fdSOliver Schinagl ---help--- 10450e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to 105f7044498SHans de Goede disable aldo3. This is typically connected to VCC-PLL and AVCC and 106f7044498SHans de Goede must be set to 3V. 1076906df1aSSiarhei Siamashka 1086906df1aSSiarhei Siamashkaconfig AXP221_ELDO3_VOLT 1096906df1aSSiarhei Siamashka int "axp221 eldo3 voltage" 1106906df1aSSiarhei Siamashka depends on AXP221_POWER 1116906df1aSSiarhei Siamashka default 0 1126906df1aSSiarhei Siamashka ---help--- 1136906df1aSSiarhei Siamashka Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to 1146906df1aSSiarhei Siamashka disable eldo3. On some A31(s) tablets it might be used to supply 1156906df1aSSiarhei Siamashka 1.2V for the SSD2828 chip (converter of parallel LCD interface 1166906df1aSSiarhei Siamashka into MIPI DSI). 1174d9057e8SPrzemyslaw Marczak 1184d9057e8SPrzemyslaw Marczakendmenu 119