aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-03-15 00:01:38 +0100
committerDavid Bauer <mail@david-bauer.net>2020-03-15 00:08:14 +0100
commitfcd247d02b9ec00b0af846d642d50e8916d41074 (patch)
treef1c6e9423d7fef63e7899835369eb33f5ca68adf /target/linux
parentb052b62efc3d49f61eb12d48b16851a48cfb928c (diff)
downloadupstream-fcd247d02b9ec00b0af846d642d50e8916d41074.tar.gz
upstream-fcd247d02b9ec00b0af846d642d50e8916d41074.tar.bz2
upstream-fcd247d02b9ec00b0af846d642d50e8916d41074.zip
ath79: add correct phy-mode for QCA9563 boards
The TP-Link RE450 as well as the UniFi AC series missed the phy-mode property. Because of this, the incorrect MII phy-mode from the root dtsi was used. With Kernel 5.4, this leads to problems when used with a AR8033 PHY. The bootloader seems to leave the fiber pages selected. As there's not switch to copper pages happening in at803x_config_init due to the incorrect phy-mode, the new at803x_read_status will interpret the status of the SGMII side as the status of the copper side. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ath79/dts/qca9563_tplink_re450-v2.dts1
-rw-r--r--target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi1
2 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts b/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts
index 28fefe224d..16bc26c978 100644
--- a/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts
@@ -180,6 +180,7 @@
&eth0 {
status = "okay";
+ phy-mode = "sgmii";
phy-handle = <&phy4>;
mtd-mac-address = <&info 0x8>;
diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi
index 8248e060c5..b9a5b55cd6 100644
--- a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi
@@ -22,5 +22,6 @@
status = "okay";
mtd-mac-address = <&art 0x0>;
+ phy-mode = "sgmii";
phy-handle = <&phy4>;
};