[PATCH v3 13/22] ARM: dts: BCM5301X: R8500: add nvram node
Rosen Penev
rosenp at gmail.com
Fri Nov 20 16:25:53 PST 2026
Add it and assign its et2macaddr cell to gmac2, so the MAC address
doesn't have to be set from userspace.
The nvram partition follows the 512 KiB boot partition and is 1.5 MiB,
as on the other Netgear Northstar boards.
gmac2 connects to switch port 8, the switch's IMP port, which the next
patch makes the only CPU port.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
.../boot/dts/broadcom/bcm47094-netgear-r8500.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts b/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts
index 76d562610654..d312afdb750f 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts
@@ -22,6 +22,15 @@ memory at 0 {
<0x88000000 0x18000000>;
};
+ nvram at 1c080000 {
+ compatible = "brcm,nvram";
+ reg = <0x1c080000 0x180000>;
+
+ et2macaddr: et2macaddr {
+ #nvmem-cell-cells = <1>;
+ };
+ };
+
leds {
compatible = "gpio-leds";
@@ -94,3 +103,8 @@ button-rfkill {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ nvmem-cells = <&et2macaddr 0>;
+ nvmem-cell-names = "mac-address";
+};
--
2.56.1
More information about the linux-arm-kernel
mailing list