Message ID | fa8271d02ef74a687f365cebe5c55ec846963ab7.1631986106.git.chunkeey@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v1,1/2] ARM: BCM53016: Specify switch ports for Meraki MR32 | expand |
On Sat, 18 Sep 2021 19:29:31 +0200, Christian Lamparter <chunkeey@gmail.com> wrote: > The MAC-Address of the MR32's sole ethernet port is > located in offset 0x66 of the attached AT24C64 eeprom. > > Signed-off-by: Christian Lamparter <chunkeey@gmail.com> > --- Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks! -- Florian
diff --git a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts index 1dbfa05b6501..c58e75dde7b3 100644 --- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts +++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts @@ -110,6 +110,12 @@ eeprom: eeprom@50 { reg = <0x50>; pagesize = <32>; read-only; + #address-cells = <1>; + #size-cells = <1>; + + mac_address: mac-address@66 { + reg = <0x66 0x6>; + }; }; }; }; @@ -133,6 +139,11 @@ &uart2 { */ }; +&gmac0 { + nvmem-cell-names = "mac-address"; + nvmem-cells = <&mac_address>; +}; + &gmac1 { status = "disabled"; };
The MAC-Address of the MR32's sole ethernet port is located in offset 0x66 of the attached AT24C64 eeprom. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> --- arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)