ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iptime_a6ns-m.dts
index 92e2d9908cadcc4e54897e9abee58b684f55dad5..be8b101b78664003241c290ce6010271d752e4f1 100644 (file)
@@ -15,7 +15,7 @@
                led-failsafe = &led_cpu;
                led-running = &led_cpu;
                led-upgrade = &led_cpu;
-               label-mac-device = &ethernet;
+               label-mac-device = &gmac0;
        };
 
        chosen {
 
                usb {
                        label = "a6ns-m:blue:usb";
-                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&xhci_ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wlan5g {
                        label = "a6ns-m:blue:wlan5g";
-                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0radio";
                };
 
                wlan2g {
                        label = "a6ns-m:blue:wlan2g";
-                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1radio";
                };
 
                led_cpu: cpu {
                        label = "a6ns-m:blue:cpu";
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
 &state_default {
        gpio {
-               ralink,group = "i2c", "uart3", "jtag", "wdt";
-               ralink,function = "gpio";
+               groups = "i2c", "uart3", "jtag", "wdt";
+               function = "gpio";
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&uboot 0x1fc20>;
 };
 
+&switch0 {
+       ports {
+               port@0 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&uboot 0x1fc40>;
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan1";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan3";
+               };
+
+               port@4 {
+                       status = "okay";
+                       label = "lan4";
+               };
+       };
+};
+
 &pcie {
        status = "okay";
 };