Skip to contentSkip to conversation

ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property

PATCH New Fabio Estevam 5 participants 9 messages Feb 22, 2021 – Mar 1, 2021

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 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
index 44af66372712..2cfc12b7e0a4 100644
@@ -1,9 +1,5 @@
 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
 
-&reg_usdhc2_vmmc {
-	u-boot,off-on-delay-us = <20000>;
-};
-
 &usdhc1 {
 	mmc-hs400-1_8v;
 };
Signature · 1 line
2.25.1
#1 lore raw

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 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- renamed from arch/arm/dts/imx8mq-evk-u-boot.dtsi +0 -0

u-boot.dtsi
index 44af66372712..2cfc12b7e0a4 100644

arch/arm/dts/imx8mq-evk-u-boot.dtsi +0 -5
@@ -1,9 +1,5 @@
 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
 
-&reg_usdhc2_vmmc {
-       u-boot,off-on-delay-us = <20000>;
-};
-
 &usdhc1 {
        mmc-hs400-1_8v;
 };
--
Quoted 1 line

2.25.1

#2 lore raw

PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property

In reply to Fabio Estevam

Hi 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
---
 arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/dts/imx8mq-evk-u-boot.dtsi +0 -5
index 44af66372712..2cfc12b7e0a4 100644
@@ -1,9 +1,5 @@
 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
 
-&reg_usdhc2_vmmc {
-	u-boot,off-on-delay-us = <20000>;
-};
-
 &usdhc1 {
 	mmc-hs400-1_8v;
 };
--

2.25.1

author reviewer
#3 lore raw

PATCH 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.

#4 lore raw

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.

author reviewer
#5 lore raw

PATCH 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.

#6 lore raw

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 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.

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.dts in the kernel?

I don't think U-Boot dts should deviate from the Linux devicetree in this aspect.

See
https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mq-evk.dts?h=imx_5.4.70_2.3.0#n100

NXP vendor tree has off-on-delay-us.

Regards
Peng.

#8 lore raw

PATCH 1/1 ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property

In reply to Fabio Estevam
Quoted 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.

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
=====================================================================