ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Commit 247bbeb74c18 ("ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator") caused the imx8mq-evk board to not be able to store the environment variables in the SD card.
Remove the u-boot,off-on-delay-us property to fix the regression.
--- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ---- 1 file changed, 4 deletions(-)
arch/arm/dts/imx8mq-evk-u-boot.dtsi +0 -4
@@ -1,9 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -®_usdhc2_vmmc { - u-boot,off-on-delay-us = <20000>; -}; - &usdhc1 { mmc-hs400-1_8v; };
Signature · 1 line
2.25.1
PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Hello Fabio,
Thanks for taking care of this!
I believe this fix still applies to mx8m mini series, as without it - some SD Cards are failed to be recognized.
Quoted 38 lines
-----Original Message-----
From: Fabio Estevam <[email protected]>
Sent: Monday, February 22, 2021 6:41 PM
To: sbabic at denx.de
Cc: u-boot at lists.denx.de; trini <[email protected]>; lorusak at gmail.com; ZHIZHIKIN Andrey <[email protected]>; peng.fan at nxp.com; Fabio Estevam <[email protected]>
Subject: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us propertyCommit
247bbeb74c18("ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator") caused the imx8mq-evk board to not be able to store the environment variables in the SD card.Remove the u-boot,off-on-delay-us property to fix the regression.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ---- 1 file changed, 4 deletions(-)arch/arm/dts/imx8mq-evk- renamed from arch/arm/dts/imx8mq-evk-u-boot.dtsi +0
-0
u-boot.dtsi
index44af66372712..2cfc12b7e0a4100644arch/arm/dts/imx8mq-evk-u-boot.dtsi +0
-5@@ -1,9 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -®_usdhc2_vmmc { - u-boot,off-on-delay-us = <20000>; -}; - &usdhc1 { mmc-hs400-1_8v; }; --
Quoted 1 line
2.25.1
PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
In reply to Fabio EstevamHi Fabio,
Quoted 9 lines
Subject: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Commit
247bbeb74c18("ARM: dts: imx8m: increase off-on delay on the SD Vcc
regulator") caused the imx8mq-evk board to not be able to store the environment variables in the SD card.Remove the u-boot,off-on-delay-us property to fix the regression.
It is board dependent, some board may has a big capacitance, the off-on-delay is to give enough time for the capacitance to leak its voltage.
Regards,
Peng.
Quoted 23 lines
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ---- 1 file changed, 4 deletions(-)arch/arm/dts/imx8mq-evk-u-boot.dtsi +0
-5@@ -1,9 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -®_usdhc2_vmmc { - u-boot,off-on-delay-us = <20000>; -}; - &usdhc1 { mmc-hs400-1_8v; }; --2.25.1
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property
Hi Peng,
Quoted 3 lines · Peng Fan
It is board dependent, some board may has a big capacitance, the off-on-delay is to give enough time for the capacitance to leak its voltage.
Ok, but not clear from your comment if you agree with my change or not.
Please clarify.
PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Quoted 5 lines
Subject: Re: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Hi Peng,
Quoted 7 lines
Quoted 3 lines · Peng Fan
It is board dependent, some board may has a big capacitance, the off-on-delay is to give enough time for the capacitance to leak its voltage.
Ok, but not clear from your comment if you agree with my change or not.
I think remove it is not correct, the exact time should be measured using oscilloscope, removing it might make sd3.0 not work. But anyway 20000 seems too large a value.
Regards,
Peng.
Quoted 2 lines
Please clarify.
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property
Quoted 3 lines · Peng Fan
I think remove it is not correct, the exact time should be measured using oscilloscope, removing it might make sd3.0 not work. But anyway 20000 seems too large a value.
Do you plan to submit a fix for this then? If you don't have the bandwidth for working on this, then we could go with my proposal.
I would like to be able to boot a kernel from the SD card in the 2021.04 release and fix the regression.
Also, why don't we have such property in the imx8mq-evk.dts in the kernel?
I don't think U-Boot dts should deviate from the Linux devicetree in this aspect.
PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
Quoted 20 lines
-----Original Message-----
From: Fabio Estevam [mailto:festevam at gmail.com]
Sent: 2021?2?23? 10:11
To: Peng Fan <[email protected]>
Cc: sbabic at denx.de; u-boot at lists.denx.de; trini at konsulko.com; lorusak at gmail.com; andrey.zhizhikin at leica-geosystems.com
Subject: Re: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us propertyQuoted 3 lines · Peng Fan
I think remove it is not correct, the exact time should be measured using oscilloscope, removing it might make sd3.0 not work. But anyway 20000 seems too large a value.
Do you plan to submit a fix for this then? If you don't have the bandwidth for working on this, then we could go with my proposal.
Quoted 7 lines
I would like to be able to boot a kernel from the SD card in the 2021.04 release and fix the regression.
Also, why don't we have such property in the
imx8mq-evk.dtsin the kernel?I don't think U-Boot dts should deviate from the Linux devicetree in this aspect.
NXP vendor tree has off-on-delay-us.
Regards
Peng.
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property
Quoted 4 lines · Peng Fan (OSS)
NXP vendor tree has off-on-delay-us.
Ok, but are you able to determine the appropriate off-on-delay-us for imx8mq-evk in U-Boot to avoid the existing regression?
PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
In reply to Fabio EstevamQuoted 6 lines
Commit
247bbeb74c18("ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator") caused the imx8mq-evk board to not be able to store the environment variables in the SD card.
Remove the u-boot,off-on-delay-us property to fix the regression.Signed-off-by Fabio Estevam <[email protected]>Reviewed-by Andrey Zhizhikin <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================