ramips: add dwr-512 jboot firmware configuration
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / M3.dts
index 9b6ed89142a5255f125a1ac4b97d3cccb2ecf4d3..5f52e6064ff58f1d26e61424f8d97757c5a3aaa6 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "M3", "ralink,rt5350-soc";
+       compatible = "poray,m3", "ralink,rt5350-soc";
        model = "Poray M3";
 
        gpio-leds {
@@ -11,7 +14,7 @@
 
                status {
                        label = "m3:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 17 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
@@ -44,7 +47,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "w25q32";
                spi-max-frequency = <10000000>;
 
                partition@0 {