Browse Source

apm821xx: convert to nvmem-layout

nvmem-cells is deprecated.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev 1 year ago
parent
commit
10b7e2d0df
1 changed files with 16 additions and 14 deletions
  1. 16 14
      target/linux/apm821xx/dts/netgear-wndr4700.dts

+ 16 - 14
target/linux/apm821xx/dts/netgear-wndr4700.dts

@@ -267,23 +267,25 @@
 				reg = <0x07fc0000 0x00040000>;
 				read-only;
 
-				compatible = "nvmem-cells";
-				#address-cells = <1>;
-				#size-cells = <1>;
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
 
-				macaddr_wifi_0: macaddr@0 {
-					reg = <0x0 0x6>;
-				};
-				macaddr_wifi_c: macaddr@c {
-					reg = <0xc 0x6>;
-				};
+					macaddr_wifi_0: macaddr@0 {
+						reg = <0x0 0x6>;
+					};
+					macaddr_wifi_c: macaddr@c {
+						reg = <0xc 0x6>;
+					};
 
-				calibration_wifi_1000: calibration@1000 {
-					reg = <0x1000 0x440>;
-				};
+					calibration_wifi_1000: calibration@1000 {
+						reg = <0x1000 0x440>;
+					};
 
-				calibration_wifi_5000: calibration@5000 {
-					reg = <0x5000 0x440>;
+					calibration_wifi_5000: calibration@5000 {
+						reg = <0x5000 0x440>;
+					};
 				};
 			};
 		};