treewide: convert gpio-export to platform driver
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WRTNODE2.dtsi
index 78e8d3c5fcca083906f869d7c3301ef78efdfe43..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>;
                };
        };
 };
@@ -57,9 +62,8 @@
        spidev@1 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spidev";
+               compatible = "linux,spidev";
                reg = <1>;
-               linux,modalias = "spidev", "spidev";
                spi-max-frequency = <10000000>;
        };
 };
@@ -74,7 +78,7 @@
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
-       ralink,port-map = "llllw";
+       mediatek,portmap = "llllw";
 };
 
 &sdhci {