mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
366be2183e
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
42 lines
998 B
Diff
42 lines
998 B
Diff
From 477ffdbdf389cc91294d66e251cc6f856da5820c Mon Sep 17 00:00:00 2001
|
|
From: Christian Lamparter <chunkeey@gmail.com>
|
|
Date: Sat, 18 Sep 2021 19:29:31 +0200
|
|
Subject: [PATCH] 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>
|
|
---
|
|
arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
--- 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";
|
|
};
|