File configure-eqos.patch of Package imx93-devicetree

From f38d58108ce764a10d1fbf24f4711aa080e2b5a8 Mon Sep 17 00:00:00 2001
From: dewit <dewit@inventeers.nl>
Date: Fri, 29 Aug 2025 09:48:18 +0200
Subject: [PATCH] Enable and reconfigure eqos as per AN14149

---
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 14 +++++++-------
 arch/arm64/boot/dts/freescale/imx93.dtsi           |  3 ++-
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 53113b872cf0..f9ed6f081b47 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -228,9 +228,9 @@ &eqos {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&pinctrl_eqos>;
 	pinctrl-1 = <&pinctrl_eqos_sleep>;
-	phy-mode = "rgmii-id";
-	phy-handle = <&ethphy2>;
-	status = "disabled";
+	phy-mode = "rmii";
+	phy-handle = <&ethphy1>;
+	status = "okay";
 	local-mac-address = [ 55 44 33 22 11 00 ];
 
 	mdio {
@@ -239,7 +239,7 @@ mdio {
 		#size-cells = <0>;
 		clock-frequency = <5000000>;
 
-		ethphy2: ethernet-phy@1 {
+		ethphy1: ethernet-phy@1 {
 			compatible = "ti,dp83822";
 			reg = <1>;
 			reset-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
@@ -254,7 +254,7 @@ &fec {
 	pinctrl-0 = <&pinctrl_fec>;
 	pinctrl-1 = <&pinctrl_fec_sleep>;
 	phy-mode = "rmii";
-	phy-handle = <&ethphy1>;
+	phy-handle = <&ethphy2>;
 	fsl,magic-packet;
 	status = "okay";
 	local-mac-address = [ 00 11 22 33 44 55 ];
@@ -262,9 +262,9 @@ &fec {
 	mdio {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		clock-frequency = <2500000>;
+		clock-frequency = <5000000>;
 
-		ethphy1: ethernet-phy@1 {
+		ethphy2: ethernet-phy@1 {
 			compatible = "ti,dp83822";
 			reg = <1>;
 			eee-broken-1000t;
diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 653ae232e7b0..5e0ea5bc4d83 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -1159,8 +1159,9 @@ eqos: ethernet@428a0000 {
 						  <&clk IMX93_CLK_ENET>;
 				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>,
 							 <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>;
-				assigned-clock-rates = <100000000>, <250000000>;
+				assigned-clock-rates = <100000000>, <100000000>;
 				intf_mode = <&wakeupmix_gpr 0x28>;
+				enet_clk_sel = <&wakeupmix_gpr 0x2C>;
 				snps,clk-csr = <6>;
 				nvmem-cells = <&eth_mac2>;
 				nvmem-cell-names = "mac-address";
-- 
2.51.0.windows.1

openSUSE Build Service is sponsored by