Re: [U-Boot] [linux-sunxi] Re: [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

On Wed, Nov 21, 2018 at 03:58:18PM -0500, Stefan Monnier wrote:
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 seen from Linux as well, u-boot disables LDO3 as a default value, the kernel enables it per its DTS, the kernel hangs as the PMIC gets shut down.
Hmm... I've never had any problems booting my Orange Pi mini, but it (almost) always hangs on reboot (right after the final message from the OS and before the first message from U-boot). Any chance this is the same problem?
Well, f you have the hardware, then there's only one way to find out:
1) Apply patchset 2) Add following into boards defconfig: CONFIG_AXP_ALDO3_INRUSH_QUIRK=y 3) If it still fails to reboot, add following CONFIG_AXP_ALDO3_VOLT_SLOPE_08=y
Stefan
-- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Well, f you have the hardware, then there's only one way to find out:
- Apply patchset
- Add following into boards defconfig:
CONFIG_AXP_ALDO3_INRUSH_QUIRK=y 3) If it still fails to reboot, add following CONFIG_AXP_ALDO3_VOLT_SLOPE_08=y
Hmm... I tried it and it worked: it now reboots flawlessly. I tried it first with both setting, then only with the first... ... then without any ... then back with my old U-Boot and now I can't reproduce the hang that normally happens at almost every reboot. Not sure if I should rejoice or what.
One thing I noticed along the way: on my Orange Pi mini, there's a regression in U-Boot that happened between 2015.07 and 2015.10. All version I tried starting with 2015.10 cause a constant "humming" on the audio output (the plain old TRRS plug audio output).
During a reboot, the humming briefly disappears after Linux causes the reboot and before U-Boot has fully started, but it quickly comes pretty loudly. As soon as U-Boot passes the control to the Linux kernel the humming gets a bit less loud, but remains there. Playing a song doesn't seem to affect the humming.
Interestingly, if I boot a Linux kernel with HDMI support, then at some point during the Linux boot, the humming disappears. But sadly, I need to use a DTB with the HDMI output disabled because of some unexplained interaction with the normal audio codec (see the «Odd "jump" when playing music on A20» thread in the linux-sunxi mainling list, spanning July to October).
Stefan "back at U-Boot 2015.07"
participants (2)
-
Priit Laes
-
Stefan Monnier