mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <m.felsch@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] ARM: i.MX8MM: increase off-on delay on the SD Vcc regulator
Date: Thu, 16 Jun 2022 16:02:46 +0200	[thread overview]
Message-ID: <20220616140246.2191569-2-m.felsch@pengutronix.de> (raw)
In-Reply-To: <20220616140246.2191569-1-m.felsch@pengutronix.de>

This commit is ported from u-boot commit 247bbeb74c ("ARM: dts: imx8m:
increase off-on delay on the SD Vcc regulator"). Currently barebox
supports only SDR25/HS mode but it gets important as soon as barebox
supports faster modes.

8<---------------------------------------------------------------------
    ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator

    Some SD Card controller and power circuitry has increased capacitance,
    which keeps the internal logic remains powered after regulator is switch
    off. This is generally the case when card is switched to SD104 mode,
    where a power cycle should be performed. In case if the card internal
    logic remains powered, it causes a subsequent failure of mode
    transition, effectively leading to failed enumeration.

    Introduce a delay of 20 msec in order to provide a possibility for
    internal card circuitry to drain voltages and perform a power cycle
    correctly.

    Similar fix is done in commit c49d0ac38a76 ("ARM: dts: rmobile: Increase
    off-on delay on the SD Vcc regulator") targeted Renesas SOCs.

    Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
    Cc: Stefano Babic <sbabic@denx.de>
8<---------------------------------------------------------------------

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/dts/imx8mm-evk.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx8mm-evk.dts b/arch/arm/dts/imx8mm-evk.dts
index 854e9db869..6c06ad7e47 100644
--- a/arch/arm/dts/imx8mm-evk.dts
+++ b/arch/arm/dts/imx8mm-evk.dts
@@ -24,6 +24,10 @@
 	};
 };
 
+&reg_usdhc2_vmmc {
+	off-on-delay-us = <20000>;
+};
+
 &usdhc2 {
 	#address-cells = <1>;
 	#size-cells = <1>;
-- 
2.30.2




  reply	other threads:[~2022-06-16 14:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16 14:02 [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Marco Felsch
2022-06-16 14:02 ` Marco Felsch [this message]
2022-06-17  7:18 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220616140246.2191569-2-m.felsch@pengutronix.de \
    --to=m.felsch@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox