[PATCH 04/11] arm64: dts: imx93: add nvmem property for fec1

Peng Fan (OSS) peng.fan at oss.nxp.com
Tue Apr 16 08:26:40 PDT 2024


From: Peng Fan <peng.fan at nxp.com>

Add nvmem property for fec1 to get mac address.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 1c5e2049a37a..b09014b9a719 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -1067,6 +1067,8 @@ fec: ethernet at 42890000 {
 				fsl,num-tx-queues = <3>;
 				fsl,num-rx-queues = <3>;
 				fsl,stop-mode = <&wakeupmix_gpr 0x0c 1>;
+				nvmem-cells = <&eth_mac1>;
+				nvmem-cell-names = "mac-address";
 				status = "disabled";
 			};
 
@@ -1176,6 +1178,11 @@ ocotp: efuse at 47510000 {
 			reg = <0x47510000 0x10000>;
 			#address-cells = <1>;
 			#size-cells = <1>;
+
+			eth_mac1: mac-address at 4ec {
+				reg = <0x4ec 0x6>;
+			};
+
 		};
 
 		s4muap: mailbox at 47520000 {

-- 
2.37.1




More information about the linux-arm-kernel mailing list