[PATCH 05/17] ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram
Rosen Penev
rosenp at gmail.com
Tue Nov 17 21:47:46 PST 2026
Describe the et0macaddr nvram cell and assign it to gmac2, so the MAC
address doesn't have to be set from userspace.
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>
---
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
index 03d5546a147c..f8dd08cc7cca 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
@@ -24,6 +24,10 @@ memory at 0 {
nvram at 1c080000 {
compatible = "brcm,nvram";
reg = <0x1c080000 0x180000>;
+
+ et0macaddr: et0macaddr {
+ #nvmem-cell-cells = <1>;
+ };
};
gpio-keys {
@@ -50,3 +54,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