arm64: dts: imx8mq-librem5-devkit: Drop power-supply
authorGuido Günther <agx@sigxcpu.org>
Thu, 10 Aug 2023 17:59:51 +0000 (19:59 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 12 Aug 2023 02:00:05 +0000 (10:00 +0800)
It's not a valid binding. Instead move the sdio_rst line to the power
sequence and use w_disable1 as the vmmc-supply bringing it more in line
with other SDIO M2 cards.

Resolves following warning:

arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dtb: mmc@30b50000: Unevaluated properties are not allowed ('power-supply' was unexpected)
        from schema $id: http://devicetree.org/schemas/mmc/fsl-imx-esdhc.yaml#

Reported-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts

index be9ef5c271dfe446d3b15a0802b495749f31a149..8055a2c23035498f6a855a654e9379d60f95b3bd 100644 (file)
                regulator-always-on;
        };
 
-       reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
-               compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&pinctrl_usdhc2_pwr>;
-               regulator-name = "VSD_3V3";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-               gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-               regulator-always-on;
-       };
-
        wwan_codec: sound-wwan-codec {
                compatible = "option,gtm601";
                #sound-dai-cells = <0>;
                enable-active-high;
                regulator-always-on;
        };
+
+       wifi_pwr_seq: pwrseq {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_usdhc2_rst>;
+               compatible = "mmc-pwrseq-simple";
+               reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &A53_0 {
                >;
        };
 
-       pinctrl_usdhc2_pwr: usdhc2pwrgrp {
+       pinctrl_usdhc2_rst: usdhc2rstgrp {
                fsl,pins = <
                        MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19     0x41
                >;
        pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
        pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
        bus-width = <4>;
-       vmmc-supply = <&reg_usdhc2_vmmc>;
-       power-supply = <&wifi_pwr_en>;
+       vmmc-supply = <&wifi_pwr_en>;
+       mmc-pwrseq = <&wifi_pwr_seq>;
        broken-cd;
        disable-wp;
        cap-sdio-irq;