aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2022-02-20 10:20:35 +0900
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-07 12:33:42 +0100
commit02aa7a2bb9b6bdc8033d30c97f5b49534206a37c (patch)
tree1c5eb208cc30cf1132a96017d95d1e73330f3f92 /target/linux/ramips
parent41691ce9ac10b3aaaf7c05e6e5b55b626f66949b (diff)
downloadupstream-02aa7a2bb9b6bdc8033d30c97f5b49534206a37c.tar.gz
upstream-02aa7a2bb9b6bdc8033d30c97f5b49534206a37c.tar.bz2
upstream-02aa7a2bb9b6bdc8033d30c97f5b49534206a37c.zip
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>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts16
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts11
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re200-v4.dts11
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re200.dtsi11
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts16
5 files changed, 54 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts
index a7e5e5110d..9f398ae0ff 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts
@@ -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>;
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts
index 2c4e09ee2e..7bb60c2a08 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts
@@ -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>;
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v4.dts
index 83f1f3acca..9cde6a1f74 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re200-v4.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v4.dts
@@ -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>;
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
index d6b06ba2fc..1a8b26b1cc 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
+++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
@@ -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>;
- };
};
};
diff --git a/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts
index 82d385a24d..aa2db57481 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts
@@ -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>;
};