mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
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:
parent
a8dde7e5bd
commit
4c5cb58805
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user