Skip to contentSkip to conversation

ARM: dts: aspeed: Convert remaining ASRock systems to NVMEM layout syntax

PATCH In review Tan Siewert 3 participants 7 messages Aug 3, 2025 – Aug 6, 2025

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

cover ARM: dts: aspeed: Convert remaining ASRock systems to NVMEM layout syntax

Hi,

While investigating an issue with an ASRock Rack platform, I noticed that most of the ASPEED device trees using NVMEM cells to populate MAC addresses still rely on a deprecated NVMEM binding syntax. As a result, the MAC addresses are not populated from the device tree/NVMEM cells properly, and an address from "the chip" is being used instead.

Commit 76c5533925434 ("ARM: dts: aspeed: convert ASRock SPC621D8HM3 NVMEM content to layout syntax") was the only system that had previously been converted to the new layout syntax.

This patch series converts all remaining ASRock Rack systems in the ASPEED device trees to use the new NVMEM layout syntax.

Tan Siewert (4):
ARM: dts: aspeed: e3c246d4i: convert NVMEM content to layout syntax
ARM: dts: aspeed: e3c256d4i: convert NVMEM content to layout syntax
ARM: dts: aspeed: romed8hm3: convert NVMEM content to layout syntax
ARM: dts: aspeed: x570d4u: convert NVMEM content to layout syntax

 .../dts/aspeed/aspeed-bmc-asrock-e3c246d4i.dts | 12 ++++++++----
 .../dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts | 12 ++++++++----
 .../dts/aspeed/aspeed-bmc-asrock-romed8hm3.dts | 12 ++++++++----
 .../dts/aspeed/aspeed-bmc-asrock-x570d4u.dts   | 18 +++++++++++-------
 4 files changed, 35 insertions(+), 19 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/4 ARM: dts: aspeed: e3c246d4i: convert NVMEM content to layout syntax

The used bindings syntax has been deprecated and doesn't work properly anymore.

Use the newer (and non-deprecated) fixed-layout approach. See commit bd912c991d2e ("dt-bindings: nvmem: layouts: add fixed-layout") for details.

---
 .../boot/dts/aspeed/aspeed-bmc-asrock-e3c246d4i.dts  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c246d4i.dts +8 -4
index 93190f4e696c..3ebd80db06f9 100644
@@ -106,11 +106,15 @@ eeprom@57 {
 		compatible = "st,24c128", "atmel,24c128";
 		reg = <0x57>;
 		pagesize = <16>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
-		eth0_macaddress: macaddress@3f80 {
-			reg = <0x3f80 6>;
+		nvmem-layout {
+			compatible = "fixed-layout";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			eth0_macaddress: macaddress@3f80 {
+				reg = <0x3f80 6>;
+			};
 		};
 	};
 };
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/4 ARM: dts: aspeed: e3c256d4i: convert NVMEM content to layout syntax

In reply to Tan Siewert

The used bindings syntax has been deprecated and doesn't work properly anymore.

Use the newer (and non-deprecated) fixed-layout approach. See commit bd912c991d2e ("dt-bindings: nvmem: layouts: add fixed-layout") for details.

---
 .../boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts +8 -4
index 9d00ce9475f2..8c57a071f488 100644
@@ -191,11 +191,15 @@ eeprom@57 {
 		compatible = "st,24c128", "atmel,24c128";
 		reg = <0x57>;
 		pagesize = <16>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
-		eth0_macaddress: macaddress@3f80 {
-			reg = <0x3f80 6>;
+		nvmem-layout {
+			compatible = "fixed-layout";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			eth0_macaddress: macaddress@3f80 {
+				reg = <0x3f80 6>;
+			};
 		};
 	};
 };
Signature · 1 line
2.43.0
#3 lore raw

PATCH 3/4 ARM: dts: aspeed: romed8hm3: convert NVMEM content to layout syntax

In reply to Tan Siewert

The used bindings syntax has been deprecated and doesn't work properly anymore.

Use the newer (and non-deprecated) fixed-layout approach. See commit bd912c991d2e ("dt-bindings: nvmem: layouts: add fixed-layout") for details.

---
 .../boot/dts/aspeed/aspeed-bmc-asrock-romed8hm3.dts  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-romed8hm3.dts +8 -4
index 6dd221644dc6..e306655ce4a3 100644
@@ -134,11 +134,15 @@ eeprom@50 {
 		compatible = "st,24c128", "atmel,24c128";
 		reg = <0x50>;
 		pagesize = <16>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
-		eth0_macaddress: macaddress@3f80 {
-			reg = <0x3f80 6>;
+		nvmem-layout {
+			compatible = "fixed-layout";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			eth0_macaddress: macaddress@3f80 {
+				reg = <0x3f80 6>;
+			};
 		};
 	};
 };
Signature · 1 line
2.43.0
#4 lore raw

PATCH 4/4 ARM: dts: aspeed: x570d4u: convert NVMEM content to layout syntax

In reply to Tan Siewert

The used bindings syntax has been deprecated and doesn't work properly anymore.

Use the newer (and non-deprecated) fixed-layout approach. See commit bd912c991d2e ("dt-bindings: nvmem: layouts: add fixed-layout") for details.

---
 .../dts/aspeed/aspeed-bmc-asrock-x570d4u.dts   | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-x570d4u.dts +11 -7
index 0943e0bf1305..e61a6cb43438 100644
@@ -232,15 +232,19 @@ eeprom@57 {
 		compatible = "st,24c128", "atmel,24c128";
 		reg = <0x57>;
 		pagesize = <16>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
-		eth0_macaddress: macaddress@3f80 {
-			reg = <0x3f80 6>;
-		};
+		nvmem-layout {
+			compatible = "fixed-layout";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			eth0_macaddress: macaddress@3f80 {
+				reg = <0x3f80 6>;
+			};
 
-		eth1_macaddress: macaddress@3f88 {
-			reg = <0x3f88 6>;
+			eth1_macaddress: macaddress@3f88 {
+				reg = <0x3f88 6>;
+			};
 		};
 	};
 };
Signature · 1 line
2.43.0
Reviewed-by on the v1 series
#5 lore raw
In reply to Tan Siewert
Quoted 22 lines · Tan Siewert

Hi,

While investigating an issue with an ASRock Rack platform, I noticed that most of the ASPEED device trees using NVMEM cells to populate MAC addresses still rely on a deprecated NVMEM binding syntax. As a result, the MAC addresses are not populated from the device tree/NVMEM cells properly, and an address from "the chip" is being used instead.

Commit 76c5533925434 ("ARM: dts: aspeed: convert ASRock SPC621D8HM3 NVMEM content to layout syntax") was the only system that had previously been converted to the new layout syntax.

This patch series converts all remaining ASRock Rack systems in the ASPEED device trees to use the new NVMEM layout syntax.

Tan Siewert (4):
ARM: dts: aspeed: e3c246d4i: convert NVMEM content to layout syntax
ARM: dts: aspeed: e3c256d4i: convert NVMEM content to layout syntax
ARM: dts: aspeed: romed8hm3: convert NVMEM content to layout syntax
ARM: dts: aspeed: x570d4u: convert NVMEM content to layout syntax

Quoted 10 lines
.../dts/aspeed/aspeed-bmc-asrock-e3c246d4i.dts | 12 ++++++++----
.../dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts | 12 ++++++++----
.../dts/aspeed/aspeed-bmc-asrock-romed8hm3.dts | 12 ++++++++----
.../dts/aspeed/aspeed-bmc-asrock-x570d4u.dts   | 18 +++++++++++-------
4 files changed, 35 insertions(+), 19 deletions(-)
Signature · 1 line
2.43.0

For the series,

Thanks Tan!

maintainer
#6 lore raw
In reply to Tan Siewert
Quoted 8 lines · Tan Siewert

While investigating an issue with an ASRock Rack platform, I noticed that most of the ASPEED device trees using NVMEM cells to populate MAC addresses still rely on a deprecated NVMEM binding syntax. As a result, the MAC addresses are not populated from the device tree/NVMEM cells properly, and an address from "the chip" is being used instead.

[...]

Thanks, I've applied this to the BMC tree.

Signature · 1 line
Andrew Jeffery <[email protected]>