aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lamparter <[email protected]>2021-09-18 19:29:31 +0200
committerFlorian Fainelli <[email protected]>2021-09-21 14:20:14 -0700
commit477ffdbdf389cc91294d66e251cc6f856da5820c (patch)
tree202e481126028a0c192e9c3b0fc7976f853d7009
parent6abc4ca5a28070945e0d68cb4160b309bfbf4b8b (diff)
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 <[email protected]> Signed-off-by: Florian Fainelli <[email protected]>
-rw-r--r--arch/arm/boot/dts/bcm53016-meraki-mr32.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
index 577a4dc604d9..64f973e1ef12 100644
--- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
+++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
@@ -110,6 +110,12 @@
reg = <0x50>;
pagesize = <32>;
read-only;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ mac_address: mac-address@66 {
+ reg = <0x66 0x6>;
+ };
};
};
};
@@ -133,6 +139,11 @@
*/
};
+&gmac0 {
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&mac_address>;
+};
+
&gmac1 {
status = "disabled";
};