Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: NSP: MX6X: get mac-address from eeprom

The MAC address on the MX64/MX65 series is located on the AT24 EEPROM.
This is the same as other Meraki devices such as the MR32 [1].

[1] https://lore.kernel.org/linux-arm-kernel/fa8271d02ef74a687f365cebe5c55ec846963ab7.1631986106.git.chunkeey@gmail.com/

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Matthew Hagan and committed by
Florian Fainelli
66848aff eae8273f

+8
+8
arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi
··· 39 39 40 40 &amac2 { 41 41 status = "okay"; 42 + nvmem-cells = <&mac_address>; 43 + nvmem-cell-names = "mac-address"; 42 44 }; 43 45 44 46 &ehci0 { ··· 55 53 reg = <0x50>; 56 54 pagesize = <32>; 57 55 read-only; 56 + #address-cells = <1>; 57 + #size-cells = <1>; 58 + 59 + mac_address: mac-address@66 { 60 + reg = <0x66 0x6>; 61 + }; 58 62 }; 59 63 }; 60 64