aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic/base-files
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2021-01-11 03:34:33 -0500
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-02-08 16:34:18 +0100
commitf5f01bcacd7838889cb83defca94af34e64a9141 (patch)
tree44e9038eb3d1262b94bdb6dfbe85b0914c4789d2 /target/linux/ath79/generic/base-files
parent88079bd6165b5cf9f3225768da2ab265427f0004 (diff)
downloadupstream-f5f01bcacd7838889cb83defca94af34e64a9141.tar.gz
upstream-f5f01bcacd7838889cb83defca94af34e64a9141.tar.bz2
upstream-f5f01bcacd7838889cb83defca94af34e64a9141.zip
ath79: use internal switch for EAP300 v2
Have the port use GMAC1 with internal switch which fixes the issue of the ethernet LED not functioning The LED is triggered by the internal switch, not a GPIO. The GPIO for the ethernet LED was added in ath79 as it was defined in the ar71xx target but it was not functioning in ath79 for a previously unknown reason. It is unknown why that GPIO was defined as an LED in ar71xx. Signed-off-by: Michael Pratt <mcpratt@pm.me> [drop unrelated changes: model property and SPI max frequency] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/generic/base-files')
-rwxr-xr-xtarget/linux/ath79/generic/base-files/etc/board.d/01_leds1
-rwxr-xr-xtarget/linux/ath79/generic/base-files/etc/board.d/02_network5
2 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
index 169df8b285..f7d8ec0f85 100755
--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
@@ -156,7 +156,6 @@ telco,t1)
ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
;;
comfast,cf-wr752ac-v1|\
-engenius,eap300-v2|\
enterasys,ws-ap3705i|\
openmesh,mr900-v1|\
openmesh,mr900-v2|\
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index ab00d798b1..4380a380fc 100755
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -33,7 +33,6 @@ ath79_setup_interfaces()
dlink,dap-3320-a1|\
dlink,dir-505|\
engenius,eap1200h|\
- engenius,eap300-v2|\
engenius,eap600|\
engenius,ecb1200|\
engenius,ecb1750|\
@@ -237,6 +236,10 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "1:wan" "2:lan:3" "3:lan:2"
;;
+ engenius,eap300-v2)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:lan"
+ ;;
engenius,ens202ext-v1)
ucidef_set_interface_lan "eth1"
ucidef_add_switch "switch0" \