[PATCH v2 11/22] ARM: dts: BCM5301X: EA6500 v2: add nvram node
Rosen Penev
rosenp at gmail.com
Thu Nov 19 00:54:41 PST 2026
Add it and assign its et0macaddr cell to gmac2, so the MAC address
doesn't have to be set from userspace.
The nvram partition layout is the same as on the EA6300 v1.
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>
---
.../dts/broadcom/bcm4708-linksys-ea6500-v2.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts
index ad246f9a734a..d9e4f84058e3 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts
@@ -23,6 +23,15 @@ memory at 0 {
<0x88000000 0x08000000>;
};
+ nvram at 1c080000 {
+ compatible = "brcm,nvram";
+ reg = <0x1c080000 0x180000>;
+
+ et0macaddr: et0macaddr {
+ #nvmem-cell-cells = <1>;
+ };
+ };
+
gpio-keys {
compatible = "gpio-keys";
@@ -47,3 +56,8 @@ &usb3_phy {
&usb3 {
vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
};
+
+&gmac2 {
+ nvmem-cells = <&et0macaddr 0>;
+ nvmem-cell-names = "mac-address";
+};
--
2.56.1
More information about the linux-arm-kernel
mailing list