Introduce ASPEED AST27xx BMC SoC
Subsystems (5)
Ryan Chen
reviewerv9 cover Introduce ASPEED AST27xx BMC SoC
This introduces initial support for the Aspeed AST27xx SoC and the AST2700 Evaluation Board (EVB) to the Linux kernel. The AST27xx is the 8th generation Baseboard Management Controller (BMC) SoC from Aspeed, featuring improved performance, enhanced security, and expanded I/O capabilities compared to previous generations.
AST27xx SOC Family
- https://www.aspeedtech.com/server_ast2700/
- https://www.aspeedtech.com/server_ast2720/
- https://www.aspeedtech.com/server_ast2750/
Bindings Dependencies:
check with "make CHECK_DTBS=y W=1 arch/arm64/boot/dts/aspeed/ dtbs"
- scu/scu-ic/silicon-id: Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
- intc: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-interrupt.yaml
- scu-ic: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2500-scu-ic.yaml
- pinctrl soc0: Documentation/devicetree/bindings/pinctrl/aspeed,ast2700-soc0-pinctrl.yaml
- pinctrl soc1: Documentation/devicetree/bindings/pinctrl/aspeed,ast2700-soc1-pinctrl.yaml
- gpio: Documentation/devicetree/bindings/gpio/aspeed,ast2400-gpio.yaml
- sgpio: Documentation/devicetree/bindings/gpio/aspeed,sgpio.yaml
- fmc/spi: Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml
- mdio: Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
- sd/sdhci: Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml
- usb-vhub: Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml
- ehci: Documentation/devicetree/bindings/usb/generic-ehci.yaml
- uhci: Documentation/devicetree/bindings/usb/usb-uhci.yaml
- wdt: Documentation/devicetree/bindings/watchdog/aspeed,ast2400-wdt.yaml
- mailbox: Documentation/devicetree/bindings/mailbox/aspeed,ast2700-mailbox.yaml
- adc: Documentation/devicetree/bindings/iio/adc/aspeed,ast2600-adc.yaml
- pwm-tach: Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml
- fsi: Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml
---
Changes in v9:
- use b4 send
- rebase on linux-next
- split aspeed-g7-common.dtsi to aspeed-g7-soc0/1.dtsi
- update all interrupt-extend by use aspeed,ast2700-intc0/1 parent
- MAINTAINERS: add arch/arm64/boot/dts/aspeed/ entry
- Kconfig.platforms: reword ARCH_ASPEED help text
- cover: complete bindings dependencies list and fix intc binding path
- Link to v8: https://lore.kernel.org/all/[email protected]/
Changes in v8:
- Kconfig.platforms
- update commit message and help description.
- aspeed-g7-a35.dtsi,aspeed-g7-common.dtsi,ast2700-evb.dts
- change license using a dual license of MIT + GPL2.0+
- add company copyright.
- merge original v7 patch(3/5) and (4/5) to 1 v8patch(3/4)
- that can do build test with make CHECK_DTBS=y W=1 arch/arm64/boot/dts/aspeed/ dtbs
- Link to v7: https://lore.kernel.org/all/[email protected]/
Changes in v7:
- remove aspeed,ast2x00-scu.yaml modify
- separate aspeed-g7.dtsi to aspeed-g7-a35.dtsi and aspeed-g7-common.dtsi -move aliases to ast2700-evb.dts file
-Link to v6: https://lore.kernel.org/all/[email protected]/
Changes in v6:
- rebased on v6.18-rc1
- aspeed,ast2x00-scu.yaml
- fixed dt-binding yaml issuse report.
-Linke to v5: https://lore.kernel.org/all/[email protected]/
Changes in v5:
- modify ast27XX 7th generation description to 8th generation.
- aspeed.yaml
- modify missing blank line.
- Kconfig.platforms
- modify ast27XX 7th generation to 8th generation.
-Link to v4: https://lore.kernel.org/all/[email protected]/
Changes in v4:
- make CHECK_DTBS=y arch/arm64/boot/dts/aspeed/ fix.
- modify commit message remove itemlize.
- remove modify aspeed,ast2700-intc.yaml patch.
- aspeed.yaml
- Add AST2700 board compatible.
- aspeed-g7.dtsi
- modify all size-cells from 1 to 2.
- add serial aliases, gpio, mdio, uart0 ~ 14.
- add firmware for optee, reserved memory for atf and optee.
- modify cpu@0 to cpu0: cpu@0.
- fix intc-ic for yaml dependency.
- ast2700-evb.dts
- update stdout-path = "serial12:115200n8";
-Link to v3: https://lore.kernel.org/all/[email protected]/
Changes in v3:
- Split clk and reset driver to other commits, which are in series of
"Add support for AST2700 clk driver".
- For BMC console by UART12, add uart12 using ASPEED INTC architecture. aspeed,ast2700-intc.yaml
- Add minItems to 1 to fix the warning by "make dtbs_check W=1".
- Add intc1 into example.Kconfig.platforms
- Remove MACH_ASPEED_G7.
-Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
-Link to v1: https://lore.kernel.org/all/[email protected]/
---
Ryan Chen (4):
dt-bindings: arm: aspeed: Add AST2700 board compatible
arm64: Kconfig: Add ASPEED SoC family Kconfig support
arm64: dts: aspeed: Add initial AST27xx SoC device tree
arm64: configs: Update defconfig for AST2700 platform support
.../devicetree/bindings/arm/aspeed/aspeed.yaml | 6 + MAINTAINERS | 1 + arch/arm64/Kconfig.platforms | 6 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/aspeed/Makefile | 4 + .../dts/aspeed/aspeed-evb-flash-layout-128.dtsi | 32 + arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi | 196 ++++ .../boot/dts/aspeed/aspeed-g7-soc0-pinctrl.dtsi | 225 ++++ arch/arm64/boot/dts/aspeed/aspeed-g7-soc0.dtsi | 230 ++++ .../boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi | 1113 ++++++++++++++++++++ arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi | 557 ++++++++++ arch/arm64/boot/dts/aspeed/ast2700-evb.dts | 65 ++ arch/arm64/configs/defconfig | 1 + 13 files changed, 2437 insertions(+)
---
base-commit: 6e845bcb78c95af935094040bd4edc3c2b6dd784
change-id: 20260205-upstream_ast2700-6efec42ab228
Best regards,
Signature · 1 line
Ryan Chen <[email protected]>
Ryan Chen
reviewerPATCH v9 1/4 dt-bindings: arm: aspeed: Add AST2700 board compatible
Add device tree compatible string for AST2700 based boards ("aspeed,ast2700-evb" and "aspeed,ast2700") to the Aspeed SoC board bindings. This allows proper schema validation and enables support for AST2700 platforms.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +6 -0
@@ -119,4 +119,10 @@ properties: - ufispace,ncplite-bmc - const: aspeed,ast2600 + - description: AST2700 based boards + items: + - enum: + - aspeed,ast2700-evb + - const: aspeed,ast2700 + additionalProperties: true
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v9 2/4 arm64: Kconfig: Add ASPEED SoC family Kconfig support
In reply to Ryan ChenAdd support for ASPEED SoC family like ast27XX 8th generation ASPEED BMCs.
--- arch/arm64/Kconfig.platforms | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/Kconfig.platforms +6 -0
@@ -48,6 +48,12 @@ config ARCH_ARTPEC help This enables support for the ARMv8 based ARTPEC SoC Family. +config ARCH_ASPEED + bool "Aspeed SoC family" + help + This enables support for ASPEED's SoC family, such as the + ast27XX 8th generation Baseboard Management Controller (BMC). + config ARCH_AXIADO bool "Axiado SoC Family" select GPIOLIB
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v9 3/4 arm64: dts: aspeed: Add initial AST27xx SoC device tree
In reply to Ryan ChenAdd initial device tree support for the ASPEED AST27xx family, the 8th-generation Baseboard Management Controller (BMC) SoCs.
AST27xx SOC Family
- https://www.aspeedtech.com/server_ast2700/
- https://www.aspeedtech.com/server_ast2720/
- https://www.aspeedtech.com/server_ast2750/
The AST27xx features a dual-SoC architecture consisting of two dies, referred to as SoC0 and SoC1 - interconnected through an internal proprietary bus. Both SoCs share the same address decoding scheme, while each maintains independent clock and reset domains.
- SoC0 (CPU die): contains a quad-core Cortex-A35 cluster and two Cortex-M4 cores, along with high-speed peripherals.
- SoC1 (I/O die): includes the BootMCU (responsible for system boot) and its own clock/reset domains low-speed peripherals.
The device tree describes the SoC0 and SoC1 domains and their peripheral layouts.
--- MAINTAINERS | 1 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/aspeed/Makefile | 4 + .../dts/aspeed/aspeed-evb-flash-layout-128.dtsi | 32 + arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi | 196 ++++ .../boot/dts/aspeed/aspeed-g7-soc0-pinctrl.dtsi | 225 ++++ arch/arm64/boot/dts/aspeed/aspeed-g7-soc0.dtsi | 230 ++++ .../boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi | 1113 ++++++++++++++++++++ arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi | 557 ++++++++++ arch/arm64/boot/dts/aspeed/ast2700-evb.dts | 65 ++ 10 files changed, 2424 insertions(+)
MAINTAINERS +1 -0
@@ -2683,6 +2683,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/bmc/linux.git F: Documentation/devicetree/bindings/arm/aspeed/ F: arch/arm/boot/dts/aspeed/ F: arch/arm/mach-aspeed/ +F: arch/arm64/boot/dts/aspeed/ N: aspeed ARM/AXIADO ARCHITECTURE
arch/arm64/boot/dts/Makefile +1 -0
@@ -9,6 +9,7 @@ subdir-y += amlogic subdir-y += apm subdir-y += apple subdir-y += arm +subdir-y += aspeed subdir-y += axiado subdir-y += bitmain subdir-y += blaize
arch/arm64/boot/dts/aspeed/Makefile new file +4 -0
@@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 + +dtb-$(CONFIG_ARCH_ASPEED) += \ + ast2700-evb.dtb
arch/arm64/boot/dts/aspeed/aspeed-evb-flash-layout-128.dtsi new file +32 -0
@@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT + +partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + u-boot@0 { + reg = <0x0 0x400000>; // 4MB + label = "u-boot"; + }; + + u-boot-env@400000 { + reg = <0x400000 0x20000>; // 128KB + label = "u-boot-env"; + }; + + kernel@420000 { + reg = <0x420000 0x900000>; // 9MB + label = "kernel"; + }; + + rofs@d20000 { + reg = <0xd20000 0x52E0000>; // 82.875MB + label = "rofs"; + }; + + rwfs@6000000 { + reg = <0x6000000 0x2000000>; // 32MB + label = "rwfs"; + }; +};
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +196 -0
196 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/aspeed-g7-soc0-pinctrl.dtsi new file +225 -0
225 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/aspeed-g7-soc0.dtsi new file +230 -0
230 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +1113 -0
1,113 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +557 -0
557 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/ast2700-evb.dts new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] INTC1 maps its summary interrupts to INTC0's TSP routing range, preventing SOC1 interrupts from…
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] INTC1 maps its summary interrupts to INTC0's TSP routing range, preventing SOC1 interrupts from reaching the Cortex-A35 GIC.
- [Low] The device tree defines ad-hoc top-level nodes ('secondary', 'tertiary', 'bootmcu') that violate standard naming schemas, and embeds direct Linux kernel source URLs to justify '#size-cells' behavior.
- [Low] Duplicate label definitions in the pinctrl device tree include for multiple pinctrl groups in SOC1 will cause a hard DTC build failure.
--
commit 92031db9a3c255cefbfcc33df4ca0cb9780dd226
Author: Ryan Chen <[email protected]>
arm64: dts: aspeed: Add initial AST27xx SoC device tree
Add initial device tree support for the ASPEED AST27xx family, the 8th-generation Baseboard Management Controller (BMC) SoCs.
Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0
[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi l2: l2-cache0 { · line 89
Quoted 9 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0@@ -82,10 +82,10 @@ l2: l2-cache0 { }; secondary { #address-cells = <2>; /* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/of/address.c?h=v6.16#n491 */ #size-cells = <0>; /* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/of/address.c?h=v6.16#n430 */
[Severity: Low]
Are these OS-specific comments and ad-hoc root nodes ('secondary', 'tertiary', 'bootmcu') appropriate here?
Device trees typically provide an OS-agnostic hardware description using generic nodes (like 'bus', 'soc', or 'remoteproc'). Embedding Linux kernel source URLs suggests the hardware is being modeled around a specific Linux parser implementation rather than providing an independent hardware description.
Quoted 1 line
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0ssp_nvic: interrupt-controller@1,e000e100 {
[ ... ]
Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0
[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi pinctrl_hvi3c15_default: hvi3c15-default-state { · line 483
Quoted 10 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0@@ -475,10 +475,10 @@ pinctrl_hvi3c15_default: hvi3c15-default-state { function = "I3C15"; groups = "HVI3C15"; }; pinctrl_tach0_default: tach0-default-state { function = "TACH0"; groups = "TACH0"; };
[Severity: Low]
Is this label duplicated? There is another pinctrl_tach0_default definition earlier in this file.
Defining the same pinctrl label multiple times (such as pinctrl_tach0_default through pinctrl_tach15_default, and pinctrl_ncts5_default) in the same device tree will cause a fatal syntax error in the Device Tree Compiler.
Quoted 4 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0pinctrl_tach1_default: tach1-default-state {arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0function = "TACH1"; groups = "TACH1"; };
[ ... ]
Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0
[ ... ]
Quoted 11 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0@@ -396,10 +396,10 @@ sgpiom1: sgpiom@14c0d000 { bus-frequency = <12000000>; status = "disabled"; }; intc1: interrupt-controller@14c18000 { compatible = "aspeed,ast2700-intc1"; reg = <0 0x14c18000 0 0x400>; interrupt-controller; interrupt-parent = <&intc0>; #interrupt-cells = <1>;
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi
Quoted 4 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0aspeed,interrupt-ranges = <0 6 &intc0 480>, /* M0 ~ M5 */ <10 6 &intc0 490>, /* M10 ~ M15 */ <20 6 &intc0 500>, /* M20 ~ M25 */
[Severity: High]
Does this incorrectly route SOC1 interrupts to the TSP instead of the Cortex-A35 GIC?
Looking at intc0 in aspeed-g7-soc0.dtsi, interrupts 426 through 553 are linearly mapped to the Tertiary Service Processor (tsp_nvic):
<426 128 &tsp_nvic 0 0 >, /* linear to TSP */
Since intc1 maps its cascaded interrupts to intc0 in the 480-520 range, won't this break interrupt delivery for all SOC1 peripherals (like uart12, SDHCI, FMC, and SPI) on the main CPU by routing them to the TSP instead?
Quoted 4 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0<30 6 &intc0 510>, /* M30 ~ M35 */ <40 6 &intc0 520>, /* M40 ~ M45 */ <50 1 &bootmcu_hlic 11>; /* only 1 pin to BootMCU */ };
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Ryan Chen
reviewerRE: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Quoted 47 lines
Subject: Re: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] INTC1 maps its summary interrupts to INTC0's TSP routing range, preventing SOC1 interrupts from reaching the Cortex-A35 GIC.
- [Low] The device tree defines ad-hoc top-level nodes ('secondary', 'tertiary', 'bootmcu') that violate standard naming schemas, and embeds direct Linux kernel source URLs to justify '#size-cells' behavior.
- [Low] Duplicate label definitions in the pinctrl device tree include for multiple pinctrl groups in SOC1 will cause a hard DTC build failure.
--commit
92031db9a3c255cefbfcc33df4ca0cb9780dd226
Author: Ryan Chen <[email protected]>arm64: dts: aspeed: Add initial AST27xx SoC device tree
Add initial device tree support for the ASPEED AST27xx family, the 8th-generation Baseboard Management Controller (BMC) SoCs.
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi l2: l2-cache0 { · line 86
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0@@ -82,10 +82,10 @@ l2: l2-cache0 { }; secondary { #address-cells = <2>; /*https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
of/address.c?h=v6.16#n491 */Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0#size-cells = <0>; /*https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tre
e/drivers/of/address.c?h=v6.16#n430 */[Severity: Low]
Are these OS-specific comments and ad-hoc root nodes ('secondary', 'tertiary', 'bootmcu') appropriate here?
Quoted 5 lines
Device trees typically provide an OS-agnostic hardware description using generic nodes (like 'bus', 'soc', or 'remoteproc'). Embedding Linux kernel source URLs suggests the hardware is being modeled around a specific Linux parser implementation rather than providing an independent hardware description.
The concern is valid and acknowledged. The sub-processor interrupt controllers (ssp_nvic for SSP/Cortex-M4, tsp_nvic for TSP/Cortex-M4, bootmcu_hlic for BootMCU/RISC-V) cannot be placed under the soc1 bus because their registers reside in each sub-processor's private address space and are not accessible from the Cortex-A35 cores.
The 2-cell address scheme (#address-cells = <2>, #size-cells = <0>) encodes a <cpu-index reg-base> tuple as suggested by Matt Johnston [1]. The Linux kernel source URLs in the comments are admittedly Linux-specific and will be removed in v11; the cover letter explains the rationale instead.
All sub-processor nodes carry status = "disabled". They are present solely to provide phandle references for the aspeed,interrupt-ranges properties in intc0 and intc1, which the interrupt controller drivers use to build the interrupt domain hierarchy at boot time.
[1] https://lore.kernel.org/all/1a2ca78746e00c2ec4bfc2953a897c48376ed36f.camel@codeconstruct.com.au/
Quoted 25 lines
Quoted 2 lines
ssp_nvic: interrupt-controller@1,e000e100 {[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi pinctrl_hvi3c15_default: hvi3c15-default-state { · line 483
Quoted 10 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0@@ -475,10 +475,10 @@ pinctrl_hvi3c15_default: hvi3c15-default-state { function = "I3C15"; groups = "HVI3C15"; }; pinctrl_tach0_default: tach0-default-state { function = "TACH0"; groups = "TACH0"; };[Severity: Low]
Is this label duplicated? There is anotherpinctrl_tach0_defaultdefinition earlier in this file.
Quoted 3 lines
Defining the same pinctrl label multiple times (such as
pinctrl_tach0_defaultthroughpinctrl_tach15_default, andpinctrl_ncts5_default) in the same device tree will cause a fatal syntax error in the Device Tree Compiler.
Will fixed in v11. The labels pinctrl_tach0_default through pinctrl_tach15_default were duplicated in aspeed-g7-soc1-pinctrl.dtsi due to a copy-paste error. The second block has been removed.
Quoted 33 lines
Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0pinctrl_tach1_default: tach1-default-state {arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0function = "TACH1"; groups = "TACH1"; };[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0[ ... ]
Quoted 11 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0@@ -396,10 +396,10 @@ sgpiom1: sgpiom@14c0d000 { bus-frequency = <12000000>; status = "disabled"; }; intc1: interrupt-controller@14c18000 { compatible = "aspeed,ast2700-intc1"; reg = <0 0x14c18000 0 0x400>; interrupt-controller; interrupt-parent = <&intc0>; #interrupt-cells = <1>;arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi
Quoted 4 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0aspeed,interrupt-ranges = <0 6 &intc0 480>, /* M0 ~ M5 */ <10 6 &intc0 490>, /* M10 ~ M15 */ <20 6 &intc0 500>, /* M20 ~ M25 */[Severity: High]
Does this incorrectly route SOC1 interrupts to the TSP instead of the Cortex-A35 GIC?
Quoted 8 lines
Looking at intc0 in
aspeed-g7-soc0.dtsi, interrupts 426 through 553 are linearly mapped to the Tertiary Service Processor (tsp_nvic):<426 128 &tsp_nvic 0 0 >, /* linear to TSP */Since intc1 maps its cascaded interrupts to intc0 in the 480-520 range, won't this break interrupt delivery for all SOC1 peripherals (like uart12, SDHCI, FMC, and SPI) on the main CPU by routing them to the TSP instead?
This is a false positive caused by conflating two separate address spaces within intc0.
intc0 has two distinct input interfaces:
1. Direct interrupts (positions 0–479): described by aspeed,interrupt-ranges in the DTS. The entry
<426 128 &tsp_nvic 0 0> maps intc0 *outputs* 426–553 to TSP.
2. Multiplexed interrupts / INTM (positions 480–529): INT_NUM=480 is the INTM base address. This interface is *not* described by aspeed,interrupt-ranges; it is handled exclusively by aspeed_intc0_intm_routes[] in irq-ast2700-intc0.c.
When intc1 specifies <0 6 &intc0 480>, the value 480 refers to INTM input 0, not direct interrupt position 480. The driver's resolve_parent_route_for_input() confirms the correct path:
if (input < INT_NUM) /* 480 < 480 → false */
/* consults aspeed,interrupt-ranges — TSP range lives here */
else if (input < INT_NUM + INTM_NUM) /* 480 < 530 → true */
c0o = aspeed_intc0_intm_routes[(input - INT_NUM) / 10];
/* = intm_routes[0] = 192 */intc0 output 192 is covered by <192 10 &gic GIC_SPI 192 ...>, so SoC1 INTM interrupts correctly reach the GIC. No change needed.
Quoted 10 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi
Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1.dtsi new file +0
-0<30 6 &intc0 510>, /* M30 ~ M35 */ <40 6 &intc0 520>, /* M40 ~ M45 */ <50 1 &bootmcu_hlic 11>; /* only 1 pin to BootMCU */ };--
Sashiko AI review ·
https://sashiko.dev/#/patchset/20260609-upstream_ast2700-v9-0-f631752f0cb
[email protected]?part=3
Andrew Jeffery
maintainerRe: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Hi Ryan,
Quoted 53 lines · Ryan Chen
Quoted 47 lines
Subject: Re: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] INTC1 maps its summary interrupts to INTC0's TSP routing range, preventing SOC1 interrupts from reaching the Cortex-A35 GIC.
- [Low] The device tree defines ad-hoc top-level nodes ('secondary', 'tertiary', 'bootmcu') that violate standard naming schemas, and embeds direct Linux kernel source URLs to justify '#size-cells' behavior.
- [Low] Duplicate label definitions in the pinctrl device tree include for multiple pinctrl groups in SOC1 will cause a hard DTC build failure.
--commit
92031db9a3c255cefbfcc33df4ca0cb9780dd226
Author: Ryan Chen <[email protected]>arm64: dts: aspeed: Add initial AST27xx SoC device tree
Add initial device tree support for the ASPEED AST27xx family, the 8th-generation Baseboard Management Controller (BMC) SoCs.
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi l2: l2-cache0 { · line 86
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0@@ -82,10 +82,10 @@ l2: l2-cache0 { }; secondary { #address-cells = <2>; /*https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
of/address.c?h=v6.16#n491 */Quoted 5 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0#size-cells = <0>; /*https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tre
e/drivers/of/address.c?h=v6.16#n430 */[Severity: Low]
Are these OS-specific comments and ad-hoc root nodes ('secondary', 'tertiary', 'bootmcu') appropriate here?Quoted 5 lines
Device trees typically provide an OS-agnostic hardware description using generic nodes (like 'bus', 'soc', or 'remoteproc'). Embedding Linux kernel source URLs suggests the hardware is being modeled around a specific Linux parser implementation rather than providing an independent hardware description.
Quoted 8 lines
The concern is valid and acknowledged. The sub-processor interrupt controllers (
ssp_nvicfor SSP/Cortex-M4,tsp_nvicfor TSP/Cortex-M4,bootmcu_hlicfor BootMCU/RISC-V) cannot be placed under the soc1 bus because their registers reside in each sub-processor's private address space and are not accessible from the Cortex-A35 cores.The 2-cell address scheme (#address-cells = <2>, #size-cells = <0>) encodes a <cpu-index reg-base> tuple as suggested by Matt Johnston [1].
That was me, not Matt.
Further, that two cell scheme was part of a tentative sketch for discussion from quite some time ago and wasn't intended to be copy/pasted without further thought. We should remove the index now.
Quoted 36 lines
The Linux kernel source URLs in the comments are admittedly Linux-specific and will be removed in v11; the cover letter explains the rationale instead.
All sub-processor nodes carry status = "disabled". They are present solely to provide phandle references for the aspeed,interrupt-ranges properties in intc0 and intc1, which the interrupt controller drivers use to build the interrupt domain hierarchy at boot time.
[1] https://lore.kernel.org/all/1a2ca78746e00c2ec4bfc2953a897c48376ed36f.camel@codeconstruct.com.au/
Quoted 25 lines
Quoted 2 lines
ssp_nvic: interrupt-controller@1,e000e100 {[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi pinctrl_hvi3c15_default: hvi3c15-default-state { · line 483
Quoted 10 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0@@ -475,10 +475,10 @@ pinctrl_hvi3c15_default: hvi3c15-default-state { function = "I3C15"; groups = "HVI3C15"; }; pinctrl_tach0_default: tach0-default-state { function = "TACH0"; groups = "TACH0"; };[Severity: Low]
Is this label duplicated? There is anotherpinctrl_tach0_defaultdefinition earlier in this file.
Quoted 7 lines
Quoted 3 lines
Defining the same pinctrl label multiple times (such as
pinctrl_tach0_defaultthroughpinctrl_tach15_default, andpinctrl_ncts5_default) in the same device tree will cause a fatal syntax error in the Device Tree Compiler.Will fixed in v11. The labels
pinctrl_tach0_defaultthroughpinctrl_tach15_defaultwere duplicated inaspeed-g7-soc1-pinctrl.dtsidue to a copy-paste error. The second block has been removed.
Please send me fixes for these, and avoid sending patches under review to soc@ in the future:
Quoted 3 lines
Note that the [email protected] is usually not the place to discuss the patches, thus work sent to this address should be already considered as acceptable by the community.
https://docs.kernel.org/process/maintainer-soc.html#submitting-patches-to-the-main-soc-maintainers
Andrew
Ryan Chen
reviewerRE: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Quoted 71 lines
Subject: Re: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Hi Ryan,
Quoted 14 lines · Ryan Chen
Quoted 14 lines
Subject: Re: [PATCH v9 3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to
consider:
- [High] INTC1 maps its summary interrupts to INTC0's TSP routing range, preventing SOC1 interrupts from reaching the Cortex-A35 GIC.
- [Low] The device tree defines ad-hoc top-level nodes ('secondary', 'tertiary',
'bootmcu') that violate standard naming schemas, and embeds direct Linux kernel source URLs to justify '#size-cells' behavior.
- [Low] Duplicate label definitions in the pinctrl device tree include for multiple pinctrl groups in SOC1 will cause a hard DTC buildfailure.
Quoted 50 lines
Quoted 38 lines
--
commit
92031db9a3c255cefbfcc33df4ca0cb9780dd226
Author: Ryan Chen <[email protected]>arm64: dts: aspeed: Add initial AST27xx SoC device tree
Add initial device tree support for the ASPEED AST27xx family, the 8th-generation Baseboard Management Controller (BMC) SoCs.
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0[ ... ]
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi l2: l2-cache0 { · line 86
Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0@@ -82,10 +82,10 @@ l2: l2-cache0 { }; secondary { #address-cells = <2>; /*https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/t
ree/drivers/
of/address.c?h=v6.16#n491 */Quoted 6 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi new file +0
-0#size-cells = <0>; /*https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
/tre
e/drivers/of/address.c?h=v6.16#n430 */[Severity: Low]
Are these OS-specific comments and ad-hoc root nodes ('secondary', 'tertiary',
'bootmcu') appropriate here?Quoted 5 lines
Device trees typically provide an OS-agnostic hardware description using generic nodes (like 'bus', 'soc', or 'remoteproc'). Embedding Linux kernel source URLs suggests the hardware is being modeled around a specific Linux parser implementation rather than providing an independent hardware description.
The concern is valid and acknowledged. The sub-processor interrupt controllers (
ssp_nvicfor SSP/Cortex-M4,tsp_nvicfor TSP/Cortex-M4,bootmcu_hlicfor BootMCU/RISC-V) cannot be placed under the soc1 bus because their registers reside in each sub-processor's private address space and are not accessible from the Cortex-A35 cores.
Quoted 8 lines
Quoted 2 lines
The 2-cell address scheme (#address-cells = <2>, #size-cells = <0>) encodes a <cpu-index reg-base> tuple as suggested by Matt Johnston [1].
That was me, not Matt.
Further, that two cell scheme was part of a tentative sketch for discussion from quite some time ago and wasn't intended to be copy/pasted without further thought. We should remove the index now.
I will replace by following
secondary {
#address-cells = <1>;
#size-cells = <0>;
ssp_nvic: interrupt-controller@e000e100 {
compatible = "arm,v7m-nvic";
#interrupt-cells = <2>;
#address-cells = <0>;
interrupt-controller;
reg = <0xe000e100>;
arm,num-irq-priority-bits = <3>;
status = "disabled";
};
};
tertiary {
#address-cells = <1>;
#size-cells = <0>;
tsp_nvic: interrupt-controller@e000e100 {
compatible = "arm,v7m-nvic";
#interrupt-cells = <2>;
#address-cells = <0>;
interrupt-controller;
reg = <0xe000e100>;
arm,num-irq-priority-bits = <3>;
status = "disabled";
};
};Quoted 44 lines
Quoted 25 lines
The Linux kernel source URLs in the comments are admittedly Linux-specific and will be removed in v11; the cover letter explains the rationale instead.
All sub-processor nodes carry status = "disabled". They are present solely to provide phandle references for the aspeed,interrupt-ranges properties in intc0 and intc1, which the interrupt controller drivers use to build the interrupt domain hierarchy at boot time.
[1]
https://lore.kernel.org/all/1a2ca78746e00c2ec4bfc2953a897c48376ed36f.c
[email protected]/Quoted 11 lines
Quoted 2 lines
ssp_nvic: interrupt-controller@1,e000e100 {[ ... ]
Quoted 7 lines
diff --git
a/arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsib/arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsinew file mode 100644
index 0000000000000..72d93323593d5arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0[ ... ]
Quoted 1 line
Quoted 1 line
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi pinctrl_hvi3c15_default: hvi3c15-default-state
Quoted 1 line
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0@@ -475,10 +475,10 @@ pinctrl_hvi3c15_default: hvi3c15-default-state{
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
arch/arm64/boot/dts/aspeed/aspeed-g7-soc1-pinctrl.dtsi new file +0
-0function = "I3C15"; groups = "HVI3C15"; }; pinctrl_tach0_default: tach0-default-state { function = "TACH0"; groups = "TACH0"; };Quoted 7 lines
Quoted 7 lines
[Severity: Low]
Is this label duplicated? There is anotherpinctrl_tach0_defaultdefinition earlier in this file.Defining the same pinctrl label multiple times (such as
pinctrl_tach0_defaultthroughpinctrl_tach15_default, andpinctrl_ncts5_default) in the same device tree will cause a fatal syntax
Quoted 8 lines
error in the Device Tree Compiler.
Quoted 4 lines
Will fixed in v11. The labels
pinctrl_tach0_defaultthroughpinctrl_tach15_defaultwere duplicated inaspeed-g7-soc1-pinctrl.dtsidue to a copy-paste error. The second block has been removed.Please send me fixes for these, and avoid sending patches under review to soc@ in the future:
Yes. I follow.
Thanks the instruction.
Quoted 9 lines
Quoted 4 lines
Note that the [email protected] is usually not the place to discuss the patches, thus work sent to this address should be already considered as acceptable by the community.
https://docs.kernel.org/process/maintainer-soc.html#submitting-patches-to-th
e-main-soc-maintainersAndrew
Ryan Chen
reviewerPATCH v9 4/4 arm64: configs: Update defconfig for AST2700 platform support
In reply to Ryan ChenEnable options for ASPEED AST2700 SoC.
--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_ARCH_SUNXI=y CONFIG_ARCH_ALPINE=y CONFIG_ARCH_APPLE=y CONFIG_ARCH_ARTPEC=y +CONFIG_ARCH_ASPEED=y CONFIG_ARCH_AXIADO=y CONFIG_ARCH_BCM=y CONFIG_ARCH_BCM2835=y
Signature · 1 line
2.34.1
This series was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:
Hello:
This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:
Quoted 6 lines · On Tue, 9 Jun 2026 10:47:17 +0800 you wrote:
This introduces initial support for the Aspeed AST27xx SoC and the AST2700 Evaluation Board (EVB) to the Linux kernel. The AST27xx is the 8th generation Baseboard Management Controller (BMC) SoC from Aspeed, featuring improved performance, enhanced security, and expanded I/O capabilities compared to previous generations.
Quoted 6 lines
AST27xx SOC Family
- https://www.aspeedtech.com/server_ast2700/
- https://www.aspeedtech.com/server_ast2720/
- https://www.aspeedtech.com/server_ast2750/[...]
Here is the summary with links:
- [v9,1/4] dt-bindings: arm: aspeed: Add AST2700 board compatible
https://git.kernel.org/soc/soc/c/34efd73379ff - [v9,2/4] arm64: Kconfig: Add ASPEED SoC family Kconfig support https://git.kernel.org/soc/soc/c/df6f379eb4ac - [v9,3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree https://git.kernel.org/soc/soc/c/e77bb5dc5759
- [v9,4/4] arm64: configs: Update defconfig for AST2700 platform support (no matching commit)
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This series was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:
Hello:
This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:
Quoted 6 lines · On Tue, 9 Jun 2026 10:47:17 +0800 you wrote:
This introduces initial support for the Aspeed AST27xx SoC and the AST2700 Evaluation Board (EVB) to the Linux kernel. The AST27xx is the 8th generation Baseboard Management Controller (BMC) SoC from Aspeed, featuring improved performance, enhanced security, and expanded I/O capabilities compared to previous generations.
Quoted 6 lines
AST27xx SOC Family
- https://www.aspeedtech.com/server_ast2700/
- https://www.aspeedtech.com/server_ast2720/
- https://www.aspeedtech.com/server_ast2750/[...]
Here is the summary with links:
- [v9,1/4] dt-bindings: arm: aspeed: Add AST2700 board compatible (no matching commit)
- [v9,2/4] arm64: Kconfig: Add ASPEED SoC family Kconfig support (no matching commit)
- [v9,3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree (no matching commit)
- [v9,4/4] arm64: configs: Update defconfig for AST2700 platform support
https://git.kernel.org/soc/soc/c/512cef2af615
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This series was applied to riscv/linux.git (fixes) by Arnd Bergmann <[email protected]>:
Hello:
This series was applied to riscv/linux.git (fixes) by Arnd Bergmann <[email protected]>:
Quoted 6 lines · On Tue, 9 Jun 2026 10:47:17 +0800 you wrote:
This introduces initial support for the Aspeed AST27xx SoC and the AST2700 Evaluation Board (EVB) to the Linux kernel. The AST27xx is the 8th generation Baseboard Management Controller (BMC) SoC from Aspeed, featuring improved performance, enhanced security, and expanded I/O capabilities compared to previous generations.
Quoted 6 lines
AST27xx SOC Family
- https://www.aspeedtech.com/server_ast2700/
- https://www.aspeedtech.com/server_ast2720/
- https://www.aspeedtech.com/server_ast2750/[...]
Here is the summary with links:
- [v9,1/4] dt-bindings: arm: aspeed: Add AST2700 board compatible
https://git.kernel.org/riscv/c/34efd73379ff - [v9,2/4] arm64: Kconfig: Add ASPEED SoC family Kconfig support https://git.kernel.org/riscv/c/df6f379eb4ac - [v9,3/4] arm64: dts: aspeed: Add initial AST27xx SoC device tree https://git.kernel.org/riscv/c/e77bb5dc5759 - [v9,4/4] arm64: configs: Update defconfig for AST2700 platform support https://git.kernel.org/riscv/c/512cef2af615
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html