[openwrt/openwrt] ath79: mikrotik: fix network setup for lhg-hb platform

LEDE Commits lede-commits at lists.infradead.org
Mon Aug 31 11:41:39 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/781d4bfb397cdd12ee0151eb66c577f470e3377d

commit 781d4bfb397cdd12ee0151eb66c577f470e3377d
Author: Roger Pueyo Centelles <roger.pueyo at guifi.net>
AuthorDate: Fri Aug 28 13:51:48 2020 +0200

    ath79: mikrotik: fix network setup for lhg-hb platform
    
    This network setup for MikroTik devices based on the LHG-HB platform
    avoids using the integrated switch and connects the single Ethernet
    port directly. This way, link speed (10/100 Mbps) is properly repor-
    ted by eth0.
    
    Fixes: FS#3309
    
    Signed-off-by: Roger Pueyo Centelles <roger.pueyo at guifi.net>
---
 .../linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi
index 86249398c9..f54e757c62 100644
--- a/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi
+++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi
@@ -67,12 +67,21 @@
 	};
 };
 
-&eth1 {
+&eth0 {
+	status = "okay";
+
+	phy-handle = <&swphy0>;
+
 	gmac-config {
 		device = <&gmac>;
+		switch-phy-swap = <1>;
 	};
 };
 
+&eth1 {
+	compatible = "syscon", "simple-mfd";
+};
+
 &pinmux {
 	led_wan_pin: pinmux_led_wan_pin {
 		pinctrl-single,bits = <0x4 0x0 0xff>;



More information about the lede-commits mailing list