ath79: mikrotik: fix network setup for lhg-hb platform
authorRoger Pueyo Centelles <roger.pueyo@guifi.net>
Fri, 28 Aug 2020 11:51:48 +0000 (13:51 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 31 Aug 2020 15:41:21 +0000 (17:41 +0200)
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@guifi.net>
target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi

index 86249398c9ba163e65465707cfaa6ab99fd9e916..f54e757c62732b0c24c19539f944181a29b6985d 100644 (file)
        };
 };
 
-&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>;