Skip to contentSkip to conversation

ARM: dts: aspeed: Add ASRock E3C256D4I BMC

PATCH In review Zev Weiss 2 participants 11 messages Nov 14, 2023 – Nov 16, 2023

Subsystems (2)
lore
Share & tools
lore

Zev Weiss

author
#0 lore raw

cover ARM: dts: aspeed: Add ASRock E3C256D4I BMC

Hello,

These patches add a device-tree (and a tiny bindings update) for the Aspeed BMC on the ASRock E3C256D4I, so that it can be added as a supported OpenBMC platform.

Thanks,
Zev

Zev Weiss (2):
dt-bindings: arm: aspeed: document ASRock E3C256D4I
ARM: dts: aspeed: Add ASRock E3C256D4I BMC

 .../bindings/arm/aspeed/aspeed.yaml           |   1 +
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed/aspeed-bmc-asrock-e3c256d4i.dts    | 314 ++++++++++++++++++
 3 files changed, 316 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts
Signature · 1 line
2.42.0
author
#1 lore raw

PATCH 1/2 dt-bindings: arm: aspeed: document ASRock E3C256D4I

Document ASRock E3C256D4I board compatible.

---
 Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index 749ee54a3ff8..c330eba0e869 100644
@@ -35,6 +35,7 @@ properties:
               - ampere,mtjade-bmc
               - aspeed,ast2500-evb
               - asrock,e3c246d4i-bmc
+              - asrock,e3c256d4i-bmc
               - asrock,romed8hm3-bmc
               - bytedance,g220a-bmc
               - facebook,cmm-bmc
Signature · 1 line
2.42.0
author
#3 lore raw

PATCH 2/2 ARM: dts: aspeed: Add ASRock E3C256D4I BMC

In reply to Zev Weiss

Like the E3C246D4I, this is a reasonably affordable off-the-shelf mini-ITX AST2500/Xeon motherboard with good potential as an OpenBMC development platform. Booting the host requires a modicum of eSPI support that's not yet in the mainline kernel, but most other basic BMC functionality is available with this device-tree.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed/aspeed-bmc-asrock-e3c256d4i.dts    | 314 ++++++++++++++++++
 2 files changed, 315 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index d3ac20e316d0..3398ee53f034 100644
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ampere-mtmitchell.dtb \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
 	aspeed-bmc-asrock-e3c246d4i.dtb \
+	aspeed-bmc-asrock-e3c256d4i.dtb \
 	aspeed-bmc-asrock-romed8hm3.dtb \
 	aspeed-bmc-bytedance-g220a.dtb \
 	aspeed-bmc-delta-ahe50dc.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +314 -0

314 lines not on this page · raw message

Signature · 1 line
2.42.0
#4 lore raw
Quoted 46 lines · Zev Weiss

Like the E3C246D4I, this is a reasonably affordable off-the-shelf mini-ITX AST2500/Xeon motherboard with good potential as an OpenBMC development platform. Booting the host requires a modicum of eSPI support that's not yet in the mainline kernel, but most other basic BMC functionality is available with this device-tree.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed/aspeed-bmc-asrock-e3c256d4i.dts    | 314 ++++++++++++++++++
 2 files changed, 315 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index d3ac20e316d0..3398ee53f034 100644
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ampere-mtmitchell.dtb \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
 	aspeed-bmc-asrock-e3c246d4i.dtb \
+	aspeed-bmc-asrock-e3c256d4i.dtb \
 	aspeed-bmc-asrock-romed8hm3.dtb \
 	aspeed-bmc-bytedance-g220a.dtb \
 	aspeed-bmc-delta-ahe50dc.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +15 -0
new file mode 100644
index 000000000000..4c55272afd4f
@@ -0,0 +1,314 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+#include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+#include <dt-bindings/i2c/i2c.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/watchdog/aspeed-wdt.h>
+
+/{
+	model = "ASRock E3C256D4I BMC";
+	compatible = "asrock,e3c256d4i-bmc", "aspeed,ast2500";
+
+	aliases {
+		serial4 = &uart5;

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 25

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +10 -0
+
+		i2c20 = &i2c2mux0ch0;
+		i2c21 = &i2c2mux0ch1;
+		i2c22 = &i2c2mux0ch2;
+		i2c23 = &i2c2mux0ch3;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+		bootargs = "console=tty0 console=ttyS4,115200 earlycon";

Drop bootargs.

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 35

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +10 -0
+	};
+
+	memory at 80000000 {
+		reg = <0x80000000 0x20000000>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		heartbeat {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 37

Quoted 2 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +2 -0
+			gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "timer";

Missing function and color.

Best regards,
Krzysztof

author
#5 lore raw
Quoted 51 lines · Krzysztof Kozlowski
Quoted 50 lines · Zev Weiss

Like the E3C246D4I, this is a reasonably affordable off-the-shelf mini-ITX AST2500/Xeon motherboard with good potential as an OpenBMC development platform. Booting the host requires a modicum of eSPI support that's not yet in the mainline kernel, but most other basic BMC functionality is available with this device-tree.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed/aspeed-bmc-asrock-e3c256d4i.dts    | 314 ++++++++++++++++++
 2 files changed, 315 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index d3ac20e316d0..3398ee53f034 100644
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ampere-mtmitchell.dtb \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
 	aspeed-bmc-asrock-e3c246d4i.dtb \
+	aspeed-bmc-asrock-e3c256d4i.dtb \
 	aspeed-bmc-asrock-romed8hm3.dtb \
 	aspeed-bmc-bytedance-g220a.dtb \
 	aspeed-bmc-delta-ahe50dc.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +19 -0
new file mode 100644
index 000000000000..4c55272afd4f
@@ -0,0 +1,314 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+#include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+#include <dt-bindings/i2c/i2c.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/watchdog/aspeed-wdt.h>
+
+/{
+	model = "ASRock E3C256D4I BMC";
+	compatible = "asrock,e3c256d4i-bmc", "aspeed,ast2500";
+
+	aliases {
+		serial4 = &uart5;
+
+		i2c20 = &i2c2mux0ch0;
+		i2c21 = &i2c2mux0ch1;
+		i2c22 = &i2c2mux0ch2;
Quoted 9 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 25

Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +6 -0
+		i2c23 = &i2c2mux0ch3;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+		bootargs = "console=tty0 console=ttyS4,115200 earlycon";

Drop bootargs.

Ack.

Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +8 -0
+	};
+
+	memory at 80000000 {
+		reg = <0x80000000 0x20000000>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
Quoted 9 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 35

Quoted 2 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +2 -0
+
+		heartbeat {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

Au contraire -- I did, and it exited 0 with no output, which I interpreted as a clean pass. Are there particular shortcomings beside what you've already pointed out that you would have expected it to flag?

Quoted 5 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 37

Quoted 2 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +2 -0
+			gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "timer";

Missing function and color.

Ack.

Thanks,
Zev

#6 lore raw
Quoted 10 lines · Zev Weiss
Quoted 6 lines

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

Au contraire -- I did, and it exited 0 with no output, which I interpreted as a clean pass. Are there particular shortcomings beside what you've already pointed out that you would have expected it to flag?

Then paste entire command result here, including the command you used.

Best regards,
Krzysztof

author
#7 lore raw
In reply to Krzysztof Kozlowski
Quoted 51 lines · Krzysztof Kozlowski
Quoted 50 lines · Zev Weiss

Like the E3C246D4I, this is a reasonably affordable off-the-shelf mini-ITX AST2500/Xeon motherboard with good potential as an OpenBMC development platform. Booting the host requires a modicum of eSPI support that's not yet in the mainline kernel, but most other basic BMC functionality is available with this device-tree.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../aspeed/aspeed-bmc-asrock-e3c256d4i.dts    | 314 ++++++++++++++++++
 2 files changed, 315 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index d3ac20e316d0..3398ee53f034 100644
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ampere-mtmitchell.dtb \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
 	aspeed-bmc-asrock-e3c246d4i.dtb \
+	aspeed-bmc-asrock-e3c256d4i.dtb \
 	aspeed-bmc-asrock-romed8hm3.dtb \
 	aspeed-bmc-bytedance-g220a.dtb \
 	aspeed-bmc-delta-ahe50dc.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +19 -0
new file mode 100644
index 000000000000..4c55272afd4f
@@ -0,0 +1,314 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+#include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+#include <dt-bindings/i2c/i2c.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/watchdog/aspeed-wdt.h>
+
+/{
+	model = "ASRock E3C256D4I BMC";
+	compatible = "asrock,e3c256d4i-bmc", "aspeed,ast2500";
+
+	aliases {
+		serial4 = &uart5;
+
+		i2c20 = &i2c2mux0ch0;
+		i2c21 = &i2c2mux0ch1;
+		i2c22 = &i2c2mux0ch2;
Quoted 9 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 25

Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +6 -0
+		i2c23 = &i2c2mux0ch3;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+		bootargs = "console=tty0 console=ttyS4,115200 earlycon";

Drop bootargs.

Ack.

Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +8 -0
+	};
+
+	memory at 80000000 {
+		reg = <0x80000000 0x20000000>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
Quoted 9 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 35

Quoted 2 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +2 -0
+
+		heartbeat {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

As with my spc621d8hm3 dts patch, I did run that and got no output, so if there are other specific problems please let me know what they are.

Quoted 5 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 37

Quoted 2 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +2 -0
+			gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "timer";

Missing function and color.

Ack.

Thanks,
Zev

author
#8 lore raw
Quoted 82 lines · Zev Weiss
Quoted 51 lines · Krzysztof Kozlowski
Quoted 50 lines · Zev Weiss

Like the E3C246D4I, this is a reasonably affordable off-the-shelf mini-ITX AST2500/Xeon motherboard with good potential as an OpenBMC development platform. Booting the host requires a modicum of eSPI support that's not yet in the mainline kernel, but most other basic BMC functionality is available with this device-tree.

---
arch/arm/boot/dts/aspeed/Makefile | 1 +
.../aspeed/aspeed-bmc-asrock-e3c256d4i.dts | 314 ++++++++++++++++++

2 files changed, 315 insertions(+)

create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts

arch/arm/boot/dts/aspeed/Makefile +1 -0
index d3ac20e316d0..3398ee53f034 100644
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ampere-mtmitchell.dtb \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
 	aspeed-bmc-asrock-e3c246d4i.dtb \
+	aspeed-bmc-asrock-e3c256d4i.dtb \
 	aspeed-bmc-asrock-romed8hm3.dtb \
 	aspeed-bmc-bytedance-g220a.dtb \
 	aspeed-bmc-delta-ahe50dc.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +19 -0
new file mode 100644
index 000000000000..4c55272afd4f
@@ -0,0 +1,314 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+#include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+#include <dt-bindings/i2c/i2c.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/watchdog/aspeed-wdt.h>
+
+/{
+	model = "ASRock E3C256D4I BMC";
+	compatible = "asrock,e3c256d4i-bmc", "aspeed,ast2500";
+
+	aliases {
+		serial4 = &uart5;
+
+		i2c20 = &i2c2mux0ch0;
+		i2c21 = &i2c2mux0ch1;
+		i2c22 = &i2c2mux0ch2;
Quoted 9 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 25

Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +6 -0
+		i2c23 = &i2c2mux0ch3;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+		bootargs = "console=tty0 console=ttyS4,115200 earlycon";

Drop bootargs.

Ack.

Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +8 -0
+	};
+
+	memory at 80000000 {
+		reg = <0x80000000 0x20000000>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
Quoted 9 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 35

Quoted 2 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +2 -0
+
+		heartbeat {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

Quoted 3 lines

As with my spc621d8hm3 dts patch, I did run that and got no output, so if there are other specific problems please let me know what they are.

Whoops, and of course now I realize I also sent the first reply to this thread instead of the spc621d8hm3 one...

Zev

#9 lore raw
In reply to Zev Weiss
Quoted 17 lines · Zev Weiss
Quoted 17 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 35

Quoted 11 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +10 -0
+	};
+
+	memory at 80000000 {
+		reg = <0x80000000 0x20000000>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		heartbeat {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

The node names are clearly wrong and you got output. It's easy to spot if your patch worked in the first place:

fatal error: dt-bindings/watchdog/aspeed-wdt.h: No such file or directory

Best regards,
Krzysztof

author
#10 lore raw
Quoted 20 lines · Krzysztof Kozlowski
Quoted 17 lines · Zev Weiss
Quoted 17 lines

arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts line 35

Quoted 11 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-e3c256d4i.dts new file +10 -0
+	};
+
+	memory at 80000000 {
+		reg = <0x80000000 0x20000000>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		heartbeat {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

Quoted 5 lines

The node names are clearly wrong and you got output. It's easy to spot if your patch worked in the first place:

fatal error: dt-bindings/watchdog/aspeed-wdt.h: No such file or directory

The patch series was based on Linus's tree at the time I sent it; that file was added in commit 9931be2cfca3 ("dt-bindings: watchdog:
aspeed-wdt: Add aspeed,reset-mask property"), which was included in the 6.7-rc1 tag, FWIW.

After some debugging I discovered that the reason I wasn't getting any output from dtbs_check was that I had neglected to specify ARCH=arm when invoking it, and when that defaulted to x86 it silently did a whole bunch of nothing. It might be nice if something emitted some sort of warning when invoked with nonsensical parameters (especially if I've explicitly specified a dtstree=... argument pointing to arch/arm/...), but oh well.

After re-running it with ARCH=arm, it produced a fairly voluminous spew of output, though after combing through it all as best I can tell only one or two lines of it actually pertain to the .dts in question itself (the vast majority being from a .dtsi it #includes). I've fixed the one remaining issue it reported (missing #address-cells and #size-cells on the FRU eeprom node) and will post a v2 in the next few days (and likewise on the spc621d8hm3 series).

Zev