ramips: fix dtc warnings
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / DIR-810L.dts
index 9621183e07c685052eccbc2e9339275a3eb77e3c..5f4b9da75a94e7107149e9b8e1377d8ede6b7052 100644 (file)
@@ -2,27 +2,30 @@
 
 #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";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power_green: 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 {
+               power2 {
                        label = "dir-810l:orange:power";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 };