[openwrt/openwrt] ipq40xx: fritzrepeater-1200: fix MDIO and PHY probing

LEDE Commits lede-commits at lists.infradead.org
Thu May 2 13:09:23 PDT 2024


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

commit ecb3859cc92d2e670847934c74255a4453915beb
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Thu May 2 11:37:34 2024 +0200

    ipq40xx: fritzrepeater-1200: fix MDIO and PHY probing
    
    AVM FRITZ!Repeater 1200 does not use QCA807x PHY at all and thus it
    disables all of the individual PHY nodes, however this is not enough
    anymore since the conversion to PHY package.
    
    Now its now enough to disable the PHY-s in the package alone, but the PHY
    package node itself must also be disabled.
    
    Fixes: 1b931c33a28e ("ipq40xx: adapt to new Upstream QCA807x PHY driver")
    Fixes: #15355
    Link: https://github.com/openwrt/openwrt/pull/15365
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 .../dts/qcom/qcom-ipq4019-fritzrepeater-1200.dts   | 24 +++++++++++++---------
 ...com-ipq4019-add-QCA8075-PHY-Package-nodes.patch |  2 +-
 2 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-fritzrepeater-1200.dts b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-fritzrepeater-1200.dts
index 7d683cdf65..10f21a5947 100644
--- a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-fritzrepeater-1200.dts
+++ b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-fritzrepeater-1200.dts
@@ -23,16 +23,6 @@
 			status = "okay";
 		};
 
-		mdio at 90000 {
-			status = "okay";
-			pinctrl-0 = <&mdio_pins>;
-			pinctrl-names = "default";
-
-			ethphy: ethernet-phy at 0 {
-				reg = <0x0>;
-			};
-		};
-
 		tcsr at 1949000 {
 			compatible = "qcom,tcsr";
 			reg = <0x1949000 0x100>;
@@ -255,6 +245,16 @@
 	qcom,ath10k-calibration-variant = "AVM-FRITZRepeater-1200";
 };
 
+&mdio {
+	status = "okay";
+	pinctrl-0 = <&mdio_pins>;
+	pinctrl-names = "default";
+
+	ethphy: ethernet-phy at 0 {
+		reg = <0x0>;
+	};
+};
+
 &gmac {
 	status = "okay";
 };
@@ -273,6 +273,10 @@
 	phy-mode = "rgmii-id";
 };
 
+&qca807x {
+	status = "disabled";
+};
+
 &ethphy1 {
 	status = "disabled";
 };
diff --git a/target/linux/ipq40xx/patches-6.6/709-ARM-dts-qcom-ipq4019-add-QCA8075-PHY-Package-nodes.patch b/target/linux/ipq40xx/patches-6.6/709-ARM-dts-qcom-ipq4019-add-QCA8075-PHY-Package-nodes.patch
index 6a37cc1f5e..50c8e64534 100644
--- a/target/linux/ipq40xx/patches-6.6/709-ARM-dts-qcom-ipq4019-add-QCA8075-PHY-Package-nodes.patch
+++ b/target/linux/ipq40xx/patches-6.6/709-ARM-dts-qcom-ipq4019-add-QCA8075-PHY-Package-nodes.patch
@@ -21,7 +21,7 @@ Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
  			status = "disabled";
  
 -			ethphy0: ethernet-phy at 0 {
-+			ethernet-phy-package at 0 {
++			qca807x: ethernet-phy-package at 0 {
 +				#address-cells = <1>;
 +				#size-cells = <0>;
 +				compatible = "qcom,qca8075-package";




More information about the lede-commits mailing list