mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-06 19:19:31 +00:00
58056df84f
Avoids having to set the MAC in userspace. Also added a mac-base change to set the wifi MACs. It's not clear if upstream would want it once mac-base is upstreamed. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17064 Signed-off-by: Robert Marko <robimarko@gmail.com>
53 lines
1.2 KiB
Diff
53 lines
1.2 KiB
Diff
From ad1915e2070cf832bfb81dcbeb44b073c09e6dcc Mon Sep 17 00:00:00 2001
|
|
From: Rosen Penev <rosenp@gmail.com>
|
|
Date: Sun, 20 Oct 2024 18:51:47 -0700
|
|
Subject: [PATCH] ARM: dts: meraki-mr26: set mac address for gmac0
|
|
|
|
Currently this needs to be done in userspace.
|
|
|
|
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
Link: https://lore.kernel.org/r/20241021015147.172700-1-rosenp@gmail.com
|
|
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
|
|
---
|
|
.../dts/broadcom/bcm53015-meraki-mr26.dts | 20 +++++++++++++++++++
|
|
1 file changed, 20 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
|
|
+++ b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
|
|
@@ -59,6 +59,9 @@
|
|
|
|
&gmac0 {
|
|
status = "okay";
|
|
+
|
|
+ nvmem-cells = <&macaddr_board_config_66>;
|
|
+ nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
&gmac1 {
|
|
@@ -102,8 +105,25 @@
|
|
};
|
|
|
|
partition@800000 {
|
|
+ compatible = "linux,ubi";
|
|
label = "ubi";
|
|
reg = <0x800000 0x7780000>;
|
|
+
|
|
+ volumes {
|
|
+ ubi-volume-board-config {
|
|
+ volname = "board-config";
|
|
+
|
|
+ nvmem-layout {
|
|
+ compatible = "fixed-layout";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ macaddr_board_config_66: macaddr@66 {
|
|
+ reg = <0x66 0x6>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
};
|