ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / DB-WRT01.dts
index 400c5ef51b4b50df4c3a4ac1291a90d491a7edbd..8c160f80f367db74a76fb986673b265522c7dcb2 100644 (file)
@@ -2,18 +2,23 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,db-wrt01", "ralink,mt7620a-soc";
        model = "Planex DB-WRT01";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "db-wrt01:orange:power";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +30,7 @@
 
                s1 {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
@@ -43,7 +48,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "mx25l6405d";
                spi-max-frequency = <10000000>;
 
                partition@0 {