summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Leung2026-06-06 11:19:12 +0000
committerHauke Mehrtens2026-06-25 19:16:10 +0000
commit7ae998c4b62d05f6121e31b8aedb5a862794b11a (patch)
treec17617eb15f0bf49f65937de071dd94d4cc160af
parent2b664d4f31ff366b16497f2966d8848b8467163c (diff)
downloadopenwrt-7ae998c4b62d05f6121e31b8aedb5a862794b11a.tar.gz
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: 1748ce829537 ("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> (cherry picked from commit 04f5823f835b45f5a9943ef7d1c1c1a955596e9c) Link: https://github.com/openwrt/openwrt/pull/23791 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/mediatek/dts/mt7986a-wavlink-wl-wn536ax6-a.dts26
1 files changed, 11 insertions, 15 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-wavlink-wl-wn536ax6-a.dts b/target/linux/mediatek/dts/mt7986a-wavlink-wl-wn536ax6-a.dts
index 3377213974..0c6d644ad6 100644
--- a/target/linux/mediatek/dts/mt7986a-wavlink-wl-wn536ax6-a.dts
+++ b/target/linux/mediatek/dts/mt7986a-wavlink-wl-wn536ax6-a.dts
@@ -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>;
- };
- };
};
};
};