]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: renesas: rzv2-evk-cn15-sd: Add ramp delay for SD0 regulator
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 23 Jan 2026 22:59:57 +0000 (22:59 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 6 Mar 2026 12:15:02 +0000 (13:15 +0100)
Set an appropriate ramp delay for the SD0 I/O voltage regulator in the
CN15 SD overlay to make UHS-I voltage switching reliable during card
initialization.

This issue was observed on the RZ/V2H EVK, while the same UHS-I cards
worked on the RZ/V2N EVK without problems. Adding the ramp delay makes
the behavior consistent and avoids SD init timeouts.

Before this change SD0 could fail with:

    mmc0: error -110 whilst initialising SD card

With the delay in place UHS-I cards enumerate correctly:

    mmc0: new UHS-I speed SDR104 SDXC card at address aaaa
    mmcblk0: mmc0:aaaa SR64G 59.5 GiB
     mmcblk0: p1

Fixes: 3d6c2bc7629c8 ("arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and RZ/V2N EVKs")
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260123225957.1007089-5-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso

index 0af1e0a6c7f482922a5bc2362a816549612d1091..fc53c1aae3b522a0cf559065506940d73031c953 100644 (file)
@@ -25,6 +25,7 @@
                regulator-max-microvolt = <3300000>;
                gpios-states = <0>;
                states = <3300000 0>, <1800000 1>;
+               regulator-ramp-delay = <60>;
        };
 };