ramips: Fix GB-PC1 cpuclock again
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MLW221.dts
index 670a36aadb3675e5c5894582d71141993b69ffda..f4a715247904c42e419012ed7f4f8acf79552ad0 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "mlw221", "ralink,mt7620n-soc";
+       compatible = "kingston,mlw221", "ralink,mt7620n-soc";
        model = "Kingston MLW221";
 
        gpio-leds {
 
                system {
                        label = "mlw221:blue:system";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "mlw221:blue:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                system {
                        label = "system";
-                       gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
@@ -60,7 +63,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "s25fl129p1";
                spi-max-frequency = <10000000>;
 
                partition@0 {