mediatek: wavlink wl-wn536ax6 rev a: change nvmem layout for MAC addresses

Currently the WAN MAC address is read from the first (LAN) MAC address in the "HW" partition and
then incremented by 1 instead of being read directly from the second MAC address.

Change to reading the two MAC addresses (LAN/WAN) directly from "Factory" partition.

Fixes: 1748ce8295 ("mediatek: add support for WAVLINK WL-WN536AX6 Rev a")
Signed-off-by: Ryan Leung <untilscour@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/23682
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Ryan Leung
2026-06-14 12:31:35 +02:00
committed by Jonas Jelonek
parent 209a8fe737
commit 04f5823f83
@@ -123,7 +123,7 @@
phy-mode = "2500base-x";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_hw_44e 0>;
nvmem-cells = <&macaddr_factory_3fff4>;
fixed-link {
full-duplex;
@@ -140,7 +140,7 @@
phy-handle = <&phy6>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_hw_44e 1>;
nvmem-cells = <&macaddr_factory_3fffa>;
};
mdio-bus {
@@ -150,7 +150,7 @@
/* MaxLinear GPY211C 2.5G PHY */
phy6: phy@6 {
/*
* Force the ID here as the PHY only reports it's
* Force the ID here as the PHY only reports its
* (C45) ID correctly after a reset (before resetting
* it reports 0xfffffff, which causes only the genphy
* driver to match).
@@ -320,6 +320,14 @@
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x1000>;
};
macaddr_factory_3fff4: macaddr@3fff4 {
reg = <0x3fff4 0x6>;
};
macaddr_factory_3fffa: macaddr@3fffa {
reg = <0x3fffa 0x6>;
};
};
};
@@ -338,18 +346,6 @@
label = "HW";
reg = <0x4580000 0x80000>;
read-only;
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
macaddr_hw_44e: macaddr@44e {
compatible = "mac-base";
reg = <0x44e 0x11>;
#nvmem-cell-cells = <1>;
};
};
};
};
};