From 654eec5a2d5d7c70385020e6a4c6ee12ae24f7ba Mon Sep 17 00:00:00 2001 From: David Bauer Date: Mon, 27 Apr 2020 12:18:12 +0200 Subject: [PATCH] ath79: enable SGMII workaround for affected boards These boards suffer from a sudden inability to establish a link on the SGMII. Enable the workaround to fix the link when it dies. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi | 3 +++ target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi | 3 +++ target/linux/ath79/dts/qca9558_ocedo_ursus.dts | 2 ++ 3 files changed, 8 insertions(+) diff --git a/target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi b/target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi index 34b47b15f7d..13e0b3371a6 100644 --- a/target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi +++ b/target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi @@ -78,6 +78,8 @@ phy-handle = <&phy0>; pll-data = <0x3000000 0x101 0x1313>; + qca955x-sgmii-fixup; + gmac-config { device = <&gmac>; ge0-sgmii = <0>; @@ -89,5 +91,6 @@ phy0: ethernet-phy@0 { reg = <0>; + at803x-override-sgmii-link-check; }; }; diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi index 25e0fee3bdf..fc15dd44163 100644 --- a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi @@ -132,6 +132,7 @@ &mdio1 { phy1: ethernet-phy@1 { reg = <1>; + at803x-override-sgmii-link-check; }; }; @@ -141,6 +142,8 @@ phy-handle = <&phy1>; pll-data = <0x03000101 0x00000101 0x00001313>; + + qca955x-sgmii-fixup; }; &wmac { diff --git a/target/linux/ath79/dts/qca9558_ocedo_ursus.dts b/target/linux/ath79/dts/qca9558_ocedo_ursus.dts index b790ed11a28..d629f5b6baf 100644 --- a/target/linux/ath79/dts/qca9558_ocedo_ursus.dts +++ b/target/linux/ath79/dts/qca9558_ocedo_ursus.dts @@ -117,6 +117,7 @@ phy2: ethernet-phy@2 { reg = <2>; + at803x-override-sgmii-link-check; }; }; @@ -144,4 +145,5 @@ mtd-mac-address = <&art 0x12>; phy-handle = <&phy2>; pll-data = <0x3000101 0x101 0x1313>; + qca955x-sgmii-fixup; }; -- 2.30.2