Skip to contentSkip to conversation

arm: dts: aspeed: add Intel AVCRP and JNCRP BMC platforms

PATCH Superseded Dawid Glazik 4 participants 13 messages Oct 2 – Oct 4

Subsystems (2)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

cover arm: dts: aspeed: add Intel AVCRP and JNCRP BMC platforms

This series adds initial upstream support for the Intel AVCRP and JNCRP BMC platforms based on the ASPEED AST2600.

The first two patches extend the ASPEED board binding to describe the new Intel platform compatibles. The remaining patches add the corresponding board DTS files and register them in the ASPEED DTB build list.

Dawid Glazik (4):
dt-bindings: arm: aspeed: Add Intel AVCRP board
dt-bindings: arm: aspeed: Add Intel JNCRP board
ARM: dts: aspeed: add Intel AVCRP BMC
ARM: dts: aspeed: add Intel JNCRP BMC

 .../bindings/arm/aspeed/aspeed.yaml           |   2 +
 arch/arm/boot/dts/aspeed/Makefile             |   2 +
 .../dts/aspeed/aspeed-bmc-intel-avcrp.dts     | 321 ++++++++++++++++++
 .../dts/aspeed/aspeed-bmc-intel-jncrp.dts     | 257 ++++++++++++++
 4 files changed, 582 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-intel-jncrp.dts

base-commit: e7ae89a0c97ce2b68b0983cd01eda67cf373517d
prerequisite-patch-id: 3af4bd880f896c97741b54ee18845b305a4bd061
prerequisite-patch-id: 23091b539ec7723a865d82da7703bf70c6ed0222
prerequisite-patch-id: ac42a7a373fdc407f6377d0b1c74d728af50ba42

Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/4 dt-bindings: arm: aspeed: Add Intel AVCRP board

Add a compatible string for Intel AVCRP BMC board.

---
 Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index 8ec7a3e74a21..2c8180e49b2f 100644
@@ -106,6 +106,7 @@ properties:
               - ibm,rainier-bmc
               - ibm,sbp1-bmc
               - ibm,system1-bmc
+              - intel,avcrp-bmc
               - ibm,tacoma-bmc
               - inventec,starscream-bmc
               - inventec,transformer-bmc
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 1/4] dt-bindings: arm: aspeed: Add Intel AVCRP board

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] dt-bindings: aspeed: incorrect alphabetical sorting of compatible list --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: aspeed: incorrect alphabetical sorting of compatible list --

commit 935e4a0e4317495a07a6555e784a49d89b6d676d
Author: Dawid Glazik <[email protected]>

dt-bindings: arm: aspeed: Add Intel AVCRP board

This commit adds a new compatible string for the Intel AVCRP BMC board to the ASPEED device tree binding schema.

Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml properties: · line 110

Quoted 10 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index 8ec7a3e74a21d..2c8180e49b2f3 100644
@@ -106,6 +106,7 @@ properties:
               - ibm,rainier-bmc
               - ibm,sbp1-bmc
               - ibm,system1-bmc
+              - intel,avcrp-bmc
               - ibm,tacoma-bmc

[Severity: Low]
This isn't a bug, but does this insertion break the alphabetical sorting of the compatible list?

The list of compatible strings for AST2600 based boards in this binding is maintained in strict alphabetical order. Since 'ibm' comes before 'intel', the correct placement for 'intel,avcrp-bmc' should likely be after all 'ibm,*' entries, specifically between 'ibm,tacoma-bmc' and 'inventec,starscream-bmc'.

Follow-up patches in the series continue this incorrect placement.

Quoted 2 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +0 -0
               - inventec,starscream-bmc
               - inventec,transformer-bmc
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

Re: [PATCH 1/4] dt-bindings: arm: aspeed: Add Intel AVCRP board

In reply to Dawid Glazik
Quoted 12 lines · Dawid Glazik

Add a compatible string for Intel AVCRP BMC board.

---
 Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +0 -0
index 8ec7a3e74a21..2c8180e49b2f 100644

Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml properties: · line 109

Quoted 4 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -106,6 +106,7 @@ properties:
               - ibm,rainier-bmc
               - ibm,sbp1-bmc
               - ibm,system1-bmc
+              - intel,avcrp-bmc

Why breaking the order? I could imagine people adding to the end, because they do not care yet still follows some logic. But this counters any logic.

Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml properties: · line 110

Quoted 1 line
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +0 -0
               - ibm,tacoma-bmc

Best regards,
Krzysztof

#4 lore raw

PATCH 2/4 dt-bindings: arm: aspeed: Add Intel JNCRP board

In reply to Dawid Glazik

Add a compatible string for Intel JNCRP BMC board.

---
 Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index 2c8180e49b2f..6f7d77efb30c 100644
@@ -107,6 +107,7 @@ properties:
               - ibm,sbp1-bmc
               - ibm,system1-bmc
               - intel,avcrp-bmc
+              - intel,jncrp-bmc
               - ibm,tacoma-bmc
               - inventec,starscream-bmc
               - inventec,transformer-bmc
Signature · 1 line
2.43.0
#5 lore raw

Re: [PATCH 2/4] dt-bindings: arm: aspeed: Add Intel JNCRP board

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] dt-bindings: unsorted compatible string intel,jncrp-bmc --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: unsorted compatible string intel,jncrp-bmc
--

commit 63032ee44f7295eca9a0a28d9b29cc74a0daecb5
Author: Dawid Glazik <[email protected]>

dt-bindings: arm: aspeed: Add Intel JNCRP board

This commit adds a new compatible string for the Intel JNCRP BMC board to the Aspeed device tree bindings.

Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml properties: · line 110

Quoted 9 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index 2c8180e49b2f3..6f7d77efb30c4 100644
@@ -107,6 +107,7 @@ properties:
               - ibm,sbp1-bmc
               - ibm,system1-bmc
               - intel,avcrp-bmc
+              - intel,jncrp-bmc

[Severity: Low]
This isn't a bug, but should this compatible string be inserted in alphabetical order?

The new string intel,jncrp-bmc is inserted before ibm,tacoma-bmc, which breaks the standard alphabetical ordering of the enum list.

Quoted 3 lines
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +0 -0
               - ibm,tacoma-bmc
               - inventec,starscream-bmc
               - inventec,transformer-bmc
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#6 lore raw

Re: [PATCH 2/4] dt-bindings: arm: aspeed: Add Intel JNCRP board

In reply to Dawid Glazik
Quoted 3 lines · Dawid Glazik

Add a compatible string for Intel JNCRP BMC board.

Squash patches. You don't even say anything useful in commit msg, just repeat subject and diff, so what is the point of having it separate?

Best regards,
Krzysztof

#7 lore raw

PATCH 3/4 ARM: dts: aspeed: add Intel AVCRP BMC

In reply to Dawid Glazik

Add the initial AST2600 device tree for the Intel AVCRP BMC platform.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../dts/aspeed/aspeed-bmc-intel-avcrp.dts     | 321 ++++++++++++++++++
 2 files changed, 322 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index 767f7c7652d5..ea4645ef9872 100644
@@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ibm-rainier-4u.dtb \
 	aspeed-bmc-ibm-sbp1.dtb \
 	aspeed-bmc-ibm-system1.dtb \
+	aspeed-bmc-intel-avcrp.dtb \
 	aspeed-bmc-intel-s2600wf.dtb \
 	aspeed-bmc-inspur-fp5280g2.dtb \
 	aspeed-bmc-inspur-nf5280m6.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +321 -0

321 lines not on this page · raw message

Signature · 1 line
2.43.0
#8 lore raw

Re: [PATCH 3/4] ARM: dts: aspeed: add Intel AVCRP BMC

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dts: 64MB memory leak due to unreferenced dynamically allocated video_memory --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: 64MB memory leak due to unreferenced dynamically allocated video_memory --

commit d3847f898b02cabadeb24ded4f04a71970cdd026
Author: Dawid Glazik <[email protected]>

ARM: dts: aspeed: add Intel AVCRP BMC

Add the initial AST2600 device tree for the Intel AVCRP BMC platform.

Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +0 -0
new file mode 100644
index 0000000000000..ba00916891724

[ ... ]

Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +9 -0
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		video_engine_memory: jpegbuffer {
+			size = <0x02000000>; /* 32M */
+			alignment = <0x01000000>;
+			compatible = "shared-dma-pool";

arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts line 44

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +10 -0
+			reusable;
+		};
+
+		video_memory: video {
+			size = <0x04000000>;
+			alignment = <0x01000000>;
+			compatible = "shared-dma-pool";
+			no-map;
+		};
+	};

[Severity: Medium]
Does this code leak 64MB of system memory? The video_memory node is defined with size = <0x04000000> and no-map, which dynamically allocates 64MB of RAM and removes it from the linear mapping.

However, this node is never referenced by any device via a memory-region property (unlike video_engine_memory which is correctly referenced by &video).

Since it is unreferenced and dynamically allocated without a node_fixup to write the reg property, no driver can discover or utilize this memory, and it is permanently removed from the system.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
#9 lore raw

Re: [PATCH 3/4] ARM: dts: aspeed: add Intel AVCRP BMC

In reply to Dawid Glazik
Quoted 35 lines · Dawid Glazik

Add the initial AST2600 device tree for the Intel AVCRP BMC platform.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../dts/aspeed/aspeed-bmc-intel-avcrp.dts     | 321 ++++++++++++++++++
 2 files changed, 322 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index 767f7c7652d5..ea4645ef9872 100644
@@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ibm-rainier-4u.dtb \
 	aspeed-bmc-ibm-sbp1.dtb \
 	aspeed-bmc-ibm-system1.dtb \
+	aspeed-bmc-intel-avcrp.dtb \
 	aspeed-bmc-intel-s2600wf.dtb \
 	aspeed-bmc-inspur-fp5280g2.dtb \
 	aspeed-bmc-inspur-nf5280m6.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +8 -0
new file mode 100644
index 000000000000..ba0091689172
@@ -0,0 +1,321 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// Copyright 2026 Intel Corporation
+
+/dts-v1/;
+
+#include "aspeed-g6.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
+

arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts line 18

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +10 -0
+/ {
+	model = "Intel AVCRP BMC";
+	compatible = "intel,avcrp-bmc", "aspeed,ast2600";
+
+	aliases {
+		serial4 = &uart5;
+	};
+
+	chosen {
+		bootargs = "console=ttyS4,115200n8";

We moved to stdout property years ago.

Best regards,
Krzysztof

Reviewed-by on v1 3/4
#10 lore raw

Re: [PATCH 3/4] ARM: dts: aspeed: add Intel AVCRP BMC

In reply to Dawid Glazik
Quoted 12 lines

+&mdio1 {

arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +11 -0
+	status = "okay";
+
+	ethphy1: ethernet-phy@0 {
+		compatible = "ethernet-phy-id001c.c916";
+		reg = <0>;
+		reset-gpios = <&gpio0 ASPEED_GPIO(C, 1) GPIO_ACTIVE_LOW>;
+		reset-assert-us = <10000>;
+		reset-deassert-us = <50000>;
+	};
+};
+

arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts line 105

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-avcrp.dts new file +10 -0
+&mac1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rgmii2_default>;
+	clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>,
+		 <&syscon ASPEED_CLK_MAC2RCLK>;
+	clock-names = "MACCLK", "RCLK";
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethphy1>;
+};

Oh, wow. Somebody actually got RGMII delays correct on the first try for an aspeed board.

For these two nodes only:

Andrew

#11 lore raw

PATCH 4/4 ARM: dts: aspeed: add Intel JNCRP BMC

In reply to Dawid Glazik

Add the initial AST2600 device tree for the Intel JNCRP BMC platform.

---
 arch/arm/boot/dts/aspeed/Makefile             |   1 +
 .../dts/aspeed/aspeed-bmc-intel-jncrp.dts     | 257 ++++++++++++++++++
 2 files changed, 258 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-intel-jncrp.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index ea4645ef9872..f0d665b3dcee 100644
@@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-ibm-sbp1.dtb \
 	aspeed-bmc-ibm-system1.dtb \
 	aspeed-bmc-intel-avcrp.dtb \
+	aspeed-bmc-intel-jncrp.dtb \
 	aspeed-bmc-intel-s2600wf.dtb \
 	aspeed-bmc-inspur-fp5280g2.dtb \
 	aspeed-bmc-inspur-nf5280m6.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-jncrp.dts new file +257 -0

257 lines not on this page · raw message

Signature · 1 line
2.43.0
Reviewed-by on v1 4/4
#12 lore raw

Re: [PATCH 4/4] ARM: dts: aspeed: add Intel JNCRP BMC

Quoted 12 lines

+&mdio1 {

arch/arm/boot/dts/aspeed/aspeed-bmc-intel-jncrp.dts new file +11 -0
+	status = "okay";
+
+	ethphy1: ethernet-phy@0 {
+		compatible = "ethernet-phy-id001c.c916";
+		reg = <0>;
+		reset-gpios = <&gpio0 ASPEED_GPIO(C, 1) GPIO_ACTIVE_LOW>;
+		reset-assert-us = <10000>;
+		reset-deassert-us = <50000>;
+	};
+};
+

arch/arm/boot/dts/aspeed/aspeed-bmc-intel-jncrp.dts line 72

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-intel-jncrp.dts new file +10 -0
+&mac1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rgmii2_default>;
+	clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>,
+		 <&syscon ASPEED_CLK_MAC2RCLK>;
+	clock-names = "MACCLK", "RCLK";
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethphy1>;
+};

For these two nodes only:

Andrew