ipq806x: Fix gmac1 (WAN) on Netgear D7800
authorPeter Cardoe <peter@cardoe.co.uk>
Fri, 27 Nov 2020 16:37:11 +0000 (16:37 +0000)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 17:59:10 +0000 (18:59 +0100)
The WAN port on Netgear D7800 is unable to connect to an ISP when the
link to the modem is running at less than 1GB.

This patch fixes the issue by removing the phy-handle definition
and replacing it with a fixed-link definition

The WAN port is then able to connect to a modem via a link running at 100Mbs or 10Mbs

Fixes: FS#3086
Signed-off-by: Peter Cardoe <peter@cardoe.co.uk>
target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts

index 7fb871be787598a4f2443e85d55de55bf1fcfa09..229596b082f1dac082b275cd68b098cade68997e 100644 (file)
 &gmac1 {
        status = "okay";
        phy-mode = "rgmii";
-       phy-handle = <&phy4>;
        qcom,id = <1>;
 
        pinctrl-0 = <&rgmii2_pins>;
        pinctrl-names = "default";
 
        mtd-mac-address = <&art 6>;
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };
 
 &gmac2 {