aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-09 11:52:26 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-11 01:51:34 +0200
commite6d4744f9ad0f76ddf1cded75355e240e81be41e (patch)
tree9f68a39121883dcbea735ff468ece495729da027 /target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
parent78e8360878d716c75fc98d6f93bdd61f156caa28 (diff)
downloadupstream-e6d4744f9ad0f76ddf1cded75355e240e81be41e.tar.gz
upstream-e6d4744f9ad0f76ddf1cded75355e240e81be41e.tar.bz2
upstream-e6d4744f9ad0f76ddf1cded75355e240e81be41e.zip
ramips: fix WAN LED for D-Link DIR-810L/TRENDnet TEW-810DR
The WAN LED on DIR-810L was actually blinking on LAN1 port activity. This has already been improved for the TEW-810DR, where the GPIO has been set up explicitly rather than having it controlled by the switch. This patch also applies this setup to the DIR-810L. In addition, the trigger in 01_leds is set up with ucidef_set_led_switch for both devices now, so state changes should be displayed correctly as well. Reported-by: Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net> [DIR-810L] Tested-by: J. Scott Heppler <shep971@centurylink.net> [TEW-810DR]
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts')
-rw-r--r--target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts16
1 files changed, 7 insertions, 9 deletions
diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
index 63952d3e64..9dd9825433 100644
--- a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
+++ b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
@@ -22,11 +22,16 @@
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
- wan {
+ wan_orange {
label = "dir-810l:orange:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
+ wan_green {
+ label = "dir-810l:green:wan";
+ gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
+ };
+
power_orange {
label = "dir-810l:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
@@ -36,14 +41,7 @@
&state_default {
gpio {
- groups = "i2c", "uartf";
+ groups = "i2c", "uartf", "ephy";
function = "gpio";
};
};
-
-&gsw {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_pins>;
-
- mediatek,port4 = "ephy";
-};