浏览代码

realtek: convert to nvmem-layout

nvmem-cells is deprecated.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev 1 年之前
父节点
当前提交
d1b5981038

+ 8 - 5
target/linux/realtek/dts-5.15/rtl8380_tplink_sg2xxx.dtsi

@@ -114,15 +114,18 @@
 				reg = <0x1b00000 0x400000>;
 			};
 			partition@1f00000 {
-				compatible = "nvmem-cells";
 				label = "para";
 				reg = <0x1f00000 0x100000>;
-				#address-cells = <1>;
-				#size-cells = <1>;
 				read-only;
 
-				factory_macaddr: macaddr@fdff4 {
-					reg = <0xfdff4 0x6>;
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					factory_macaddr: macaddr@fdff4 {
+						reg = <0xfdff4 0x6>;
+					};
 				};
 			};
 		};

+ 8 - 5
target/linux/realtek/dts-5.15/rtl8382_tplink_t1600g-28ts-v3.dts

@@ -72,15 +72,18 @@
 				reg = <0x1b00000 0x400000>;
 			};
 			partition@1f00000 {
-				compatible = "nvmem-cells";
 				label = "para";
 				reg = <0x1f00000 0x100000>;
-				#address-cells = <1>;
-				#size-cells = <1>;
 				read-only;
 
-				factory_macaddr: macaddr@fdff4 {
-					reg = <0xfdff4 0x6>;
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					factory_macaddr: macaddr@fdff4 {
+						reg = <0xfdff4 0x6>;
+					};
 				};
 			};
 		};

+ 8 - 5
target/linux/realtek/dts-5.15/rtl8393_tplink_sg2452p-v4.dts

@@ -262,15 +262,18 @@
 				reg = <0x1b00000 0x400000>;
 			};
 			partition@1f00000 {
-				compatible = "nvmem-cells";
 				label = "para";
 				reg = <0x1f00000 0x100000>;
-				#address-cells = <1>;
-				#size-cells = <1>;
 				read-only;
 
-				factory_macaddr: macaddr@fdff4 {
-					reg = <0xfdff4 0x6>;
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					factory_macaddr: macaddr@fdff4 {
+						reg = <0xfdff4 0x6>;
+					};
 				};
 			};
 		};