]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
sunxi: axp221: Add Kconfig help and sane defaults for typical ldo usage
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Dec 2014 11:40:45 +0000 (12:40 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:36 +0000 (14:56 +0100)
Some of the ldo-s of the axp221 are used in the same way on most boards, add
comments to the Kconfig help text to reflect this, and give them defaults
matching their typical usage.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
configs/CSQ_CS908_defconfig
configs/Colombus_defconfig
configs/Hummingbird_A31_defconfig
configs/Mele_M9_defconfig
drivers/power/Kconfig

index 4c9cff6e922428c5a5a6a6ab577af977cbd931bc..1b6cdbf811b3bfdb4f9fece099b69d5174b4275f 100644 (file)
@@ -11,9 +11,6 @@ CONFIG_FDTFILE="sun6i-a31s-cs908.dtb"
 +S:CONFIG_AXP221_DLDO1_VOLT=3300
 # Wifi power
 +S:CONFIG_AXP221_ALDO1_VOLT=3300
-# HDMI power ?
-+S:CONFIG_AXP221_ALDO2_VOLT=1800
-+S:CONFIG_AXP221_ALDO3_VOLT=3000
 # No Vbus gpio for either usb
 +S:CONFIG_USB1_VBUS_PIN=""
 +S:CONFIG_USB2_VBUS_PIN=""
index b8c54002678354613581bf20631d3fb08133e526..f42ae5222e17022a6ccddd604c4915a0fe25df37 100644 (file)
@@ -9,8 +9,5 @@ CONFIG_FDTFILE="sun6i-a31-colombus.dtb"
 +S:CONFIG_DRAM_ZQ=251
 # Wifi power
 +S:CONFIG_AXP221_ALDO1_VOLT=3300
-# HDMI power ?
-+S:CONFIG_AXP221_ALDO2_VOLT=1800
-+S:CONFIG_AXP221_ALDO3_VOLT=3000
 # No Vbus gpio for usb1
 +S:CONFIG_USB1_VBUS_PIN=""
index b60d579e4bbf82191b793f1bd0a8d7e94db3b937..93820ab966873798aabdd35f0725ba1e70493898 100644 (file)
@@ -9,10 +9,6 @@ CONFIG_FDTFILE="sun6i-a31-hummingbird.dtb"
 +S:CONFIG_DRAM_ZQ=251
 # Wifi power
 +S:CONFIG_AXP221_ALDO1_VOLT=3300
-# PM-CPUS GPIO power
-+S:CONFIG_AXP221_ALDO2_VOLT=1800
-# SoC IR, PLL and Analog power (must be 3.0V)
-+S:CONFIG_AXP221_ALDO3_VOLT=3000
 # Vbus gpio for usb1
 +S:CONFIG_USB1_VBUS_PIN="PH24"
 # No Vbus gpio for usb2
index a598254b2d11e7d2a3fa4b6c1e581d6bd3356a6e..445cc574d8ec62f6ff9b48b20488de46118aa787 100644 (file)
@@ -13,9 +13,6 @@ CONFIG_FDTFILE="sun6i-a31-m9.dtb"
 +S:CONFIG_AXP221_DLDO4_VOLT=3300
 # Wifi power
 +S:CONFIG_AXP221_ALDO1_VOLT=3300
-# HDMI power ?
-+S:CONFIG_AXP221_ALDO2_VOLT=1800
-+S:CONFIG_AXP221_ALDO3_VOLT=3000
 # Vbus gpio for usb1
 +S:CONFIG_USB1_VBUS_PIN="PC27"
 # No Vbus gpio for usb2
index 7373a793e2552295d56a5e914c6d997a6cf7ba8a..af668871291ce924e69cf8529247ecc21bdc0a03 100644 (file)
@@ -12,7 +12,9 @@ config AXP221_DLDO1_VOLT
        default -1
        ---help---
        Set the voltage (mV) to program the axp221 dldo1 at, set to -1 to
-       disable dldo1.
+       disable dldo1. On sun6i (A31) boards with ethernet this is often used
+       to power the ethernet phy. On sun8i (A23) boards this is often used to
+       power the wifi.
 
 config AXP221_DLDO4_VOLT
        int "axp221 dldo4 voltage"
@@ -28,20 +30,26 @@ config AXP221_ALDO1_VOLT
        default -1
        ---help---
        Set the voltage (mV) to program the axp221 aldo1 at, set to -1 to
-       disable aldo1.
+       disable aldo1. On sun6i (A31) boards which have a wifi module this is
+       often used to power the wifi module.
 
 config AXP221_ALDO2_VOLT
        int "axp221 aldo2 voltage"
        depends on AXP221_POWER
-       default -1
+       default 1800 if MACH_SUN6I
+       default 2500 if MACH_SUN8I
        ---help---
        Set the voltage (mV) to program the axp221 aldo2 at, set to -1 to
-       disable aldo2.
+       disable aldo2. On sun6i (A31) boards this is typically connected to
+       VCC-PM, which powers the port M gpios, and should be set to 1.8V.
+       On sun8i (A23) this is typically connected to VDD-DLL and must be
+       set to 2.5V.
 
 config AXP221_ALDO3_VOLT
        int "axp221 aldo3 voltage"
        depends on AXP221_POWER
-       default -1
+       default 3000
        ---help---
        Set the voltage (mV) to program the axp221 aldo3 at, set to -1 to
-       disable aldo3.
+       disable aldo3. This is typically connected to VCC-PLL and AVCC and
+       must be set to 3V.