ath79: Restore GL.iNet GL-AR300M-Lite first-boot connectivity

The relationship between GMAC0 and GMAC1 and the kernel devices
eth0 and eth1 was reversed for many ath79 devices by commit 8dde11d521
ath79: dts: drop "simple-mfd" for gmacs in SoC dtsi

The GL-AR300M-Lite is a single-port device, with the "LAN" port of the
GL-AR300M board unpopulated and its sole port now referenced as eth1,
as a result of commit 8dde11d521. The device was unreachable on
first boot or fresh config.

By changing &eth1 (GMAC1) to an MFD, GMAC0 is able to associate with
the phy and is known by the kernel as "eth0".

Thanks to Chuanhong Guo for the suggestion of "simple-mfd"

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
master
Jeff Kletsky 2019-09-28 10:39:58 -07:00 committed by Christian Lamparter
parent 474b69475d
commit eba0db95b5
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@
model = "GL.iNet GL-AR300M-Lite";
};
// GL-AR300M-Lite has different LED colors than the non-Lite version
// "Disable" unpopulated GMAC1
&eth1 {
compatible = "syscon", "simple-mfd";
};
&led_status {
label = "gl-ar300m-lite:red:status";