ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DIR-810L.dts
index 9e9c16d2fbf9f36c34930b10ec5401539fb790a1..7a1736d5632ceefc6ada6c695d2b1f219143d571 100644 (file)
@@ -2,6 +2,9 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
        model = "D-Link DIR-810L";
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
-                       linux,code = <0x100>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_0>;
                };
        };
 
 
                power {
                        label = "dir-810l:green:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                wan {
                        label = "dir-810l:orange:wan";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
                status {
                        label = "dir-810l:orange:power";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 };
@@ -52,8 +55,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {