arm64: dts: imx8-apalis: set wifi regulator to always-on
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Thu, 23 Nov 2023 10:48:12 +0000 (11:48 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Dec 2023 05:24:26 +0000 (13:24 +0800)
Make sure that the wifi regulator is always on. The wifi driver itself
puts the wifi module into suspend mode. If we cut the power the driver
will crash when resuming from suspend.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Fixes: ad0de4ceb706 ("arm64: dts: freescale: add initial apalis imx8 aka quadmax module support")
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi

index 5ce5fbf2b38e4a0d2e15802ce9638e6e28ebba7e..f69b0c17560aee381f5384928b3d6071f3f141bd 100644 (file)
                pinctrl-0 = <&pinctrl_wifi_pdn>;
                gpio = <&lsio_gpio1 28 GPIO_ACTIVE_HIGH>;
                enable-active-high;
+               regulator-always-on;
                regulator-name = "wifi_pwrdn_fake_regulator";
                regulator-settling-time-us = <100>;
-
-               regulator-state-mem {
-                       regulator-off-in-suspend;
-               };
        };
 
        reg_pcie_switch: regulator-pcie-switch {