Running conversation over on the gl-inet forums with @jeff
Based on the following commit... ar150 is flipping interfaces compared to ar71xx machine file
This can cause a bit of a problem as ar150 comes up with 192.168.1.1/24, and if the host is also 192.168.0,1/24, we're causing an arp conflict.
Author: Chuanhong Guo <redacted>
AuthorDate: Fri May 10 23:28:47 2019 +0800
Commit: Petr Štetiar <redacted>
CommitDate: Wed Jun 5 10:12:31 2019 +0200
ath79: dts: drop "simple-mfd" for gmacs in SoC dtsi
With a proper probe deferring for ag71xx we don't need to explicitly
probe mdio1 before gmac0.
Drop all "simple-mfd" in SoC dtsi so that gmac orders can be the same
This makes eth0/eth1 order the same as those in ar71xx, which means
we don't need a migration script for this anymore and we can merge
incorrectly split gmac/mdio driver back together.
Signed-off-by: Chuanhong Guo <redacted>
this commit flipped ar150 from WAN to LAN across eth0 and eth1 for this target, and may involve other ath79 targets as well.
with ar150 - WAN gets mapped GE1-MDIO, and GE1 MAC, and LAN gets mapped to the GE0 MAC, which is inverse to what is expected.
Device Tree is always fun, and I'd be up for the challenge, but day job keeps me very busy...
At least as I understand it (I don't have an AR150 in hand), due to the architecture of the chip, "eth0" and "eth1" vs. "LAN" and "WAN" are not transparently interchangeable.
In this specific case, using the MII interface is "physically" tied to the WAN-labeled port. The GMII interface is tied to the LAN port. This makes sense as, for example, two LAN clients each might be pumping close to 100 Mbps through wireless, requiring more than the 100 Mbps that the MII interface can provide.
I resolved a similar issue with the GL-AR300M-Lite earlier in commit eba0db95b5
go figure. that thing cannot serve 100mbps to a single wlan client, how the hell could it aggregate 200Mbps to 2 clients? it would melt down, got on fire and exploded.
even if there was a chance for such performance there is nowhere to route data at those speeds except to the CPU which again is useless