diff mbox series

[v1,2/2] ARM: BCM53016: MR32: get mac-address from nvmem

Message ID fa8271d02ef74a687f365cebe5c55ec846963ab7.1631986106.git.chunkeey@gmail.com (mailing list archive)
State New, archived
Headers show
Series [v1,1/2] ARM: BCM53016: Specify switch ports for Meraki MR32 | expand

Commit Message

Christian Lamparter Sept. 18, 2021, 5:29 p.m. UTC
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>
---
 arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Florian Fainelli Sept. 21, 2021, 9:20 p.m. UTC | #1
On Sat, 18 Sep 2021 19:29:31 +0200, Christian Lamparter <chunkeey@gmail.com> wrote:
> 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>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
index 1dbfa05b6501..c58e75dde7b3 100644
--- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
+++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
@@ -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";
 };