ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / MAC1200RV2.dts
index f52be3c51c15b46af6779c823ca0e3dd0d2c0dfb..8c07105a5018a21b5ac81bb6d251acd1cdb73a0a 100644 (file)
@@ -2,10 +2,17 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "mercury,mac1200rv2", "mediatek,mt7628an-soc";
+       compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
        model = "Mercury MAC1200R v2";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600";
        };
@@ -17,9 +24,9 @@
 
        gpio-leds {
                compatible = "gpio-leds";
-               status {
+               led_status: status {
                        label = "mac1200rv2:green:status";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
@@ -30,9 +37,8 @@
        m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "w25q128";
+               compatible = "jedec,spi-nor";
                reg = <0 0>;
-               linux,modalias = "m25p80", "w25q128";
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;
 
@@ -73,7 +79,7 @@
 &ethernet {
        pinctrl-names = "default";
        mtd-mac-address = <&factory 0xd>;
-       ralink,port-map = "llllw";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {
@@ -88,7 +94,7 @@
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&art 0x1000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 };