ARM: dts: aspeed: Add ASRock SPC621D8HM3 BMC
Subsystems (2)
cover ARM: dts: aspeed: Add ASRock SPC621D8HM3 BMC
Hello,
These patches add a device-tree (and a tiny bindings update) for the Aspeed BMC on the ASRock SPC621D8HM3, so that it can be added as a supported OpenBMC platform.
Thanks,
Zev
Zev Weiss (2):
dt-bindings: arm: aspeed: document ASRock SPC621D8HM3
ARM: dts: aspeed: Add ASRock SPC621D8HM3 BMC
.../bindings/arm/aspeed/aspeed.yaml | 1 + arch/arm/boot/dts/aspeed/Makefile | 1 + .../aspeed/aspeed-bmc-asrock-spc621d8hm3.dts | 316 ++++++++++++++++++ 3 files changed, 318 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts
Signature · 1 line
2.42.0
PATCH 1/2 dt-bindings: arm: aspeed: document ASRock SPC621D8HM3
Document ASRock SPC621D8HM3 board compatible.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -36,6 +36,7 @@ properties: - aspeed,ast2500-evb - asrock,e3c246d4i-bmc - asrock,romed8hm3-bmc + - asrock,spc621d8hm3-bmc - bytedance,g220a-bmc - facebook,cmm-bmc - facebook,minipack-bmc
Signature · 1 line
2.42.0
Re: [PATCH 1/2] dt-bindings: arm: aspeed: document ASRock SPC621D8HM3
Quoted 4 lines · Zev Weiss
Document ASRock SPC621D8HM3 board compatible.
Signed-off-by Zev Weiss <[email protected]>---
Best regards,
Krzysztof
PATCH 2/2 ARM: dts: aspeed: Add ASRock SPC621D8HM3 BMC
In reply to Zev WeissThis is a Xeon board broadly similar (aside from CPU vendor) to the already-support romed8hm3 (half-width, single-socket, ast2500). It doesn't require anything terribly special for OpenBMC support, so this device-tree should provide everything necessary for basic functionality with it.
--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../aspeed/aspeed-bmc-asrock-spc621d8hm3.dts | 316 ++++++++++++++++++ 2 files changed, 317 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
@@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-arm-stardragon4800-rep2.dtb \ aspeed-bmc-asrock-e3c246d4i.dtb \ aspeed-bmc-asrock-romed8hm3.dtb \ + aspeed-bmc-asrock-spc621d8hm3.dtb \ aspeed-bmc-bytedance-g220a.dtb \ aspeed-bmc-delta-ahe50dc.dtb \ aspeed-bmc-facebook-bletchley.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts new file +316 -0
316 lines not on this page · raw message
Signature · 1 line
2.42.0
Quoted 43 lines · Zev Weiss
This is a Xeon board broadly similar (aside from CPU vendor) to the already-support romed8hm3 (half-width, single-socket, ast2500). It doesn't require anything terribly special for OpenBMC support, so this device-tree should provide everything necessary for basic functionality with it.
Signed-off-by Zev Weiss <[email protected]>--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../aspeed/aspeed-bmc-asrock-spc621d8hm3.dts | 316 ++++++++++++++++++ 2 files changed, 317 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dtsarch/arm/boot/dts/aspeed/Makefile +1
-0@@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-arm-stardragon4800-rep2.dtb \ aspeed-bmc-asrock-e3c246d4i.dtb \ aspeed-bmc-asrock-romed8hm3.dtb \ + aspeed-bmc-asrock-spc621d8hm3.dtb \ aspeed-bmc-bytedance-g220a.dtb \ aspeed-bmc-delta-ahe50dc.dtb \ aspeed-bmc-facebook-bletchley.dtb \arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts new file +12
-0@@ -0,0 +1,316 @@ +// 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> + +/{ + model = "ASRock SPC621D8HM3 BMC"; + compatible = "asrock,spc621d8hm3-bmc", "aspeed,ast2500"; +
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts line 22
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts new file +10
-0+ aliases { + serial4 = &uart5; + + i2c20 = &i2c1mux0ch0; + i2c21 = &i2c1mux0ch1; + }; + + chosen { + stdout-path = &uart5; + bootargs = "console=tty0 console=ttyS4,115200 earlycon";
Drop bootargs. Serial (and rate) should be selected by stdout path.
earlycon is for debug, not wide usage.
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts line 32
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-asrock-spc621d8hm3.dts new file +10
-0+ }; + + memory at 80000000 { + reg = <0x80000000 0x20000000>; + }; + + leds { + compatible = "gpio-leds"; + + heartbeat {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
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).
Best regards,
Krzysztof