ramips: fix TP-Link RE200 v3/v4 LEDs

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.

Reported-by: Richard Fröhning <misanthropos@gmx.de>
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>
This commit is contained in:
Sungbo Eo 2022-02-20 10:20:35 +09:00 committed by Hauke Mehrtens
parent 41691ce9ac
commit 02aa7a2bb9
5 changed files with 54 additions and 11 deletions

View 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>;
};

View 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>;
};

View 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>;
};

View File

@ -54,7 +54,6 @@
led_power: power {
label = "green:power";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
wifi2g_green {
@ -68,16 +67,6 @@
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>;
};
};
};

View 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>;
};