ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / MIWIFI-NANO.dts
index b8a325d4f4744409cdb39c38c68526ac1ffc1563..b08715678cce8499b0fcb92afe7fccbe3e233c93 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
        model = "MiWiFi Nano";
 
+       aliases {
+               led-status = &led_blue;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status_blue {
+               led_blue: status_blue {
                        label = "miwifi-nano:blue:status";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };