ramips: Use dts alias based status led
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / WN-GX300GR.dts
index aa89f055550989c100ee3dbcc80b3a44a199a5ef..44cdc4f0a4da1dc9e64c2fdc03f14e72ca42f46f 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
        model = "I-O DATA WN-GX300GR";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x4000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wn-gx300gr:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };