ramips: Use dts alias based status led
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / ArcherC2-v1.dts
index 6af75e39cec3a35001d67d2ab7a68189b688ba7d..2387dbcf8d44f0996118c5c436dbbda1f2527ca1 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tplink,c2-v1", "ralink,mt7620a-soc";
        model = "TP-Link Archer C2 v1";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -35,7 +39,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "c2-v1:green:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };