[openwrt/openwrt] qualcommax: ipq807x: correct PHY mode for AQR

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 17 08:52:33 PST 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/70498cb3865e3ada4f1b47c55ead266c40fd4c3e

commit 70498cb3865e3ada4f1b47c55ead266c40fd4c3e
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Sat Feb 17 17:39:22 2024 +0100

    qualcommax: ipq807x: correct PHY mode for AQR
    
    Interfaces that have AQR-s attached to them are using USXGMII and not just
    the default SGMII.
    This was fine until SSDK added some sanity checking and now on Qnap 301W it
    would fail with:
    [   24.740197] nss-dp 3a001800.dp5 10g-1 (uninitialized): failed to connect to phy device
    [   24.740264] nss-dp: probe of 3a001800.dp5 failed with error -14
    
    Since this is not Qnap 301W specific lets fix it subtarget wide by
    declaring the correct PHY mode for 10G AQR-s.
    
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-haze.dts | 1 +
 .../linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts | 1 +
 .../qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-rax120v2.dts      | 1 +
 .../qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wxr-5950ax12.dts  | 2 ++
 4 files changed, 5 insertions(+)

diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-haze.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-haze.dts
index 70cc2921c7..289680d678 100644
--- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-haze.dts
+++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-haze.dts
@@ -268,6 +268,7 @@
 &dp6_syn {
 	status = "okay";
 	qcom,mactype = <1>;
+	phy-mode = "usxgmii";
 	phy-handle = <&aqr113c>;
 	label = "wan";
 };
diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts
index 5d7d84ac52..ac3077b29d 100644
--- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts
+++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts
@@ -405,6 +405,7 @@
 
 &dp6_syn {
 	status = "okay";
+	phy-mode = "usxgmii";
 	phy-handle = <&aqr113c>;
 	label = "10g";
 	nvmem-cells = <&macaddr_lan 0>;
diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-rax120v2.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-rax120v2.dts
index 5b9a45e961..0be50603ba 100644
--- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-rax120v2.dts
+++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-rax120v2.dts
@@ -274,6 +274,7 @@
 
 &dp6_syn {
 	status = "okay";
+	phy-mode = "usxgmii";
 	phy-handle = <&aqr111b0>;
 	label = "lan5";
 	nvmem-cells = <&macaddr_dp6_syn>;
diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wxr-5950ax12.dts b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wxr-5950ax12.dts
index a0631b3b71..d6411e4fa5 100644
--- a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wxr-5950ax12.dts
+++ b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-wxr-5950ax12.dts
@@ -327,6 +327,7 @@
 
 &dp5_syn {
 	status = "okay";
+	phy-mode = "usxgmii";
 	phy-handle = <&aqr113c_1>;
 	label = "wan";
 	nvmem-cells = <&macaddr_appsblenv_ethaddr>;
@@ -335,6 +336,7 @@
 
 &dp6_syn {
 	status = "okay";
+	phy-mode = "usxgmii";
 	phy-handle = <&aqr113c_2>;
 	label = "lan1";
 	nvmem-cells = <&macaddr_appsblenv_ethaddr>;




More information about the lede-commits mailing list