Forráskód Böngészése

linux: replace nvmem-cells with nvmem-layout

The former is deprecated in favor of nvmem-layout. In preparation for
eventual removal from the kernel, do so here.

Some of these are leftovers from nvmem-layout conversion.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16097
Signed-off-by: Robert Marko <[email protected]>
Rosen Penev 1 éve
szülő
commit
648d070c76

+ 0 - 2
target/linux/ath79/dts/qca9563_dlink_covr.dtsi

@@ -90,8 +90,6 @@
 				reg = <0xff0000 0x10000>;
 				read-only;
 
-				compatible = "nvmem-cells";
-
 				nvmem-layout {
 					compatible = "fixed-layout";
 					#address-cells = <1>;

+ 1 - 2
target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi

@@ -266,8 +266,7 @@
 				};
 			};
 
-			config1: partition@1C0000 {
-				compatible = "nvmem-cells";
+			partition@1C0000 {
 				label = "Config1";
 				reg = <0x001C0000 0x00080000>;
 				read-only;

+ 0 - 1
target/linux/mediatek/dts/mt7981b-openembed-som7981.dts

@@ -164,7 +164,6 @@
 			};
 
 			partition@180000 {
-				compatible = "nvmem-cells";
 				label = "factory";
 				reg = <0x180000 0x100000>;
 				read-only;

+ 0 - 1
target/linux/mediatek/dts/mt7981b-unielec-u7981-01-nand.dts

@@ -47,7 +47,6 @@
 				reg = <0x180000 0x200000>;
 				read-only;
 
-				compatible = "nvmem-cells";
 				nvmem-layout {
 					compatible = "fixed-layout";
 					#address-cells = <1>;

+ 0 - 1
target/linux/mediatek/dts/mt7986a-acelink-ew-7886cax.dts

@@ -183,7 +183,6 @@
 			};
 
 			partition@180000 {
-				compatible = "nvmem-cells";
 				reg = <0x180000 0x200000>;
 				label = "factory";
 				read-only;

+ 11 - 9
target/linux/mediatek/patches-6.6/101-dts-update-mt7629-rfb.patch

@@ -40,21 +40,23 @@
  			};
  		};
  	};
-@@ -273,3 +282,17 @@
+@@ -273,3 +282,19 @@
  	pinctrl-0 = <&watchdog_pins>;
  	status = "okay";
  };
 +
 +&factory {
-+	compatible = "nvmem-cells";
-+	#address-cells = <1>;
-+	#size-cells = <1>;
++	nvmem-layout {
++		compatible = "fixed-layout";
++		#address-cells = <1>;
++		#size-cells = <1>;
 +
-+	macaddr_factory_24: macaddr@24 {
-+		reg = <0x24 0x6>;
-+	};
++		macaddr_factory_24: macaddr@24 {
++			reg = <0x24 0x6>;
++		};
 +
-+	macaddr_factory_2a: macaddr@2a {
-+		reg = <0x2a 0x6>;
++		macaddr_factory_2a: macaddr@2a {
++			reg = <0x2a 0x6>;
++		};
 +	};
 +};

+ 1 - 3
target/linux/mvebu/patches-6.6/320-arm-dts-armada-370-synology-ds213j-mtd-parts.patch

@@ -42,7 +42,7 @@
  };
  
  &pinctrl {
-@@ -259,48 +280,52 @@
+@@ -259,48 +280,50 @@
  		reg = <0>; /* Chip select 0 */
  		spi-max-frequency = <20000000>;
  
@@ -112,8 +112,6 @@
 +				label = "vendor";
 +				read-only;
 +
-+				compatible = "nvmem-cells";
-+
 +				nvmem-layout {
 +					compatible = "fixed-layout";
 +					#address-cells = <1>;

+ 14 - 11
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6010-mango-dvk.dts

@@ -161,22 +161,25 @@
 			};
 
 			partition@360000 {
-				compatible = "nvmem-cells";
-				#address-cells = <1>;
-				#size-cells = <1>;
 				label = "0:ART";
 				reg = <0x00360000 0x00040000>;
 
-				macaddr_eth0: macaddr@0 {
-					reg = <0x0 0x6>;
-				};
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
 
-				macaddr_eth1: macaddr@6 {
-					reg = <0x6 0x6>;
-				};
+					macaddr_eth0: macaddr@0 {
+						reg = <0x0 0x6>;
+					};
+
+					macaddr_eth1: macaddr@6 {
+						reg = <0x6 0x6>;
+					};
 
-				macaddr_eth2: macaddr@c {
-					reg = <0xc 0x6>;
+					macaddr_eth2: macaddr@c {
+						reg = <0xc 0x6>;
+					};
 				};
 			};
 

+ 15 - 11
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-301w.dts

@@ -339,12 +339,14 @@
 				label = "0:ethphyfw1";
 				reg = <0x3b0000 0x80000>;
 
-				compatible = "nvmem-cells";
-				#address-cells = <1>;
-				#size-cells = <1>;
-
-				aqr0_fw: firmware@0 {
-					reg = <0x0 0x5fc02>;
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					aqr0_fw: firmware@0 {
+						reg = <0x0 0x5fc02>;
+					};
 				};
 			};
 
@@ -352,12 +354,14 @@
 				label = "0:ethphyfw2";
 				reg = <0x430000 0x80000>;
 
-				compatible = "nvmem-cells";
-				#address-cells = <1>;
-				#size-cells = <1>;
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
 
-				aqr1_fw: firmware@0 {
-					reg = <0x0 0x5fc02>;
+					aqr1_fw: firmware@0 {
+						reg = <0x0 0x5fc02>;
+					};
 				};
 			};
 

+ 0 - 1
target/linux/ramips/dts/mt7620a_bolt_bl100.dts

@@ -164,7 +164,6 @@
 			};
 
 			partition@40000 {
-				compatible = "nvmem-cells";
 				label = "factory";
 				reg = <0x40000 0x10000>;
 				read-only;