[openwrt/openwrt] ramips: use fixed layout cell "mac-base" for Netgear WNDR3700 v5

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 28 10:43:32 PDT 2023


rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e6cf959d0e3a536a38fb8a7198cb0029544fc5c2

commit e6cf959d0e3a536a38fb8a7198cb0029544fc5c2
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Fri Jul 28 18:48:34 2023 +0200

    ramips: use fixed layout cell "mac-base" for Netgear WNDR3700 v5
    
    This drops a use of downstream "mac-address-increment".
    
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 .../ramips/dts/mt7621_netgear_wndr3700-v5.dts      | 27 +++++++++++-----------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
index 276e7c959f..dc40d71afc 100644
--- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
@@ -40,6 +40,18 @@
 				label = "factory";
 				reg = <0xf30000 0x10000>;
 				read-only;
+
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					macaddr_factory_4: macaddr at 4 {
+						compatible = "mac-base";
+						reg = <0x4 0x6>;
+						#nvmem-cell-cells = <1>;
+					};
+				};
 			};
 
 			partition at 50000 {
@@ -52,22 +64,11 @@
 };
 
 &gmac0 {
-	nvmem-cells = <&macaddr_factory_4>;
+	nvmem-cells = <&macaddr_factory_4 0>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
-	nvmem-cells = <&macaddr_factory_4>;
+	nvmem-cells = <&macaddr_factory_4 1>;
 	nvmem-cell-names = "mac-address";
-	mac-address-increment = <1>;
-};
-
-&factory {
-	compatible = "nvmem-cells";
-	#address-cells = <1>;
-	#size-cells = <1>;
-
-	macaddr_factory_4: macaddr at 4 {
-		reg = <0x4 0x6>;
-	};
 };




More information about the lede-commits mailing list