ipq40xx: Convert Google Wifi to DSA, reenable
[openwrt/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-wifi.dts
index 643449f8e4c8946cd623e6e1d7d4384543068add..65f593330558e3c6bad0a0e4b4e2d11603aad008 100644 (file)
        model = "Google WiFi (Gale)";
        compatible = "google,wifi", "google,gale-v2", "qcom,ipq4019";
 
+       aliases {
+               label-mac-device = &gmac0;
+       };
+
        chosen {
                /*
                 * rootwait: in case we're booting from slow/async USB storage.
                device_type = "memory";
                reg = <0x80000000 0x20000000>; /* 512MB */
        };
+
+       soc {
+               edma@c080000 {
+                       /*
+                        * Factory bootloader (depthcharge) will fail to boot
+                        * if this exact path (soc/edma@c080000/gmac0) doesn't
+                        * exist.
+                        */
+                       gmac0: gmac0 {
+                       };
+
+                       /*
+                        * Factory bootloader (depthcharge) will fail to boot
+                        * if this exact path (soc/edma@c080000/gmac1) doesn't
+                        * exist.
+                        */
+                       gmac1 {
+                       };
+               };
+       };
 };
 
 &tlmm {
        status = "okay";
 };
 
+&gmac {
+       status = "okay";
+};
+
 &mdio {
        status = "okay";
        pinctrl-0 = <&mdio_pins>;
        non-removable;
 };
 
+&switch {
+       status = "okay";
+};
+
+&swport4 {
+       status = "okay";
+
+       label = "lan";
+};
+
+&swport5 {
+       status = "okay";
+};
+
 &usb2 {
        status = "okay";
 };