Introduce ASPEED AST27xx BMC SoC
Subsystems (4)
Ryan Chen
reviewerv8 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/silicon-id: Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
- gpio: Documentation/devicetree/bindings/gpio/aspeed,ast2400-gpio.yaml Binding dependency patch:
- intc: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml
- https://lore.kernel.org/all/[email protected]/
(merged into the irq/drivers)
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
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
v6:
- rebased on v6.18-rc1
- aspeed,ast2x00-scu.yaml
- fixed dt-binding yaml issuse report.
v5:
- modify ast27XX 7th generation description to 8th generation.
- aspeed.yaml
- modify missing blank line.
- Kconfig.platforms
- modify ast27XX 7th generation to 8th generation.
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";
v3:
- https://lore.kernel.org/all/[email protected]/
- 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.
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
.../bindings/arm/aspeed/aspeed.yaml | 6 + arch/arm64/Kconfig.platforms | 6 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/aspeed/Makefile | 4 + arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi | 154 ++++++++ .../boot/dts/aspeed/aspeed-g7-common.dtsi | 351 ++++++++++++++++++ arch/arm64/boot/dts/aspeed/ast2700-evb.dts | 31 ++ arch/arm64/configs/defconfig | 1 + 8 files changed, 554 insertions(+) create mode 100644 arch/arm64/boot/dts/aspeed/Makefile create mode 100644 arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi create mode 100644 arch/arm64/boot/dts/aspeed/aspeed-g7-common.dtsi create mode 100644 arch/arm64/boot/dts/aspeed/ast2700-evb.dts
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v8 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
@@ -109,4 +109,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 v8 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
@@ -47,6 +47,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 SoC family like ast27XX 8th + generation Aspeed BMCs. + config ARCH_AXIADO bool "Axiado SoC Family" select GPIOLIB
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v8 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 ties, referred to as SoC0 and SoC1 - interconnected through an internal property bus. Both SoCs share the same address decoding scheme, while each maintains independent clock and reset domains.
- SoC0 (CPU die): contains a dual-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.
--- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/aspeed/Makefile | 4 + arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi | 154 ++++++++ .../boot/dts/aspeed/aspeed-g7-common.dtsi | 351 ++++++++++++++++++ arch/arm64/boot/dts/aspeed/ast2700-evb.dts | 31 ++ 5 files changed, 541 insertions(+) create mode 100644 arch/arm64/boot/dts/aspeed/Makefile create mode 100644 arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi create mode 100644 arch/arm64/boot/dts/aspeed/aspeed-g7-common.dtsi create mode 100644 arch/arm64/boot/dts/aspeed/ast2700-evb.dts
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-g7-a35.dtsi new file +154 -0
154 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/aspeed-g7-common.dtsi new file +351 -0
351 lines not on this page · raw message
arch/arm64/boot/dts/aspeed/ast2700-evb.dts new file +31 -0
@@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Device Tree Source AST2700 EVB + * + * Copyright (C) ASPEED Technology Inc. + */ + +/dts-v1/; +#include "aspeed-g7-a35.dtsi" + +/ { + model = "AST2700 EVB"; + compatible = "aspeed,ast2700-evb", "aspeed,ast2700"; + + aliases { + serial0 = &uart12; /* console port */ + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@400000000 { + device_type = "memory"; + reg = <0x4 0x00000000 0x0 0x40000000>; + }; +}; + +&uart12 { + status = "okay"; +};
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v8 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
Rob Herring (Arm)
maintainerQuoted 95 lines · Ryan Chen
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=1arch/arm64/boot/dts/aspeed/dtbs"- scu/silicon-id:
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
- gpio:Documentation/devicetree/bindings/gpio/aspeed,ast2400-gpio.yamlBinding dependency patch:
- intc:Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml
- https://lore.kernel.org/all/[email protected]/
(merged into the irq/drivers)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=1arch/arm64/boot/dts/aspeed/dtbsv7:
- remove aspeed,ast2x00-scu.yaml modify
- separateaspeed-g7.dtsitoaspeed-g7-a35.dtsiandaspeed-g7-common.dtsi
- move aliases toast2700-evb.dtsfilev6:
- rebased on v6.18-rc1
- aspeed,ast2x00-scu.yaml
- fixed dt-binding yaml issuse report.v5:
- modify ast27XX 7th generation description to 8th generation.
-aspeed.yaml
- modify missing blank line.
-Kconfig.platforms
- modify ast27XX 7th generation to 8th generation.v4:
- make CHECK_DTBS=yarch/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";v3:
- https://lore.kernel.org/all/[email protected]/
- 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 "makedtbs_checkW=1".
- Add intc1 into example.
Kconfig.platforms
- RemoveMACH_ASPEED_G7.Ryan Chen (4):
dt-bindings: arm: aspeed: Add AST2700 board compatible
arm64:Kconfig: Add ASPEED SoC familyKconfigsupport
arm64: dts: aspeed: Add initial AST27xx SoC device tree
arm64: configs: Update defconfig for AST2700 platform support.../bindings/arm/aspeed/aspeed.yaml | 6 + arch/arm64/Kconfig.platforms | 6 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/aspeed/Makefile | 4 + arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi | 154 ++++++++ .../boot/dts/aspeed/aspeed-g7-common.dtsi | 351 ++++++++++++++++++ arch/arm64/boot/dts/aspeed/ast2700-evb.dts | 31 ++ arch/arm64/configs/defconfig | 1 + 8 files changed, 554 insertions(+) create mode 100644 arch/arm64/boot/dts/aspeed/Makefile create mode 100644 arch/arm64/boot/dts/aspeed/aspeed-g7-a35.dtsi create mode 100644 arch/arm64/boot/dts/aspeed/aspeed-g7-common.dtsi create mode 100644 arch/arm64/boot/dts/aspeed/ast2700-evb.dts
Quoted 5 lines
--
2.34.1
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/v6.18-rc3-15-gbe755eb2b021 (exact match)
Base: tags/v6.18-rc3-15-gbe755eb2b021 (use --merge-base to override)
If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/aspeed/' for [email protected]:
arch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@12101b00 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@12101b00 (aspeed,ast2700-intc-ic): interrupts: [[0, 192, 4], [0, 193, 4], [0, 194, 4], [0, 195, 4], [0, 196, 4], [0, 197, 4], [0, 198, 4], [0, 199, 4], [0, 200, 4], [0, 201, 4]] is too long
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18100 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18100 (aspeed,ast2700-intc-ic): interrupts-extended: [[7, 0]] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18110 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18110 (aspeed,ast2700-intc-ic): interrupts-extended: [[7, 1]] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18120 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18120 (aspeed,ast2700-intc-ic): interrupts-extended: [[7, 2]] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18130 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18130 (aspeed,ast2700-intc-ic): interrupts-extended: [[7, 3]] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18140 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18140 (aspeed,ast2700-intc-ic): interrupts-extended: [[7, 4]] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18150 (aspeed,ast2700-intc-ic): #interrupt-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yamlarch/arm64/boot/dts/aspeed/ast2700-evb.dtb: interrupt-controller@14c18150 (aspeed,ast2700-intc-ic): interrupts-extended: [[7, 5]] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2700-intc.yaml