ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / NW718.dts
index 60922555d678326df3d12677cf25ad73da89d8b0..26bdc0b72fe95a667e845aa5d6bb89f030f51736 100644 (file)
@@ -2,46 +2,49 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "NW718", "ralink,rt3050-soc";
+       compatible = "netcore,nw718", "ralink,rt3050-soc";
        model = "Netcore NW718";
 
+       aliases {
+               led-status = &led_cpu;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
-               cpu {
+               led_cpu: cpu {
                        label = "nw718:amber:cpu";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "nw718:amber:usb";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "nw718:amber:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 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>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };