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@gmail.com>
This commit is contained in:
Ryan Salsbury 2024-04-26 17:35:58 -07:00 committed by Christian Marangi
parent a8dde7e5bd
commit 4c5cb58805
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
1 changed files with 7 additions and 0 deletions

View File

@ -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 {