Skip to content

Commit c688898

Browse files
Himanshu BhavaniShawn Guo
authored andcommitted
arm64: dts: imx8mp-var-som: Fix LDO5 shutdown causing SD card timeout
Fix SD card timeout issue caused by LDO5 regulator getting disabled after boot. The kernel log shows LDO5 being disabled, which leads to a timeout on USDHC2: [ 33.760561] LDO5: disabling [ 81.119861] mmc1: Timeout waiting for hardware interrupt. To prevent this, set regulator-boot-on and regulator-always-on for LDO5. Also add the vqmmc regulator to properly support 1.8V/3.3V signaling for USDHC2 using a GPIO-controlled regulator. Fixes: 6c2a1f4 ("arm64: dts: imx8mp-var-som-symphony: Add Variscite Symphony board and VAR-SOM-MX8MP SoM") Signed-off-by: Himanshu Bhavani <[email protected]> Acked-by: Tarang Raval <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 9379508 commit c688898

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

arch/arm64/boot/dts/freescale/imx8mp-var-som.dtsi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<0x1 0x00000000 0 0xc0000000>;
3636
};
3737

38-
3938
reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
4039
compatible = "regulator-fixed";
4140
regulator-name = "VSD_3V3";
@@ -46,6 +45,16 @@
4645
startup-delay-us = <100>;
4746
off-on-delay-us = <12000>;
4847
};
48+
49+
reg_usdhc2_vqmmc: regulator-usdhc2-vqmmc {
50+
compatible = "regulator-gpio";
51+
regulator-name = "VSD_VSEL";
52+
regulator-min-microvolt = <1800000>;
53+
regulator-max-microvolt = <3300000>;
54+
gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
55+
states = <3300000 0x0 1800000 0x1>;
56+
vin-supply = <&ldo5>;
57+
};
4958
};
5059

5160
&A53_0 {
@@ -205,6 +214,7 @@
205214
pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
206215
cd-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
207216
vmmc-supply = <&reg_usdhc2_vmmc>;
217+
vqmmc-supply = <&reg_usdhc2_vqmmc>;
208218
bus-width = <4>;
209219
status = "okay";
210220
};

0 commit comments

Comments
 (0)