ramips: change status LED of Samsung CY-SWR1100
authorSungbo Eo <mans0n@gorani.run>
Wed, 13 Nov 2019 14:47:14 +0000 (23:47 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 Nov 2019 15:05:19 +0000 (16:05 +0100)
Use power LED for status indication and free WPS LED for other uses.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts

index 7bab768fe4106b6c5f93d7a596d0ab072a59ac77..0d98a43e0b5f310fd3975edd89c6555ead53361e 100644 (file)
        model = "Samsung CY-SWR1100";
 
        aliases {
-               led-boot = &led_wps;
-               led-failsafe = &led_wps;
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
        };
 
        nor-flash@1c000000 {
@@ -88,7 +90,7 @@
        leds {
                compatible = "gpio-leds";
 
-               led_wps: wps {
+               wps {
                        label = "cy-swr1100:blue:wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
                        linux,default-trigger = "usbport";
                };
 
-               power {
+               led_power: power {
                        label = "cy-swr1100:blue:power";
                        gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                };