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>
This commit is contained in:
Christian Lamparter
2021-09-18 19:29:31 +02:00
committed by Florian Fainelli
parent 6abc4ca5a2
commit 477ffdbdf3

View File

@@ -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";
};