ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WRTNODE2.dtsi
index 0242314dfb2f4413d9e5cd9060294682a16ceec1..4253c57a34156b812686f48298cd1850f4c25d89 100644 (file)
@@ -1,6 +1,11 @@
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
+       compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -13,8 +18,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 5 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -73,7 +78,7 @@
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
-       ralink,port-map = "llllw";
+       mediatek,portmap = "llllw";
 };
 
 &sdhci {