File revert-fec-clock-config.patch of Package imx93-devicetree

From fad614aa50a74e74666e661bd808a0b951addfee Mon Sep 17 00:00:00 2001
From: dewit <dewit@inventeers.nl>
Date: Tue, 2 Sep 2025 11:21:03 +0200
Subject: [PATCH] Revert clock configuration from AN14149 for FEC to test with
 crystal oscilator placed

---
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 11 +++++------
 arch/arm64/boot/dts/freescale/imx93.dtsi           |  3 +--
 2 files changed, 6 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 e19dc0e720bd..f52a0d208482 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -229,8 +229,8 @@ &eqos {
 	pinctrl-0 = <&pinctrl_eqos>;
 	pinctrl-1 = <&pinctrl_eqos_sleep>;
 	phy-mode = "rmii";
-	phy-handle = <&ethphy1>;
-	status = "okay";
+	phy-handle = <&ethphy2>;
+	status = "disabled";
 	local-mac-address = [ 55 44 33 22 11 00 ];
 
 	mdio {
@@ -239,7 +239,7 @@ mdio {
 		#size-cells = <0>;
 		clock-frequency = <5000000>;
 
-		ethphy1: ethernet-phy@1 {
+		ethphy2: ethernet-phy@2 {
 			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 = <&ethphy2>;
+	phy-handle = <&ethphy1>;
 	fsl,magic-packet;
 	status = "okay";
 	local-mac-address = [ 00 11 22 33 44 55 ];
@@ -264,7 +264,7 @@ mdio {
 		#size-cells = <0>;
 		clock-frequency = <5000000>;
 
-		ethphy2: ethernet-phy@2 {
+		ethphy1: ethernet-phy@1 {
 			compatible = "ti,dp83822";
 			reg = <1>;
 			eee-broken-1000t;
@@ -654,7 +654,6 @@ MX93_PAD_ENET2_TD2__ENET1_RGMII_TD2		0x57e
 			MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3		0x57e
 			MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC		0x58e
 			MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL	0x57e
-			MX93_PAD_ENET2_TD2__ENET1_TX_CLK    0x4000057e
 			MX93_PAD_ENET2_RD3__GPIO4_IO27  0x31e 
 		>;
 	};
diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index f1041cadfd82..f9e0cad9b2f2 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -1133,11 +1133,10 @@ fec: ethernet@42890000 {
 				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>,
 							 <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>,
 							 <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;
-				assigned-clock-rates = <100000000>, <50000000>, <50000000>;
+				assigned-clock-rates = <100000000>, <250000000>, <50000000>;
 				fsl,num-tx-queues = <3>;
 				fsl,num-rx-queues = <3>;
 				fsl,stop-mode = <&wakeupmix_gpr 0x0c 1>;
-				enet_clk_sel = <&wakeupmix_gpr 0x2C>;
 				nvmem-cells = <&eth_mac1>;
 				nvmem-cell-names = "mac-address";
 				status = "disabled";
-- 
2.51.0.windows.1

openSUSE Build Service is sponsored by