All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
@ 2021-02-22 17:40 Fabio Estevam
  2021-02-22 18:21 ` ZHIZHIKIN Andrey
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Fabio Estevam @ 2021-02-22 17:40 UTC (permalink / raw)
  To: u-boot

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 <festevam@gmail.com>
---
 arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/dts/imx8mq-evk-u-boot.dtsi b/arch/arm/dts/imx8mq-evk-u-boot.dtsi
index 44af66372712..2cfc12b7e0a4 100644
--- a/arch/arm/dts/imx8mq-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mq-evk-u-boot.dtsi
@@ -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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
  2021-02-22 17:40 [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Fabio Estevam
@ 2021-02-22 18:21 ` ZHIZHIKIN Andrey
  2021-02-23  1:53 ` Peng Fan
  2021-03-01 11:54 ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property sbabic at denx.de
  2 siblings, 0 replies; 9+ messages in thread
From: ZHIZHIKIN Andrey @ 2021-02-22 18:21 UTC (permalink / raw)
  To: u-boot

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.

> -----Original Message-----
> From: Fabio Estevam <festevam@gmail.com>
> Sent: Monday, February 22, 2021 6:41 PM
> To: sbabic at denx.de
> Cc: u-boot at lists.denx.de; trini <trini@konsulko.com>; lorusak at gmail.com;
> ZHIZHIKIN Andrey <andrey.zhizhikin@leica-geosystems.com>;
> peng.fan at nxp.com; Fabio Estevam <festevam@gmail.com>
> 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.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/arch/arm/dts/imx8mq-evk-u-boot.dtsi b/arch/arm/dts/imx8mq-evk-
> u-boot.dtsi
> index 44af66372712..2cfc12b7e0a4 100644
> --- a/arch/arm/dts/imx8mq-evk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mq-evk-u-boot.dtsi
> @@ -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

Reviewed-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
  2021-02-22 17:40 [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Fabio Estevam
  2021-02-22 18:21 ` ZHIZHIKIN Andrey
@ 2021-02-23  1:53 ` Peng Fan
  2021-02-23  2:01   ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
  2021-03-01 11:54 ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property sbabic at denx.de
  2 siblings, 1 reply; 9+ messages in thread
From: Peng Fan @ 2021-02-23  1:53 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

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

> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  arch/arm/dts/imx8mq-evk-u-boot.dtsi | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/arch/arm/dts/imx8mq-evk-u-boot.dtsi
> b/arch/arm/dts/imx8mq-evk-u-boot.dtsi
> index 44af66372712..2cfc12b7e0a4 100644
> --- a/arch/arm/dts/imx8mq-evk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mq-evk-u-boot.dtsi
> @@ -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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property
  2021-02-23  1:53 ` Peng Fan
@ 2021-02-23  2:01   ` Fabio Estevam
  2021-02-23  2:04     ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Peng Fan
  0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2021-02-23  2:01 UTC (permalink / raw)
  To: u-boot

Hi Peng,

On Mon, Feb 22, 2021 at 10:53 PM Peng Fan <peng.fan@nxp.com> wrote:

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
  2021-02-23  2:01   ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
@ 2021-02-23  2:04     ` Peng Fan
  2021-02-23  2:11       ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
  0 siblings, 1 reply; 9+ messages in thread
From: Peng Fan @ 2021-02-23  2:04 UTC (permalink / raw)
  To: u-boot

> Subject: Re: [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us
> property
> 
> Hi Peng,
> 
> On Mon, Feb 22, 2021 at 10:53 PM Peng Fan <peng.fan@nxp.com> wrote:
> 
> > 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.

> 
> Please clarify.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property
  2021-02-23  2:04     ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Peng Fan
@ 2021-02-23  2:11       ` Fabio Estevam
  2021-02-23  2:14         ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Peng Fan
  0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2021-02-23  2:11 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 22, 2021 at 11:04 PM Peng Fan <peng.fan@nxp.com> wrote:

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
  2021-02-23  2:11       ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
@ 2021-02-23  2:14         ` Peng Fan
  2021-02-23 11:03           ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
  0 siblings, 1 reply; 9+ messages in thread
From: Peng Fan @ 2021-02-23  2:14 UTC (permalink / raw)
  To: u-boot



> -----Original Message-----
> From: Fabio Estevam [mailto:festevam at gmail.com]
> Sent: 2021?2?23? 10:11
> To: Peng Fan <peng.fan@nxp.com>
> 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
> 
> On Mon, Feb 22, 2021 at 11:04 PM Peng Fan <peng.fan@nxp.com> wrote:
> 
> > 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.

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property
  2021-02-23  2:14         ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Peng Fan
@ 2021-02-23 11:03           ` Fabio Estevam
  0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2021-02-23 11:03 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 22, 2021 at 11:14 PM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote:

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

Ok, but are you able to determine the appropriate off-on-delay-us for
imx8mq-evk in U-Boot to avoid the existing regression?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property
  2021-02-22 17:40 [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Fabio Estevam
  2021-02-22 18:21 ` ZHIZHIKIN Andrey
  2021-02-23  1:53 ` Peng Fan
@ 2021-03-01 11:54 ` sbabic at denx.de
  2 siblings, 0 replies; 9+ messages in thread
From: sbabic at denx.de @ 2021-03-01 11:54 UTC (permalink / raw)
  To: u-boot

> 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 <festevam@gmail.com>
> Reviewed-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-01 11:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 17:40 [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Fabio Estevam
2021-02-22 18:21 ` ZHIZHIKIN Andrey
2021-02-23  1:53 ` Peng Fan
2021-02-23  2:01   ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
2021-02-23  2:04     ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Peng Fan
2021-02-23  2:11       ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
2021-02-23  2:14         ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property Peng Fan
2021-02-23 11:03           ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot, off-on-delay-us property Fabio Estevam
2021-03-01 11:54 ` [PATCH] ARM: dts: imx8mq-evk: Remove u-boot,off-on-delay-us property sbabic at denx.de

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.