ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WL-330N.dts
index f497b242364fba298d91b34599e05e458886488a..efcc60ab64395b033302fa6f508a8b29256cb245 100644 (file)
@@ -2,40 +2,45 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "WL-330N", "ralink,rt3050-soc";
+       compatible = "asus,wl-330n", "ralink,rt3050-soc";
        model = "Asus WL-330N";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
                link {
                        label = "wl-330n:blue:link";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wl-330n:blue:power";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -47,8 +52,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "mx25l3205d";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {