[openwrt/openwrt] ipq806x: ap3935: Use rgmii-id mode for LAN1

LEDE Commits lede-commits at lists.infradead.org
Thu Jun 27 08:12:00 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/bf0602f9c8afaf1110e79be4f1370bf63aaf3623

commit bf0602f9c8afaf1110e79be4f1370bf63aaf3623
Author: Bryan Berg <bdb at north-eastham.org>
AuthorDate: Sat May 18 16:29:28 2024 -0700

    ipq806x: ap3935: Use rgmii-id mode for LAN1
    
    Fix issue with LAN1 interface on ap3935 devices, where the LAN
    1interface won't come up after boot unless the bootloader has
    initialized the network stack. Use of `fixed-link` in the prior code
    kept the driver from clobbering PHY settings, but now that the driver
    supports rgmii-id phy-mode, we can just use that.
    
    Signed-off-by: Bryan Berg <bdb at north-eastham.org>
    Link: https://github.com/openwrt/openwrt/pull/13629
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 .../arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts | 25 ++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts b/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts
index ee5ed8cb9e..9219e34a92 100644
--- a/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts
+++ b/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8068-ap3935.dts
@@ -139,6 +139,21 @@
 			bias-pull-up;
 		};
 	};
+
+	rgmii0_pins: rgmii0_pins {
+		mux {
+			pins = "gpio2", "gpio66";
+			drive-strength = <8>;
+			bias-disable;
+		};
+
+		tx {
+			pins = "gpio53", "gpio64";
+			drive-strength = <2>;
+			bias-pull-down;
+			input-enable;
+		};
+	};
 };
 
 &gsbi2 {
@@ -316,16 +331,14 @@
 	qcom,id = <0>;
 	mdiobus = <&mdio0>;
 
-	phy-mode = "rgmii";
+	pinctrl-0 = <&rgmii0_pins>;
+	pinctrl-names = "default";
+
+	phy-mode = "rgmii-id";
 	phy-handle = <&phy1>;
 
 	nvmem-cells = <&ethaddr 0>;
 	nvmem-cell-names = "mac-address";
-
-	fixed-link {
-		speed = <1000>;
-		full-duplex;
-	};
 };
 
 &gmac2 {




More information about the lede-commits mailing list