ath79 : TPE-R1100 / GL.iNet GL-AR150 LED Fixup
authorRISCi_ATOM <bob@bobcall.me>
Fri, 27 Nov 2020 21:19:46 +0000 (16:19 -0500)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 27 Nov 2020 21:19:46 +0000 (16:19 -0500)
Fixes issues with LEDs on the TPE-R1100 / GL-AR150 and simliar boards.

Based upon upstream : e36bdd5dc5bf48fc0102394736c24a075959bc53

target/linux/ath79/base-files/etc/board.d/01_leds
target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
target/linux/ath79/dts/ar9330_thinkpenguin_tpe-r1100.dts

index d6b41e2f1a95a0f2fb4ab68690b8fa57cd444852..3de8959b486b495e7e9aab66c531cd958f598757 100755 (executable)
@@ -74,10 +74,6 @@ etactica,eg200)
        ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
        ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore"
        ;;
-glinet,gl-ar150)
-       ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
-       ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
-       ;;
 glinet,gl-ar300m-nand|\
 glinet,gl-ar300m-nor)
        ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
@@ -104,10 +100,6 @@ pcs,cr3000)
        ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
        ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02"
        ;;
-thinkpenguin,tpe-r1100)
-        ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
-        ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
-        ;;
 thinkpenguin,tpe-r1200-nand|\
 thinkpenguin,tpe-r1200-nor)
         ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
index 76f6e8023666704b779afecdb5276255d4f88515..c5f559bb36f1cb5ccb4a1a824913b2e52b27c7f4 100644 (file)
 
        aliases {
                serial0 = &uart;
-               led-boot = &wlan;
-               led-failsafe = &wlan;
-               led-upgrade = &wlan;
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
        };
 
        leds {
                compatible = "gpio-leds";
 
-               wlan: wlan {
+               wlan {
                        label = "gl-ar150:orange:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
-               lan {
-                       label = "gl-ar150:green:lan";
+               configurable {
+                       label = "gl-ar150:green:configurable";
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
-               wan {
-                       label = "gl-ar150:green:wan";
+               led_power: power {
+                       label = "gl-ar150:green:power";
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
                };
        };
 
index a1ab1b75f4aeb5cf200cd1754cb76c21be24833b..45a7ab9a5b822c77b884c7355910393679f0969a 100644 (file)
 
        aliases {
                serial0 = &uart;
-               led-boot = &wlan;
-               led-failsafe = &wlan;
-               led-upgrade = &wlan;
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
        };
 
        leds {
                compatible = "gpio-leds";
 
-               wlan: wlan {
+               wlan {
                        label = "gl-ar150:orange:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
-               lan {
-                       label = "gl-ar150:green:lan";
+               configurable {
+                       label = "gl-ar150:green:configurable";
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
 
-               wan {
-                       label = "gl-ar150:green:wan";
+               led_power: power {
+                       label = "gl-ar150:green:power";
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
                };
        };