ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AWUSFREE1.dts
index c0ffbb279aaecbfaab2b8696d7a202947a513e3d..b8c57f94742702f679bedbd4633f6303116ef052 100644 (file)
        compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc";
        model = "ALFA Network AWUSFREE1";
 
+       aliases {
+               led-status = &led_system;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -61,7 +65,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               system {
+               led_system: system {
                        label = "awusfree1:orange:system";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };