Thread (2 messages) 2 messages, 2 authors, 7h ago
HOTtoday

[PATCH] ARM: dts: BCM5301X: R8000 add NVRAM with MAC address for WAN port

From: Rosen Penev <hidden>
Date: 2026-07-25 21:56:38
Also in: linux-devicetree, lkml
Subsystem: broadcom bcm5301x arm architecture, the rest · Maintainers: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki, Linus Torvalds

The R8000 stores the WAN MAC address at a fixed offset in NVRAM.
Define the NVRAM region and attach nvmem-cells to the WAN port
so the MAC is assigned automatically by the DSA framework.

Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <redacted>
---
 arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts
index e85693fba16a..a4b135d37659 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts
@@ -36,6 +36,15 @@ memory@0 {
 		      <0x88000000 0x08000000>;
 	};
 
+	nvram@1c080000 {
+		compatible = "brcm,nvram";
+		reg = <0x1c080000 0x180000>;
+
+		et2macaddr: et2macaddr {
+			#nvmem-cell-cells = <1>;
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -211,6 +220,9 @@ port@3 {
 
 		port@4 {
 			label = "wan";
+
+			nvmem-cells = <&et2macaddr 1>;
+			nvmem-cell-names = "mac-address";
 		};
 
 		port@5 {
-- 
2.55.0

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help