From: David Bauer Date: Mon, 27 Apr 2020 10:18:12 +0000 (+0200) Subject: ath79: enable SGMII workaround for affected boards X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=654eec5a2d5d7c70385020e6a4c6ee12ae24f7ba;p=openwrt%2Fstaging%2Fnoltari.git 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 --- diff --git a/target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi b/target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi index 34b47b15f7..13e0b3371a 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 25e0fee3bd..fc15dd4416 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 b790ed11a2..d629f5b6ba 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; };