ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WE1226.dts
index 5ece7567f354d4e033db5cb5e15210451808a61e..eb74a1e9240dd59b609d0334478428d5799fbf8c 100644 (file)
@@ -8,6 +8,10 @@
        compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc";
        model = "Zbtlink ZBT-WE1226";
 
+       aliases {
+               led-status = &led_wlan;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -48,7 +52,7 @@
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
-               wlan {
+               led_wlan: wlan {
                        label = "zbt-we1226:green:wlan";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };