[PATCH] arm: sunxi: Reduce inrush current on Olimex A20-OLinuXino_MICRO

This change fix reboot, it was tested on debian-12
It was inspired from for-master-20181206-10-g8311e84b18
Relate-to: https://github.com/rzr/u-boot/issues/2 Thanks-to: Olliver Schinagl oliver@schinagl.nl Signed-off-by: Philippe Coval rzr@users.sf.net ---
configs/A20-OLinuXino_MICRO_defconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/configs/A20-OLinuXino_MICRO_defconfig b/configs/A20-OLinuXino_MICRO_defconfig index db4270f9b2..673ab85c8a 100644 --- a/configs/A20-OLinuXino_MICRO_defconfig +++ b/configs/A20-OLinuXino_MICRO_defconfig @@ -20,6 +20,7 @@ CONFIG_ETH_DESIGNWARE=y CONFIG_MII=y CONFIG_SUN7I_GMAC=y CONFIG_SUN7I_GMAC_FORCE_TXERR=y +CONFIG_AXP_ALDO3_INRUSH_QUIRK=y CONFIG_AXP_ALDO3_VOLT=2800 CONFIG_AXP_ALDO4_VOLT=2800 CONFIG_SCSI=y

On Sat, 6 Jan 2024 23:21:34 +0100 Philippe Coval rzr@users.sf.net wrote:
(CC:ing Olliver, can you confirm that this quirk applies to the Micro too?)
Hi Philippe,
thanks for taking care of upstreaming this!
This change fix reboot, it was tested on debian-12
So I am wondering why this only comes up now. Was that always broken, and nobody cared (or ran mainline U-Boot)? Or does the problem only show under certain circumstances?
It would be good if you can elaborate about that in the commit message, to show *why* your patch is needed.
It was inspired from for-master-20181206-10-g8311e84b18
Referencing a commit here looks odd. You could just mention that this quirk is also used on the Lime2 boards.
Relate-to: https://github.com/rzr/u-boot/issues/2 Thanks-to: Olliver Schinagl oliver@schinagl.nl
Please don't invent tags. If you want to give credit for things like advice or support, mention their name in the commit message, and maybe add them in CC: If you have a *stable* link with useful(!) information, use the Link: tag.
Signed-off-by: Philippe Coval rzr@users.sf.net
configs/A20-OLinuXino_MICRO_defconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/configs/A20-OLinuXino_MICRO_defconfig b/configs/A20-OLinuXino_MICRO_defconfig
If you change this file, that probably means that the eMMC version is also affected? Same as the two Lime2 boards, where we set the symbol in *both* defconfigs? So can you please add that symbol there as well?
Cheers, Andre
index db4270f9b2..673ab85c8a 100644 --- a/configs/A20-OLinuXino_MICRO_defconfig +++ b/configs/A20-OLinuXino_MICRO_defconfig @@ -20,6 +20,7 @@ CONFIG_ETH_DESIGNWARE=y CONFIG_MII=y CONFIG_SUN7I_GMAC=y CONFIG_SUN7I_GMAC_FORCE_TXERR=y +CONFIG_AXP_ALDO3_INRUSH_QUIRK=y CONFIG_AXP_ALDO3_VOLT=2800 CONFIG_AXP_ALDO4_VOLT=2800 CONFIG_SCSI=y

On 1/12/24 5:01 PM, Andre Przywara wrote:
On Sat, 6 Jan 2024 23:21:34 +0100 Philippe Covalrzr@users.sf.net wrote:
(...)
thanks for taking care of upstreaming this!
yea I should have done this earlier !
This change fix reboot, it was tested on debian-12
So I am wondering why this only comes up now. Was that always broken,
I assume yes, it has been reported a couple of time elsewhere:
https://forum.openwrt.org/t/rebot-issue-with-a20-olinuxino-micro/56720/2?u=r...
Also, I just filed (And shared patch):
https://bugs.debian.org/1060752
I've been using armbian's lime images on micro that had the fix , and forgot about this problem untilĀ I gave a try at freedom box images for micro
It would be good if you can elaborate about that in the commit message, to show *why* your patch is needed.
OK I'll improve commit message with details I know and also apply to the eMMC defconfig (testers welcome?) waiting for Olivier feedback then I'll push a V2 of patch to:
http://patchwork.ozlabs.org/project/uboot/list/?series=389169 http://patchwork.ozlabs.org/project/uboot/list/?series=389169
then feel free to annotate if you have more details to share
Keep in touch
participants (3)
-
Andre Przywara
-
Philippe Coval
-
Philippe Coval