diff mbox series

[OpenWrt-Devel,4/4] ath79: enable QCA955x SGMII workaround

Message ID 20190411155945.28600-4-mail@david-bauer.net
State Accepted
Delegated to: David Bauer
Headers show
Series [OpenWrt-Devel,1/4] ath79: fix QCA955x GMAC register size | expand

Commit Message

David Bauer April 11, 2019, 3:59 p.m. UTC
Enable the QCA955x SGMII workaround for all devices which sport the
AR8033 + QCA955x combination which is known to show the link-stuck
symptoms.

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi     | 6 ++++++
 target/linux/ath79/dts/qca9558_ocedo_ursus.dts         | 6 ++++++
 target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts | 6 ++++++
 3 files changed, 18 insertions(+)
diff mbox series

Patch

diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi
index 9937186b1e..e2d1b7cc94 100644
--- a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi
+++ b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi
@@ -131,6 +131,7 @@ 
 &mdio1 {
 	phy1: ethernet-phy@1 {
 		reg = <1>;
+		at803x-override-sgmii-link-check;
 	};
 };
 
@@ -139,6 +140,11 @@ 
 	mtd-mac-address-increment = <1>;
 	phy-handle = <&phy1>;
 	pll-data = <0x03000101 0x00000101 0x00001313>;
+	qca955x-sgmii-fixup;
+
+	gmac-config {
+		device = <&gmac>;
+	};
 };
 
 &wmac {
diff --git a/target/linux/ath79/dts/qca9558_ocedo_ursus.dts b/target/linux/ath79/dts/qca9558_ocedo_ursus.dts
index 1a92da3946..53bfa51fd2 100644
--- a/target/linux/ath79/dts/qca9558_ocedo_ursus.dts
+++ b/target/linux/ath79/dts/qca9558_ocedo_ursus.dts
@@ -119,6 +119,7 @@ 
 
 	phy2: ethernet-phy@2 {
 		reg = <2>;
+		at803x-override-sgmii-link-check;
 	};
 };
 
@@ -144,4 +145,9 @@ 
 	mtd-mac-address = <&art 0x12>;
 	phy-handle = <&phy2>;
 	pll-data = <0x3000101 0x101 0x1313>;
+	qca955x-sgmii-fixup;
+
+	gmac-config {
+		device = <&gmac>;
+	};
 };
diff --git a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
index 1e3cf40f71..d05e844d63 100644
--- a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
+++ b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
@@ -146,6 +146,7 @@ 
 	phy1: ethernet-phy@1 {
 		reg = <1>;
 		phy-mode = "sgmii";
+		at803x-override-sgmii-link-check;
 	};
 };
 
@@ -165,4 +166,9 @@ 
 
 	phy-handle = <&phy1>;
 	phy-mode = "sgmii";
+	qca955x-sgmii-fixup;
+
+	gmac-config {
+		device = <&gmac>;
+	};
 };