aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorMaxim Anisimov <maxim.anisimov.ua@gmail.com>2019-12-18 09:48:38 +0300
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-09 17:31:53 +0100
commit3a538db60abfc50b47ce1774f66d489700a50c00 (patch)
tree78a63409f7127385e8d69837a252382f20e2e7d1 /target/linux/ramips
parent6a2855212096d2c486961a0841b037bae4b75de7 (diff)
downloadupstream-3a538db60abfc50b47ce1774f66d489700a50c00.tar.gz
upstream-3a538db60abfc50b47ce1774f66d489700a50c00.tar.bz2
upstream-3a538db60abfc50b47ce1774f66d489700a50c00.zip
ramips: fix leds for TP-Link Archer C20 v4
- add "gpio" group for wan_orange led - use tpt triggers for wifi led indication - add wifi 5 GHz led support Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com> [slight commit message adjustment] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts4
-rwxr-xr-xtarget/linux/ramips/mt76x8/base-files/etc/board.d/01_leds1
2 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
index 502c271ae2..8e3df9c676 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
@@ -42,11 +42,13 @@
wlan5g {
label = "archer-c20-v4:green:wlan5g";
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy1tpt";
};
wlan2g {
label = "archer-c20-v4:green:wlan2g";
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
};
wps {
@@ -82,7 +84,7 @@
&state_default {
gpio {
- ralink,group = "i2s", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt";
+ ralink,group = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt";
ralink,function = "gpio";
};
};
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
index f410c47eac..06b78eb195 100755
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
@@ -55,7 +55,6 @@ tama,w06)
tplink,archer-c20-v4)
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
- ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" "wlan0"
;;
tplink,archer-c50-v3|\
tplink,archer-c50-v4)