Commit 477ffdbd authored by Christian Lamparter's avatar Christian Lamparter Committed by Florian Fainelli

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: default avatarChristian Lamparter <chunkeey@gmail.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent 6abc4ca5
...@@ -110,6 +110,12 @@ eeprom: eeprom@50 { ...@@ -110,6 +110,12 @@ eeprom: eeprom@50 {
reg = <0x50>; reg = <0x50>;
pagesize = <32>; pagesize = <32>;
read-only; read-only;
#address-cells = <1>;
#size-cells = <1>;
mac_address: mac-address@66 {
reg = <0x66 0x6>;
};
}; };
}; };
}; };
...@@ -133,6 +139,11 @@ &uart2 { ...@@ -133,6 +139,11 @@ &uart2 {
*/ */
}; };
&gmac0 {
nvmem-cell-names = "mac-address";
nvmem-cells = <&mac_address>;
};
&gmac1 { &gmac1 {
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment