[openwrt/openwrt] mediatek: simplify nvmem mac for Keenetic KN-(3811/3911)

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 24 12:00:51 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9bcfe7b76f6e9920785c42d536949656208d68a2

commit 9bcfe7b76f6e9920785c42d536949656208d68a2
Author: Maxim Anisimov <maxim.anisimov.ua at gmail.com>
AuthorDate: Thu Jan 22 11:09:26 2026 +0300

    mediatek: simplify nvmem mac for Keenetic KN-(3811/3911)
    
    This is a cosmetic change. There is no need to use mac
    address increment/decrement in the dts on these devices,
    so this can be simplified.
    
    Signed-off-by: Maxim Anisimov <maxim.anisimov.ua at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21635
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts | 8 ++------
 target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts | 8 ++------
 2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts b/target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts
index 5138175a06..eeb2d24252 100644
--- a/target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts
+++ b/target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts
@@ -123,7 +123,7 @@
 		phy-mode = "2500base-x";
 
 		nvmem-cell-names = "mac-address";
-		nvmem-cells = <&macaddr_factory_4 0>;
+		nvmem-cells = <&macaddr_factory_4>;
 
 		fixed-link {
 			speed = <2500>;
@@ -140,7 +140,7 @@
 		label = "wan";
 
 		nvmem-cell-names = "mac-address";
-		nvmem-cells = <&macaddr_factory_a 0>;
+		nvmem-cells = <&macaddr_factory_a>;
 	};
 };
 
@@ -270,16 +270,12 @@
 
 					/* lan mac */
 					macaddr_factory_4: macaddr at 4 {
-						compatible = "mac-base";
 						reg = <0x4 0x6>;
-						#nvmem-cell-cells = <1>;
 					};
 
 					/* wan mac */
 					macaddr_factory_a: macaddr at a {
-						compatible = "mac-base";
 						reg = <0xa 0x6>;
-						#nvmem-cell-cells = <1>;
 					};
 				};
 			};
diff --git a/target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts b/target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts
index 1dcb3a12e4..d582994850 100644
--- a/target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts
+++ b/target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts
@@ -102,7 +102,7 @@
 		label = "lan";
 
 		nvmem-cell-names = "mac-address";
-		nvmem-cells = <&macaddr_factory_4 0>;
+		nvmem-cells = <&macaddr_factory_4>;
 	};
 
 	gmac1: mac at 1 {
@@ -113,7 +113,7 @@
 		label = "wan";
 
 		nvmem-cell-names = "mac-address";
-		nvmem-cells = <&macaddr_factory_a 0>;
+		nvmem-cells = <&macaddr_factory_a>;
 	};
 };
 
@@ -217,16 +217,12 @@
 
 					/* lan mac */
 					macaddr_factory_4: macaddr at 4 {
-						compatible = "mac-base";
 						reg = <0x4 0x6>;
-						#nvmem-cell-cells = <1>;
 					};
 
 					/* wan mac */
 					macaddr_factory_a: macaddr at a {
-						compatible = "mac-base";
 						reg = <0xa 0x6>;
-						#nvmem-cell-cells = <1>;
 					};
 				};
 			};




More information about the lede-commits mailing list