ramips: backport TP-Link RE200 v3/v4 LED fix
authorSungbo Eo <mans0n@gorani.run>
Tue, 8 Nov 2022 12:31:02 +0000 (13:31 +0100)
committerDavid Bauer <mail@david-bauer.net>
Tue, 8 Nov 2022 13:15:51 +0000 (14:15 +0100)
This backports a commit which fixes LEDs vor the RE200 like this:

Set power LED to gpio 43 instead of 44 for v3 and v4.
Set red wifi LED to gpio 40 (was assigned to `red:wifi5g`).

Tested by the author of the initial v3 and v4 commit.

Tested-by: Richard Fröhning <misanthropos@gmx.de>
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
(cherry picked from commit 02aa7a2bb9b6bdc8033d30c97f5b49534206a37c)

target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts
target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts
target/linux/ramips/dts/mt7628an_tplink_re200-v4.dts
target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts

index a7e5e5110d4a4e34443458fa733647d8c3c7f305..9f398ae0ff6dd9fc477a90f92091f74b1c36180d 100644 (file)
@@ -5,4 +5,20 @@
 / {
        compatible = "tplink,re200-v2", "mediatek,mt7628an-soc";
        model = "TP-Link RE200 v2";
+
+       leds {
+               wifi2g_red {
+                       label = "red:wifi2g";
+                       gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
+               };
+
+               wifi5g_red {
+                       label = "red:wifi5g";
+                       gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&led_power {
+       gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
 };
index 2c4e09ee2ea91795933281f5487e7ee4969a5ed8..7bb60c2a084b24ed2d18e4681f69d72c33e8a06d 100644 (file)
@@ -5,4 +5,15 @@
 / {
        compatible = "tplink,re200-v3", "mediatek,mt7628an-soc";
        model = "TP-Link RE200 v3";
+
+       leds {
+               wifi_red {
+                       label = "red:wifi";
+                       gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&led_power {
+       gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
 };
index 83f1f3accadb97345549f375cf747514dc5fa419..9cde6a1f7482c2951b6edef960d437d4358b8b26 100644 (file)
@@ -5,4 +5,15 @@
 / {
        compatible = "tplink,re200-v4", "mediatek,mt7628an-soc";
        model = "TP-Link RE200 v4";
+
+       leds {
+               wifi_red {
+                       label = "red:wifi";
+                       gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&led_power {
+       gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
 };
index d6b06ba2fcb1a81cf0337649ae0ebe9d233f40f4..1a8b26b1cce3e8218ee75f3df7dec994e584dab6 100644 (file)
@@ -54,7 +54,6 @@
 
                led_power: power {
                        label = "green:power";
-                       gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
 
                wifi2g_green {
                        gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
-
-               wifi2g_red {
-                       label = "red:wifi2g";
-                       gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
-               };
-
-               wifi5g_red {
-                       label = "red:wifi5g";
-                       gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
-               };
        };
 };
 
index 82d385a24d78e3af55bc7ec41c2ee3ae99f44531..aa2db574819b3ddda5b04b6371272f6163c9c8fb 100644 (file)
@@ -5,4 +5,20 @@
 / {
        compatible = "tplink,re220-v2", "mediatek,mt7628an-soc";
        model = "TP-Link RE220 v2";
+
+       leds {
+               wifi2g_red {
+                       label = "red:wifi2g";
+                       gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
+               };
+
+               wifi5g_red {
+                       label = "red:wifi5g";
+                       gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&led_power {
+       gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
 };