From: Priit Laes Date: Tue, 27 Nov 2018 16:11:22 +0000 Subject: [U-Boot] [linux-sunxi] [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3 In-Reply-To: References: Message-ID: <20181127161122.5d2appapzvs3z6y5@plaes.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Wed, Nov 21, 2018 at 08:05:24PM +0200, Priit Laes wrote: > This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" seri= es, > posted by Olliver Schinagl in March 2017. Unfortunately it never got past > initial discussion [1], but most Olimex Lime2 boards are still running > into this bug. >=20 > When powering up an AXP209, the default value for LDO3 output is enabled.= This > works fine. However if for whatever reason, LDO3 is disabled, for example= by OS > during reboot and u-boot enables LDO3 again, the PMIC shuts down (without > setting an interrupt) causing the board to hang. This behavior has been s= een > from Linux as well, u-boot disables LDO3 as a default value, the kernel e= nables > it per its DTS, the kernel hangs as the PMIC gets shut down. >=20 > The root cause is that some boards have too high capacitance on the LDO3 = output > port causing inrush currents exceeding the maximum of the AXP209. >=20 > The fix is to turn on the LDO3 at the lowest possible voltage and then se= t the > final voltage. >=20 > If the capacitance is really big (due to a connected device for example) = the > AXP209 also features VRC, or Voltage Rate Control, allowing voltage to ra= mp up > even slower. >=20 > Similar changes need to be also implemented in the operating system driver > side when driver needs to toggle power for the ALDO3 regulator. >=20 > This patch series implements the above with a few tiny cleanups. Anything else that should be done by me, now that all the patches have Acked-by? P=C3=A4ikest, Priit