ramips: add support for Vonets VAR11N-300
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RUT5XX.dts
index d84126307b58e3193fba3750946f2c5abb484f88..e80b64d4ec996cd5c7a0afa01d0413595595b6de 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "RUT5XX", "ralink,rt3050-soc";
+       compatible = "teltonika,rut5xx", "ralink,rt3050-soc";
        model = "Teltonika RUT5XX";
 
        gpio-leds {
@@ -11,7 +14,7 @@
 
                status {
                        label = "rut5xx:green:status";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -23,8 +26,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -36,8 +39,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "n25q128a13";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {