ramips: fix WAN LED for D-Link DIR-810L/TRENDnet TEW-810DR
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 9 Jun 2020 09:52:26 +0000 (11:52 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 10 Jun 2020 23:51:34 +0000 (01:51 +0200)
commite6d4744f9ad0f76ddf1cded75355e240e81be41e
tree9f68a39121883dcbea735ff468ece495729da027
parent78e8360878d716c75fc98d6f93bdd61f156caa28
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]
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds