Skip to contentSkip to conversation

arm64: dts: rockchip: fix sdmmc detection on boot

PATCH In review Peter Geis 2 participants 2 messages Oct 16, 2019 – Nov 9, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Peter Geis

author
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: fix sdmmc detection on boot

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.

---
 arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +1 -0
index bb40c163b05d..8d553c92182a 100644
@@ -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>;
Signature · 1 line
2.20.1

A message that is not in the archive (sent off-list or not yet received): 20191016185945.1962-1-pgwipeout-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

Am Mittwoch, 16. Oktober 2019, 20:59:46 CET schrieb Peter Geis:

Quoted 6 lines

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.

applied for 5.5

Thanks
Heiko