ath79: fix link for long cables with OCEDO Raccoon
authorDavid Bauer <mail@david-bauer.net>
Fri, 25 Mar 2022 21:58:34 +0000 (22:58 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 27 Mar 2022 21:43:27 +0000 (23:43 +0200)
The OCEDO Raccoon had significant packet-loss with cables longer than 50
meter. Disabling EEE restores normal operation.

Also change the ethernet config to reduce loss on sub-1G links.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 4551bfd91f31be5987727c77e58333fa06ba3acd)

target/linux/ath79/dts/ar9344_ocedo_raccoon.dts

index a1a912383f620f538b6e05217e9ae18e4a2677b6..96d2cf438a016d06b254b55d35159ee09b0fe3fe 100644 (file)
        phy0: ethernet-phy@0 {
                reg = <0>;
                phy-mode = "rgmii";
+               eee-broken-100tx;
+               eee-broken-1000t;
        };
 };
 
 &eth0 {
        status = "okay";
 
-       pll-data = <0x06000000 0x00000101 0x00001313>;
+       pll-data = <0x02000000 0x00000101 0x00001313>;
 
        mtd-mac-address = <&art 0x0>;
 
        phy-mode = "rgmii";
        phy-handle = <&phy0>;
+
+       gmac-config {
+               device = <&gmac>;
+               rgmii-gmac0 = <1>;
+               rxdv-delay = <3>;
+               rxd-delay = <3>;
+               txen-delay = <0>;
+               txd-delay = <0>;
+       };
 };