mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-25 10:52:48 +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>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
macaddr_mfginfo_1d: macaddr@1d {
|
macaddr_mfginfo_1d: macaddr@1d {
|
||||||
|
compatible = "mac-base";
|
||||||
reg = <0x1d 0x6>;
|
reg = <0x1d 0x6>;
|
||||||
|
#nvmem-cell-cells = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
macaddr_mfginfo_45: macaddr@45 {
|
macaddr_mfginfo_45: macaddr@45 {
|
||||||
@ -434,6 +436,9 @@
|
|||||||
|
|
||||||
&gmac {
|
&gmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
nvmem-cells = <&macaddr_mfginfo_1d 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&switch {
|
&switch {
|
||||||
@ -462,6 +467,8 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
label = "wan";
|
label = "wan";
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
nvmem-cells = <&macaddr_mfginfo_1d 0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&wifi0 {
|
&wifi0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user