MLK-11790 dts: imx6: fix wlreg_on regulator always on issue
authorDong Aisheng <aisheng.dong@freescale.com>
Thu, 29 Oct 2015 09:37:51 +0000 (17:37 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:38 +0000 (14:49 -0500)
wlreg_on regulator always on will make WiFi module unable to do reset
during rmmod, then the re-insmod will fail.

In stead of make wlreg_on always on, we make vmmc regulator always on
for BT to work properly.
Then WiFi can still function well on wlreg_on regulator enable/disable.

Fixes: commit f17b5e5be (dts: mx6ul evk: set regulator wlreg_on always on)
Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com>
(cherry picked from commit e92b727494b10c7a13e9491f55fc07a7ed7622a3)

arch/arm/boot/dts/imx6sx-sdb-btwifi.dts
arch/arm/boot/dts/imx6ul-evk-btwifi.dtsi

index 575ed3c..a74d274 100644 (file)
@@ -24,7 +24,6 @@
                        regulator-name = "wlreg_on";
                        gpio = <&gpio6 10 0>;
                        startup-delay-us = <100>;
-                       regulator-always-on;
                        enable-active-high;
                };
        };
        bus-width = <1>;
 };
 
+&vcc_sd3 {
+       regulator-always-on;
+};
+
 &usdhc3 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_wifi>;
index 1f3f8d5..99a67cf 100644 (file)
@@ -21,7 +21,6 @@
                        regulator-name = "wlreg_on";
                        gpio = <&gpio5 1 0>;
                        startup-delay-us = <100>;
-                       regulator-always-on;
                        enable-active-high;
                };
        };
        };
 };
 
+&reg_sd1_vmmc {
+       regulator-always-on;
+};
+
 &usdhc1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_wifi>;