diff mbox series

arm64: dts: rockchip: fix sdmmc detection on boot

Message ID 20191016185945.1962-1-pgwipeout@gmail.com (mailing list archive)
State New, archived
Headers show
Series arm64: dts: rockchip: fix sdmmc detection on boot | expand

Commit Message

Peter Geis Oct. 16, 2019, 6:59 p.m. UTC
With working GPIO, during init the GPIO state s reset.
This causes the sdmmc regulator to shut down, preventing detection.
Removing and replacing the card will allow it to be detected, but that should not be necessary.
Fix this by setting the regulator on at boot.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 1 +
 1 file changed, 1 insertion(+)

Comments

Heiko Stübner Nov. 9, 2019, 1:16 a.m. UTC | #1
Am Mittwoch, 16. Oktober 2019, 20:59:46 CET schrieb Peter Geis:
> With working GPIO, during init the GPIO state s reset.
> This causes the sdmmc regulator to shut down, preventing detection.
> Removing and replacing the card will allow it to be detected, but that should not be necessary.
> Fix this by setting the regulator on at boot.
> 
> Signed-off-by: Peter Geis <pgwipeout@gmail.com>

applied for 5.5

Thanks
Heiko
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
index bb40c163b05d..8d553c92182a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
@@ -35,6 +35,7 @@ 
 		gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&sdmmc0m1_gpio>;
+		regulator-boot-on;
 		regulator-name = "vcc_sd";
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;