ramips: add system LED indicators for TP-Link C20i
authorDavid Bauer <mail@david-bauer.net>
Thu, 2 Jan 2020 18:10:50 +0000 (19:10 +0100)
committerDavid Bauer <mail@david-bauer.net>
Thu, 2 Jan 2020 20:41:58 +0000 (21:41 +0100)
Use the WPS LED to indicate system status like it is done for the
TP-Link Archer C2 v1 and many other boards.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts

index 694528d749374a028f797aab3fa886080e868331..a363af96cdeeb6d12c78adabdf3648790b481481 100644 (file)
@@ -7,6 +7,10 @@
        model = "TP-Link Archer C20i";
 
        aliases {
+               led-boot = &led_wps;
+               led-failsafe = &led_wps;
+               led-running = &led_wps;
+               led-upgrade = &led_wps;
                label-mac-device = &ethernet;
        };
 
@@ -25,7 +29,7 @@
                        linux,default-trigger = "usbport";
                };
 
-               wps {
+               led_wps: wps {
                        label = "archer-c20i:blue:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };