ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / VR500.dts
index c3a6e1c4c79086126f64b6a44c3723668e1ca71d..832c61f58a80d4e7967ddeb0d5c5f50fd2c32cee 100644 (file)
@@ -2,12 +2,17 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
        compatible = "planex,vr500", "mediatek,mt7621-soc";
        model = "Planex VR500";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -20,9 +25,9 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "vr500:green:power";
-                       gpios = <&gpio1 13 1>;
+                       gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -34,7 +39,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };