ramips: fix GB-PC1 and GB-PC2 LEDs
authorArınç ÜNAL <arinc.unal@arinc9.com>
Wed, 14 Sep 2022 18:30:59 +0000 (21:30 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Sep 2022 09:50:32 +0000 (11:50 +0200)
Add the missing LEDs for GB-PC2. Some of these LEDs don't exist on the
device schematics. Tests on a GB-PC2 by me and Petr proved otherwise.

Remove ethblack-green and ethblue-green LEDs for GB-PC1. They are not wired
to GPIO 3 or 4 and the wiring is currently unknown.

Set ethyellow-orange to display link state and activity of the ethyellow
interface for GB-PC2.

Link: https://github.com/ngiger/GnuBee_Docs/blob/master/GB-PCx/Documents/GB-PC2_V1.1_schematic.pdf
Tested-by: Petr Louda <petr.louda@outlook.cz>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
target/linux/ramips/mt7621/base-files/etc/board.d/01_leds

index 29f9f09ee587a573fa90da21f3e65ab91676b114..809df6dde334eec253418e589de955f911c3febf 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               ethblack_act {
-                       label = "green:ethblack_act";
-                       gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
-               };
-
-               ethblue_act {
-                       label = "green:ethblue_act";
-                       gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
-               };
-
                power {
                        label = "green:power";
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
index cd72ea1d62801bb46ece9b6ef564d345576e5e9b..6199511cff8359b924cdcc9ea28a8c36d80a8f46 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               ethblack_act {
-                       label = "green:ethblack_act";
+               ethblack-green {
+                       label = "green:ethblack";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
-               ethblue_act {
-                       label = "green:ethblue_act";
+               ethblue-green {
+                       label = "green:ethblue";
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
+               ethyellow-green {
+                       label = "green:ethyellow";
+                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+               };
+
+               ethyellow-orange {
+                       label = "orange:ethyellow";
+                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+               };
+
                power {
                        label = "green:power";
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
index 0ac67e967043a03c17d5bbdc2eafd09b98456af5..5ffa4ecb3a0bc6404fdca61201a766cca6773127 100644 (file)
@@ -67,10 +67,8 @@ dlink,dir-882-a1|\
 dlink,dir-882-r1)
        ucidef_set_led_netdev "wan" "wan" "green:net" "wan"
        ;;
-gnubee,gb-pc1|\
 gnubee,gb-pc2)
-       ucidef_set_led_netdev "ethblack_act" "ethblack act" "green:ethblack_act" "ethblack" "tx rx"
-       ucidef_set_led_netdev "ethblue_act" "ethblue act" "green:ethblue_act" "ethblue" "tx rx"
+       ucidef_set_led_netdev "ethyellow" "ethyellow" "orange:ethyellow" "ethyellow" "link tx rx"
        ;;
 linksys,e5600)
        ucidef_set_led_netdev "wan" "wan link" "blue:wan" "wan" "link"