arm64: dts: imx8mp: Switch WiFI enable signal to mmc-pwrseq-simple on i.MX8MP DHCOM SoM
authorMarek Vasut <marex@denx.de>
Thu, 31 Aug 2023 18:20:19 +0000 (20:20 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 12 Oct 2023 10:18:55 +0000 (18:18 +0800)
The reset-gpio is connected to WL_REG_EN signal of the WiFi MAC, the
mmc-pwrseq-simple driver is better suited to operate this signal as
it is tied to the slot instead of the MAC, and it can enable the MAC
before the brcmfmac driver binds to it. Make use of the MMC power
sequencer.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi

index 1644b56c3953d651d02f277c0c6b4cc7c6f218fd..df43741d04bb96f1690e6e5d8a595d61d1ba531d 100644 (file)
                regulator-max-microvolt = <3300000>;
                regulator-name = "VDD_3P3V_AWO";
        };
+
+       wlan_pwrseq: wifi-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &A53_0 {
        pinctrl-0 = <&pinctrl_usdhc1>;
        pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
        pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
+       mmc-pwrseq = <&wlan_pwrseq>;
        vmmc-supply = <&buck4>;
        bus-width = <4>;
        non-removable;
                 * connected to the SoC, but can be connected on to
                 * SoC pin on the carrier board.
                 */
-               reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
        };
 };