14d9057e8SPrzemyslaw Marczakmenu "Power" 24d9057e8SPrzemyslaw Marczak 34d9057e8SPrzemyslaw Marczaksource "drivers/power/pmic/Kconfig" 44d9057e8SPrzemyslaw Marczak 5*af41e8dbSPrzemyslaw Marczaksource "drivers/power/regulator/Kconfig" 6*af41e8dbSPrzemyslaw Marczak 75c7f10fdSOliver Schinaglconfig AXP221_POWER 8bdcdf846SHans de Goede boolean "axp221 / axp223 pmic support" 9bdcdf846SHans de Goede depends on MACH_SUN6I || MACH_SUN8I 105c7f10fdSOliver Schinagl default y 115c7f10fdSOliver Schinagl ---help--- 12bdcdf846SHans de Goede Say y here to enable support for the axp221 / axp223 pmic found on most 13bdcdf846SHans de Goede sun6i (A31) / sun8i (A23) boards. 145c7f10fdSOliver Schinagl 151262a85fSHans de Goedeconfig AXP221_DCDC1_VOLT 161262a85fSHans de Goede int "axp221 dcdc1 voltage" 171262a85fSHans de Goede depends on AXP221_POWER 181262a85fSHans de Goede default 3000 191262a85fSHans de Goede ---help--- 201262a85fSHans de Goede Set the voltage (mV) to program the axp221 dcdc1 at, set to 0 to 211262a85fSHans de Goede disable dcdc1. This is typically used as generic 3.3V IO voltage for 221262a85fSHans de Goede things like GPIO-s, sdcard interfaces, etc. On most boards this is 231262a85fSHans de Goede undervolted to 3.0V to safe battery. 241262a85fSHans de Goede 255c7f10fdSOliver Schinaglconfig AXP221_DLDO1_VOLT 265c7f10fdSOliver Schinagl int "axp221 dldo1 voltage" 275c7f10fdSOliver Schinagl depends on AXP221_POWER 2850e0d5e6SHans de Goede default 0 295c7f10fdSOliver Schinagl ---help--- 3050e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 dldo1 at, set to 0 to 31f7044498SHans de Goede disable dldo1. On sun6i (A31) boards with ethernet this is often used 32f7044498SHans de Goede to power the ethernet phy. On sun8i (A23) boards this is often used to 33f7044498SHans de Goede power the wifi. 345c7f10fdSOliver Schinagl 355c7f10fdSOliver Schinaglconfig AXP221_DLDO4_VOLT 365c7f10fdSOliver Schinagl int "axp221 dldo4 voltage" 375c7f10fdSOliver Schinagl depends on AXP221_POWER 3850e0d5e6SHans de Goede default 0 395c7f10fdSOliver Schinagl ---help--- 4050e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 dldo4 at, set to 0 to 415c7f10fdSOliver Schinagl disable dldo4. 425c7f10fdSOliver Schinagl 435c7f10fdSOliver Schinaglconfig AXP221_ALDO1_VOLT 445c7f10fdSOliver Schinagl int "axp221 aldo1 voltage" 455c7f10fdSOliver Schinagl depends on AXP221_POWER 4650e0d5e6SHans de Goede default 0 475c7f10fdSOliver Schinagl ---help--- 4850e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 aldo1 at, set to 0 to 49f7044498SHans de Goede disable aldo1. On sun6i (A31) boards which have a wifi module this is 50f7044498SHans de Goede often used to power the wifi module. 515c7f10fdSOliver Schinagl 525c7f10fdSOliver Schinaglconfig AXP221_ALDO2_VOLT 535c7f10fdSOliver Schinagl int "axp221 aldo2 voltage" 545c7f10fdSOliver Schinagl depends on AXP221_POWER 5552755b12SChen-Yu Tsai default 0 if MACH_SUN6I 56f7044498SHans de Goede default 2500 if MACH_SUN8I 575c7f10fdSOliver Schinagl ---help--- 5850e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 aldo2 at, set to 0 to 5952755b12SChen-Yu Tsai disable aldo2. On sun6i (A31) boards this is typically unused and 6052755b12SChen-Yu Tsai should be disabled, if it is used for LPDDR2 it should be set to 1.8V. 6152755b12SChen-Yu Tsai On sun8i (A23) this is typically connected to VDD-DLL and must be set 6252755b12SChen-Yu Tsai to 2.5V. 635c7f10fdSOliver Schinagl 645c7f10fdSOliver Schinaglconfig AXP221_ALDO3_VOLT 655c7f10fdSOliver Schinagl int "axp221 aldo3 voltage" 665c7f10fdSOliver Schinagl depends on AXP221_POWER 67f7044498SHans de Goede default 3000 685c7f10fdSOliver Schinagl ---help--- 6950e0d5e6SHans de Goede Set the voltage (mV) to program the axp221 aldo3 at, set to 0 to 70f7044498SHans de Goede disable aldo3. This is typically connected to VCC-PLL and AVCC and 71f7044498SHans de Goede must be set to 3V. 726906df1aSSiarhei Siamashka 736906df1aSSiarhei Siamashkaconfig AXP221_ELDO3_VOLT 746906df1aSSiarhei Siamashka int "axp221 eldo3 voltage" 756906df1aSSiarhei Siamashka depends on AXP221_POWER 766906df1aSSiarhei Siamashka default 0 776906df1aSSiarhei Siamashka ---help--- 786906df1aSSiarhei Siamashka Set the voltage (mV) to program the axp221 eldo3 at, set to 0 to 796906df1aSSiarhei Siamashka disable eldo3. On some A31(s) tablets it might be used to supply 806906df1aSSiarhei Siamashka 1.2V for the SSD2828 chip (converter of parallel LCD interface 816906df1aSSiarhei Siamashka into MIPI DSI). 824d9057e8SPrzemyslaw Marczak 834d9057e8SPrzemyslaw Marczakendmenu 84