ramips: update device tree source files
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / M2M.dts
index 961ad2d659bb3ebc8534440fc8642d1729b8ea7b..d828f5a74768802da9014faeb58b1894296d4c36 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "M2M", "ralink,rt5350-soc";
+       compatible = "intenso,memory2move", "ralink,rt5350-soc";
        model = "Intenso Memory 2 Move";
 
        chosen {
 
                wifi {
                        label = "m2m:blue:wifi";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "m2m:green:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                power {
                        label = "power";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <0x116>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -51,8 +54,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "mx25l6405d";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {