diff mbox series

[U-Boot,v3,8/9] arm: sunxi: Reduce inrush current on Olimex OLinuXino-A20-Lime2

Message ID 38673eb85e53bc47e3eb166223329c05c7fa11f4.1542823428.git-series.plaes@plaes.org
State Accepted
Commit 8311e84b18627d836b4f90df268bb6890c2576eb
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series Stop AXP from crashing when enabling LDO3 | expand

Commit Message

Priit Laes Nov. 21, 2018, 6:05 p.m. UTC
From: Olliver Schinagl <oliver@schinagl.nl>

The lime2 features a too large capacitor on the LDO3 output, which
causes the PMIC to shutdown when enabling power. To be able to still
boot up however, we must gradually enable power on LDO3 for this board.

We do this by enabling both the inrush quirk and the maximum slope the
AXP209 supports.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Priit Laes <plaes@plaes.org>
---
 configs/A20-OLinuXino-Lime2_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Maxime Ripard Nov. 22, 2018, 8:22 a.m. UTC | #1
On Wed, Nov 21, 2018 at 08:05:32PM +0200, Priit Laes wrote:
> From: Olliver Schinagl <oliver@schinagl.nl>
> 
> The lime2 features a too large capacitor on the LDO3 output, which
> causes the PMIC to shutdown when enabling power. To be able to still
> boot up however, we must gradually enable power on LDO3 for this board.
> 
> We do this by enabling both the inrush quirk and the maximum slope the
> AXP209 supports.
> 
> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
> Signed-off-by: Priit Laes <plaes@plaes.org>

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>

Maxime
diff mbox series

Patch

diff --git a/configs/A20-OLinuXino-Lime2_defconfig b/configs/A20-OLinuXino-Lime2_defconfig
index fa58a6d..0c04ae6 100644
--- a/configs/A20-OLinuXino-Lime2_defconfig
+++ b/configs/A20-OLinuXino-Lime2_defconfig
@@ -25,7 +25,9 @@  CONFIG_ETH_DESIGNWARE=y
 CONFIG_RGMII=y
 CONFIG_MII=y
 CONFIG_SUN7I_GMAC=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y
 CONFIG_AXP_ALDO3_VOLT=2800
+CONFIG_AXP_ALDO3_VOLT_SLOPE_08=y
 CONFIG_AXP_ALDO4_VOLT=2800
 CONFIG_SCSI=y
 CONFIG_USB_EHCI_HCD=y