ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ASL26555-8M.dts
index 0dbc1dd337366c1950c7c3d558bcf1168ce0be58..66a67fdbf9bd9cfcfc988f0b7e8fbc7cff1408df 100644 (file)
@@ -2,9 +2,12 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ASL26555", "ralink,rt3050-soc";
-       model = "Alpha ASL26555";
+       compatible = "alphanetworks,asl26555-8m", "alphanetworks,asl26555", "ralink,rt3050-soc";
+       model = "Alpha ASL26555 (8M)";
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 0>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 12 0>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
 
                eth {
                        label = "asl26555:green:eth";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                wan-red {
                        label = "asl26555:red:wan";
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                };
 
                wan-green {
                        label = "asl26555:green:wan";
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
                        label = "asl26555:green:wlan";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                power-green {
                        label = "asl26555:green:power";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                power-red {
                        label = "asl26555:red:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                3g-green {
                        label = "asl26555:green:3g";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                3g-red {
                        label = "asl26555:red:3g";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 };
@@ -82,7 +85,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "s25sl064p";
                spi-max-frequency = <10000000>;
 
                partition@0 {