[PATCH v4 3/3] arm64: dts: qcom: Add eFuse nvmem cells for Ethernet MAC addresses

From: Hongmei Xu

Date: Wed Dec 02 2026 - 06:37:05 EST


Add a QFPROM eFuse node to expose the Ethernet MAC addresses for
EMAC0 and EMAC1 as nvmem cells.

The MAC addresses are stored in OEM_CONFIG8/9 registers starting at
0x360d4320:
bytes 0-4 shared by both EMACs
byte 5 last octet of EMAC0 MAC address
byte 6 last octet of EMAC1 MAC address

EMAC0 reads six consecutive bytes (0-5), requiring no byte selection.
EMAC1 shares bytes 0-4 but takes byte 6 as its last octet, skipping
byte 5. A byte-mask of 0x5F (0b01011111) is used to select bytes
0,1,2,3,4,6 and compact them into the six-byte output buffer.

Only 8 bytes are mapped to avoid overlapping with adjacent QFPROM
devices in the register space.

Signed-off-by: Hongmei Xu <hongmei.xu@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/nord.dtsi | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
index fdbe290350dd..cfe1f39648fb 100644
--- a/arch/arm64/boot/dts/qcom/nord.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord.dtsi
@@ -1471,6 +1471,28 @@ rng: rng@10c3000 {
reg = <0x0 0x010c3000 0x0 0x1000>;
};

+ efuse: efuse@360d4320 {
+ compatible = "qcom,nord-qfprom", "qcom,qfprom";
+ reg = <0x0 0x360d4320 0x0 0x8>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ mac_addr0: mac-addr0@0 {
+ reg = <0x0 0x6>;
+ };
+
+ mac_addr1: mac-addr1@0,1 {
+ reg = <0x0 0x6>;
+ byte-mask = <0x5f>;
+ };
+ };
+ };
+
ufs_mem_hc: ufshc@1d44000 {
compatible = "qcom,nord-ufshc",
"qcom,ufshc",

--
2.34.1