ramips: update device tree source files
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / M4-4M.dts
index 0502714c3b0e8b031fd6b29ba276a83f033e53a9..1a7154e57c524b07ffb0a3b3773736fdb28f42d7 100644 (file)
@@ -2,16 +2,19 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "M4", "ralink,rt5350-soc";
-       model = "Poray M4";
+       compatible = "poray,m4-4m", "poray,m4", "ralink,rt5350-soc";
+       model = "Poray M4 (4M)";
 
        gpio-leds {
                compatible = "gpio-leds";
 
                status {
                        label = "m4:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 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>;
                };
        };
 };
@@ -37,7 +40,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "pm25lq032";
                spi-max-frequency = <10000000>;
 
                partition@0 {