ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MLWG2.dts
index 58fce43b4fe58b1f613db49dc20fe783423cf2a3..4566de38b16ed3f0e3fae7c33d788fb0db4cb868 100644 (file)
@@ -9,10 +9,14 @@
        compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
        model = "Kingston MLWG2";
 
+       aliases {
+               led-status = &led_system;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
-               system {
+               led_system: system {
                        label = "mlwg2:blue:system";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };