MLK-17258 ARM64: dts: add off-on-delay for usdhc vmmc-supply regulator
authorHaibo Chen <haibo.chen@nxp.com>
Fri, 22 Dec 2017 03:27:35 +0000 (11:27 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:26 +0000 (14:52 -0500)
For the slot support SD3.0 card, during system suspend, if plug out
the sd card, and insert another SD3.0 card, after system resume back,
SD3.0 card can't be recognized as SD3.0 card, just SD2.0 card.

This is because the time delay between vmmc regulator off and on is
too small. SD spec require the Card Vdd shall be lowered to less than
0.5v for a minimum period for 1ms. And the hardware regulator also need
some time to drop the Card Vdd from 3.3v to 0.5v. This patch add the
off-on-delay in vmmc-supply regulator adding the upper two limitation
into consideration.

This patch relay on the commit 878bff7648f5 ("MLK-14638-1 regulator:
fixed: add off_on_delay support").

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2.dts
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts
arch/arm64/boot/dts/freescale/fsl-imx8qxp-lpddr4-arm2.dts
arch/arm64/boot/dts/freescale/fsl-imx8qxp-mek.dts

index 91e62d7..c232f0a 100644 (file)
@@ -91,6 +91,7 @@
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
                        gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>;
+                       off-on-delay = <3000>;
                        enable-active-high;
                };
 
index d2e86da..0b350da 100644 (file)
@@ -91,6 +91,7 @@
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
                        gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>;
+                       off-on-delay = <4800>;
                        enable-active-high;
                };
 
index 2c35ab0..f6de1b3 100644 (file)
@@ -36,6 +36,7 @@
                        regulator-min-microvolt = <3000000>;
                        regulator-max-microvolt = <3000000>;
                        gpio = <&gpio4 19 GPIO_ACTIVE_HIGH>;
+                       off-on-delay = <2720>;
                        enable-active-high;
                };
 
index 8c4f5e2..eaac85b 100755 (executable)
@@ -69,6 +69,7 @@
                        regulator-min-microvolt = <3000000>;
                        regulator-max-microvolt = <3000000>;
                        gpio = <&gpio4 19 GPIO_ACTIVE_HIGH>;
+                       off-on-delay = <3480>;
                        enable-active-high;
                };