From: Ryan Salsbury Date: Sat, 27 Apr 2024 00:35:58 +0000 (-0700) Subject: ipq40xx: use nvmem ethernet MACs on Aruba AP-303H X-Git-Url: http://git.openwrt.org/openwrt/docs.git?a=commitdiff_plain;h=4c5cb5880573b7e39a205f220f4f569db542973d;p=openwrt%2Fopenwrt.git 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 --- 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@1d { + compatible = "mac-base"; reg = <0x1d 0x6>; + #nvmem-cell-cells = <1>; }; macaddr_mfginfo_45: macaddr@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 {