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

ARM: BCM53016: MR32: get mac-address from nvmem

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>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Christian Lamparter and committed by
Florian Fainelli
477ffdbd 6abc4ca5

+11
+11
arch/arm/boot/dts/bcm53016-meraki-mr32.dts
··· 110 110 reg = <0x50>; 111 111 pagesize = <32>; 112 112 read-only; 113 + #address-cells = <1>; 114 + #size-cells = <1>; 115 + 116 + mac_address: mac-address@66 { 117 + reg = <0x66 0x6>; 118 + }; 113 119 }; 114 120 }; 115 121 }; ··· 137 131 * enable-gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>; 138 132 *}; 139 133 */ 134 + }; 135 + 136 + &gmac0 { 137 + nvmem-cell-names = "mac-address"; 138 + nvmem-cells = <&mac_address>; 140 139 }; 141 140 142 141 &gmac1 {