Skip to contentSkip to conversation

arm64: dts: armada-3720-gl-mv1000: use nvmem-layout

PATCH In review Rosen Penev 2 participants 3 messages Dec 3, 2024 – Dec 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: armada-3720-gl-mv1000: use nvmem-layout

nvmem-layout is a more flexible replacement for nvmem-cells.

---
 .../dts/marvell/armada-3720-gl-mv1000.dts     | 30 +++++++++----------
 1 file changed, 15 insertions(+), 15 deletions(-)
arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts +15 -15
index 56930f2ce481..7b801b60862d 100644
@@ -98,10 +98,24 @@ partition@f0000 {
 				reg = <0xf0000 0x8000>;
 			};
 
-			factory: partition@f8000 {
+			partition@f8000 {
 				label = "factory";
 				reg = <0xf8000 0x8000>;
 				read-only;
+
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					macaddr_factory_0: macaddr@0 {
+						reg = <0x0 0x6>;
+					};
+
+					macaddr_factory_6: macaddr@6 {
+						reg = <0x6 0x6>;
+					};
+				};
 			};
 
 			partition@100000 {
@@ -221,17 +235,3 @@ fixed-link {
 		full-duplex;
 	};
 };
-
-&factory {
-	compatible = "nvmem-cells";
-	#address-cells = <1>;
-	#size-cells = <1>;
-
-	macaddr_factory_0: macaddr@0 {
-		reg = <0x0 0x6>;
-	};
-
-	macaddr_factory_6: macaddr@6 {
-		reg = <0x6 0x6>;
-	};
-};
Signature · 1 line
2.47.0
maintainer
#1 lore raw
Quoted 1 line · Rosen Penev

nvmem-layout is a more flexible replacement for nvmem-cells.

Do you have this reference board? How did you test this patch?

Andrew

#2 lore raw
Quoted 5 lines · Andrew Lunn
Quoted 1 line · Rosen Penev

nvmem-layout is a more flexible replacement for nvmem-cells.

Do you have this reference board? How did you test this patch?

Only compile time tested.

2cc3b37f5b6df8189d55d0e812d9658ce256dfec marks nvmem-cells as legacy and most dts files have already been converted.

This is not a crazy API change that would break anything.

Quoted 2 lines

Andrew