[openwrt/openwrt] ramips: cudy_x6: cleaning up nvmem-cells definitions

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 16 12:25:10 PDT 2024


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

commit c54ce12a747497bac6836d3bca79cb9a0ddbbba3
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Sun Jun 16 09:11:25 2024 +0200

    ramips: cudy_x6: cleaning up nvmem-cells definitions
    
    Move nvmem-cells definitions to dts files to prevent overwriting
    
    Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
---
 target/linux/ramips/dts/mt7621_cudy_x6-v1.dts | 4 ++--
 target/linux/ramips/dts/mt7621_cudy_x6-v2.dts | 4 ++--
 target/linux/ramips/dts/mt7621_cudy_x6.dtsi   | 2 --
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_cudy_x6-v1.dts b/target/linux/ramips/dts/mt7621_cudy_x6-v1.dts
index 940a0598c1..fa89fd1efd 100644
--- a/target/linux/ramips/dts/mt7621_cudy_x6-v1.dts
+++ b/target/linux/ramips/dts/mt7621_cudy_x6-v1.dts
@@ -56,6 +56,6 @@
 };
 
 &wifi {
-	nvmem-cells = <&macaddr_bdinfo_de00 0>;
-	nvmem-cell-names = "mac-address";
+	nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 0>;
+	nvmem-cell-names = "eeprom", "mac-address";
 };
diff --git a/target/linux/ramips/dts/mt7621_cudy_x6-v2.dts b/target/linux/ramips/dts/mt7621_cudy_x6-v2.dts
index 70e6a845a4..fe8dada5c3 100644
--- a/target/linux/ramips/dts/mt7621_cudy_x6-v2.dts
+++ b/target/linux/ramips/dts/mt7621_cudy_x6-v2.dts
@@ -56,6 +56,6 @@
 };
 
 &wifi {
-	nvmem-cells = <&macaddr_bdinfo_de00 0>;
-	nvmem-cell-names = "mac-address";
+	nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 0>;
+	nvmem-cell-names = "eeprom", "mac-address";
 };
diff --git a/target/linux/ramips/dts/mt7621_cudy_x6.dtsi b/target/linux/ramips/dts/mt7621_cudy_x6.dtsi
index 0542640f13..5da11e8945 100644
--- a/target/linux/ramips/dts/mt7621_cudy_x6.dtsi
+++ b/target/linux/ramips/dts/mt7621_cudy_x6.dtsi
@@ -104,8 +104,6 @@
 	wifi:wifi at 0,0 {
 		compatible = "mediatek,mt76";
 		reg = <0x0000 0 0 0 0>;
-		nvmem-cells = <&eeprom_factory_0>;
-		nvmem-cell-names = "eeprom";
 		mediatek,disable-radar-background;
 	};
 };




More information about the lede-commits mailing list