arm64: dts: allwinner: h6: tanix: Add MMC1 node
authorJernej Skrabec <jernej.skrabec@gmail.com>
Wed, 1 Dec 2021 18:21:17 +0000 (19:21 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 3 Dec 2021 09:55:13 +0000 (10:55 +0100)
Both, Tanix TX6 and Tanix TX6 mini, have SDIO wifi module, albeit
different. However, driver can be autoprobed via SDIO ID.

Add MMC1 node, so kernel can discover wifi module and load driver for
it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi

index 166b6a7..edb71e4 100644 (file)
                #sound-dai-cells = <0>;
                compatible = "linux,spdif-dit";
        };
+
+       wifi_pwrseq: wifi-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               clocks = <&rtc 1>;
+               clock-names = "ext_clock";
+               reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
+       };
 };
 
 &cpu0 {
        status = "okay";
 };
 
+&mmc1 {
+       vmmc-supply = <&reg_vcc3v3>;
+       vqmmc-supply = <&reg_vcc1v8>;
+       mmc-pwrseq = <&wifi_pwrseq>;
+       bus-width = <4>;
+       non-removable;
+       status = "okay";
+};
+
 &mmc2 {
        vmmc-supply = <&reg_vcc3v3>;
        vqmmc-supply = <&reg_vcc1v8>;