rockchip: rk3399-nanopi-4: Allow MMC driver to control SD regulators
authorJustin Klaassen <justin@tidylabs.net>
Fri, 23 May 2025 16:53:40 +0000 (16:53 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 6 Jun 2025 09:21:54 +0000 (17:21 +0800)
This change removes the "regulator-always-on" property from the
"vcc3v0_sd" (vmmc-supply) and "vcc_sdio" (vqmmc-supply) regulators,
which otherwise prevents the MMC driver from being able to power cycle
the SD card as part of the initialization procedure.

It also removes the "regulator-boot-on" from the "vcc_sdio" regulator,
which could theoretically damage a SD card that is already initialized
in a low voltage mode.

Signed-off-by: Justin Klaassen <justin@tidylabs.net>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-nanopi4-u-boot.dtsi

index 7573612..ba2b732 100644 (file)
 
 &vcc3v0_sd {
        bootph-pre-ram;
+       /delete-property/ regulator-always-on;
 };
 
 &vcc_sdio {
+       /delete-property/ regulator-always-on;
+       /delete-property/ regulator-boot-on;
        regulator-init-microvolt = <3000000>;
 };