ARM: dts: aspeed: Convert remaining ASRock systems to NVMEM layout syntax
Subsystems (2)
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
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
@@ -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
PATCH 2/4 ARM: dts: aspeed: e3c256d4i: convert NVMEM content to layout syntax
In reply to Tan SiewertThe 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
@@ -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
PATCH 3/4 ARM: dts: aspeed: romed8hm3: convert NVMEM content to layout syntax
In reply to Tan SiewertThe 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
@@ -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
PATCH 4/4 ARM: dts: aspeed: x570d4u: convert NVMEM content to layout syntax
In reply to Tan SiewertThe 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
@@ -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
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!
Andrew Jeffery
maintainerQuoted 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]>