File 0009-imx93-FRDM-partially-configure-and-disable-ethernet-interfaces.patch of Package uboot-imx
From 002af67c31a97119c5017ca8d310351e05fe14da Mon Sep 17 00:00:00 2001
From: dewit <dewit@inventeers.nl>
Date: Mon, 15 Sep 2025 16:14:38 +0200
Subject: [PATCH] Create
0009-imx93-FRDM-partially-configure-and-disable-ethernet-interfaces.patch
Merge branch 'device/dev-ethernet' into local/release
(cherry picked from commit 5ed6bc380d12cc2268b3a99c8314b0dded1591a8)
---
arch/arm/dts/imx93-11x11-frdm-u-boot.dtsi | 12 ---
arch/arm/dts/imx93-11x11-frdm.dts | 92 +++++++++++++----------
arch/arm/dts/imx93.dtsi | 6 +-
3 files changed, 57 insertions(+), 53 deletions(-)
diff --git a/arch/arm/dts/imx93-11x11-frdm-u-boot.dtsi b/arch/arm/dts/imx93-11x11-frdm-u-boot.dtsi
index b9b5fb6b5b4..2ed8f2a2b9d 100644
--- a/arch/arm/dts/imx93-11x11-frdm-u-boot.dtsi
+++ b/arch/arm/dts/imx93-11x11-frdm-u-boot.dtsi
@@ -165,18 +165,6 @@
bootph-pre-ram;
};
-// &fec {
-// phy-reset-gpios = <&pcal6524 16 GPIO_ACTIVE_LOW>;
-// phy-reset-duration = <15>;
-// phy-reset-post-delay = <100>;
-// };
-
-// ðphy1 {
-// reset-gpios = <&pcal6524 15 GPIO_ACTIVE_LOW>;
-// reset-assert-us = <15000>;
-// reset-deassert-us = <100000>;
-// };
-
&usbotg1 {
status = "okay";
extcon = <&ptn5110>;
diff --git a/arch/arm/dts/imx93-11x11-frdm.dts b/arch/arm/dts/imx93-11x11-frdm.dts
index e8dc5dca78e..52a00848456 100644
--- a/arch/arm/dts/imx93-11x11-frdm.dts
+++ b/arch/arm/dts/imx93-11x11-frdm.dts
@@ -106,45 +106,55 @@
status = "okay";
};
-// &eqos {
-// pinctrl-names = "default";
-// pinctrl-0 = <&pinctrl_eqos>;
-// phy-mode = "rgmii-id";
-// phy-handle = <ðphy1>;
-// status = "okay";
-
-// mdio {
-// compatible = "snps,dwmac-mdio";
-// #address-cells = <1>;
-// #size-cells = <0>;
-// clock-frequency = <5000000>;
-
-// ethphy1: ethernet-phy@1 {
-// reg = <1>;
-// eee-broken-1000t;
-// };
-// };
-// };
-
-// &fec {
-// pinctrl-names = "default";
-// pinctrl-0 = <&pinctrl_fec>;
-// phy-mode = "rgmii-id";
-// phy-handle = <ðphy2>;
-// fsl,magic-packet;
-// status = "okay";
-
-// mdio {
-// #address-cells = <1>;
-// #size-cells = <0>;
-// clock-frequency = <5000000>;
-
-// ethphy2: ethernet-phy@2 {
-// reg = <2>;
-// eee-broken-1000t;
-// };
-// };
-// };
+&eqos {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_eqos>;
+ phy-mode = "rmii";
+ phy-handle = <ðphy1>;
+ status = "disabled";
+ local-mac-address = [ 55 44 33 22 11 00 ];
+
+ mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <5000000>;
+
+ ethphy1: ethernet-phy@1 {
+ compatible = "ti,dp83822";
+ reg = <1>;
+ eee-broken-1000t;
+ reset-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
+ reset-assert-us = <10000>;
+ reset-deassert-us = <80000>;
+ };
+ };
+};
+
+&fec {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_fec>;
+ phy-mode = "rmii";
+ phy-handle = <ðphy2>;
+ fsl,magic-packet;
+ status = "disabled";
+ local-mac-address = [ 00 11 22 33 44 55 ];
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <5000000>;
+
+ ethphy2: ethernet-phy@2 {
+ compatible = "ti,dp83822";
+ reg = <1>;
+ eee-broken-1000t;
+ reset-gpios = <&gpio4 27 GPIO_ACTIVE_LOW>;
+ reset-assert-us = <10000>;
+ reset-deassert-us = <80000>;
+ };
+ };
+};
&lcdif {
status = "okay";
@@ -436,6 +446,8 @@
MX93_PAD_ENET1_TD3__ENET_QOS_RGMII_TD3 0x57e
MX93_PAD_ENET1_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x5fe
MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x57e
+ MX93_PAD_ENET1_TD2__CCM_ENET_QOS_CLOCK_GENERATE_REF_CLK 0x4000057e
+ MX93_PAD_DAP_TMS_SWDIO__GPIO3_IO29 0x31e
>;
};
@@ -466,6 +478,8 @@
MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3 0x57e
MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC 0x5fe
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/arm/dts/imx93.dtsi b/arch/arm/dts/imx93.dtsi
index 6a513079e7d..e5800e96b31 100644
--- a/arch/arm/dts/imx93.dtsi
+++ b/arch/arm/dts/imx93.dtsi
@@ -1120,10 +1120,11 @@
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>, <250000000>, <50000000>;
+ assigned-clock-rates = <100000000>, <50000000>, <50000000>;
fsl,num-tx-queues = <3>;
fsl,num-rx-queues = <3>;
fsl,stop-mode = <&wakeupmix_gpr 0x0c 1>;
+ enet_clk_sel = <&wakeupmix_gpr 0x2C>;
status = "disabled";
};
@@ -1143,8 +1144,9 @@
<&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>, <50000000>;
intf_mode = <&wakeupmix_gpr 0x28>;
+ enet_clk_sel = <&wakeupmix_gpr 0x2C>;
snps,clk-csr = <0>;
status = "disabled";
};
--
2.51.0.windows.1