[openwrt/openwrt] ath79: fix link for long cables with OCEDO Raccoon

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 26 11:09:23 PDT 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/cd17ca7d6f305ff93ee5436b883bc5ad3767e3a7

commit cd17ca7d6f305ff93ee5436b883bc5ad3767e3a7
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Fri Mar 25 22:58:34 2022 +0100

    ath79: fix link for long cables with OCEDO Raccoon
    
    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 at david-bauer.net>
    (cherry picked from commit 4551bfd91f31be5987727c77e58333fa06ba3acd)
---
 target/linux/ath79/dts/ar9344_ocedo_raccoon.dts | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts b/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts
index e7ef02054e..64805eed43 100644
--- a/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts
+++ b/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts
@@ -150,16 +150,27 @@
 
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
+		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-id";
 	phy-handle = <&phy0>;
+
+	gmac-config {
+		device = <&gmac>;
+		rgmii-gmac0 = <1>;
+		rxdv-delay = <3>;
+		rxd-delay = <3>;
+		txen-delay = <0>;
+		txd-delay = <0>;
+	};
 };




More information about the lede-commits mailing list