[openwrt/openwrt] ipq40xx: use nvmem ethernet MACs on Aruba AP-303H
LEDE Commits
lede-commits at lists.infradead.org
Sat Apr 27 02:23:45 PDT 2024
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4c5cb5880573b7e39a205f220f4f569db542973d
commit 4c5cb5880573b7e39a205f220f4f569db542973d
Author: Ryan Salsbury <ryanrs at gmail.com>
AuthorDate: Fri Apr 26 17:35:58 2024 -0700
ipq40xx: use nvmem ethernet MACs on Aruba AP-303H
Use NVMEM to assign "factory sticker" MAC address to WAN ethernet
interface. Set LAN address to sticker + 1.
Signed-off-by: Ryan Salsbury <ryanrs at gmail.com>
---
.../files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-ap-303h.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-ap-303h.dts b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-ap-303h.dts
index 41b42e8f58..2e1fc6aedc 100644
--- a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-ap-303h.dts
+++ b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-ap-303h.dts
@@ -362,7 +362,9 @@
#size-cells = <1>;
macaddr_mfginfo_1d: macaddr at 1d {
+ compatible = "mac-base";
reg = <0x1d 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_mfginfo_45: macaddr at 45 {
@@ -434,6 +436,9 @@
&gmac {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_mfginfo_1d 1>;
};
&switch {
@@ -462,6 +467,8 @@
status = "okay";
label = "wan";
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_mfginfo_1d 0>;
};
&wifi0 {
More information about the lede-commits
mailing list