diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-25 14:56:34 -0700 |
|---|---|---|
| committer | Florian Fainelli <florian.fainelli@broadcom.com> | 2026-09-03 14:16:13 -0700 |
| commit | 3de96d039f45402bb03cfe0efcc290b8d07c384e (patch) | |
| tree | 2c628744113bde6e4164a88fa37ce05c528e93cc | |
| parent | 8fc1b8ec68b98609b9665bde17f8ee99130179d4 (diff) | |
| download | linux-next-3de96d039f45402bb03cfe0efcc290b8d07c384e.tar.gz linux-next-3de96d039f45402bb03cfe0efcc290b8d07c384e.zip | |
ARM: dts: BCM5301X: R8000 add NVRAM with MAC address for WAN port
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 <rosenp@gmail.com>
Link: https://lore.kernel.org/r/20260725215634.9181-1-rosenp@gmail.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
| -rw-r--r-- | arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ <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@4 { label = "wan"; + + nvmem-cells = <&et2macaddr 1>; + nvmem-cell-names = "mac-address"; }; port@5 { |
