Add support for IBM Genesis3
Subsystems (3)
v5 cover Add support for IBM Genesis3
v5:
- Rename Kconfig and don't depend on ASPEED_ALLOW_DANGEROUS_BACKDOORS
v4:
- Rebase on upstream
- Drop defconfig and add it on openbmc instead
- Rename Kconfig for debug uart
v3:
- Drop FIRMWARE_2ND_BOOT patch
- Include reference board DTS instead of copying it
- Rename DTS to ast2500-<boardname>
- Describe defconfig changes in commit message
v2:
- Fix whitespace and compatible in DTS
- Remove board stub
- Improve commit message
- Rewrite FIRMWARE_2ND_BOOT support
- Update defconfig
Patrick Rudolph (2):
arm/dts: Add IBM Genesis3 board
arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1
arch/arm/dts/Makefile | 1 + arch/arm/dts/ast2500-genesis3.dts | 28 +++++++++++++++++++++++++ arch/arm/mach-aspeed/Kconfig | 6 ++++++ arch/arm/mach-aspeed/ast2500/platform.S | 2 +- 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/ast2500-genesis3.dts
Signature · 1 line
2.35.3
PATCH v5 1/2 arm/dts: Add IBM Genesis3 board
Add devicetree source file. It uses the evb-ast2500 board files.
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/ast2500-genesis3.dts | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 arch/arm/dts/ast2500-genesis3.dts
arch/arm/dts/Makefile +1 -0
@@ -678,6 +678,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ ast2400-evb.dtb \ ast2400-ahe-50dc.dtb \ ast2500-evb.dtb \ + ast2500-genesis3.dtb \ ast2600a0-evb.dtb \ ast2600a1-evb.dtb \ ast2600-bletchley.dtb \
arch/arm/dts/ast2500-genesis3.dts new file +28 -0
@@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * IBM Genesis3 + * + * Copyright (C) 2022 9elements GmbH + */ + +#include "ast2500-evb.dts" + +/ { + model = "IBM Genesis3"; + compatible = "ibm,genesis3-bmc", "aspeed,ast2500"; +}; + +&spi1 { + status = "disabled"; +}; + +&fmc { + flash@0 { + compatible = "spansion,s25fl256l", "spi-flash"; + }; + + flash@1 { + compatible = "spansion,s25fl256l", "spi-flash"; + }; +}; +
Signature · 1 line
2.35.3
PATCH v5 2/2 arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1
In reply to Patrick RudolphIntroduce CONFIG_ASPEED_ROUTE_UART5_TO_UART1 and reuse existing platform code to route UART5 to UART1.
This is required on IBM/Genesis3 as it uses UART5 as debug uart, but the RXD1/TXD1 pins are connected instead of RXD5/TXD5.
--- arch/arm/mach-aspeed/Kconfig | 6 ++++++ arch/arm/mach-aspeed/ast2500/platform.S | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
arch/arm/mach-aspeed/Kconfig +6 -0
@@ -84,6 +84,12 @@ config ASPEED_ENABLE_DEBUG_UART endif +config ASPEED_ROUTE_UART5_TO_UART1 + bool "Route UART5 to UART1 pins" + depends on ASPEED_AST2500 + help + Route debug UART (UART5) to TXD1/RXD1 pins instead of TXD5/RXD5. + config ASPEED_PALLADIUM bool "Aspeed palladium for simulation" default n
arch/arm/mach-aspeed/ast2500/platform.S +1 -1
@@ -795,7 +795,7 @@ wait_ddr_reset: /* end delay 10ms */ /* Debug - UART console message */ -#ifdef CONFIG_DRAM_UART_TO_UART1 +#ifdef CONFIG_ASPEED_ROUTE_UART5_TO_UART1 ldr r0, =0x1e78909c @ route UART5 to UART Port1, 2016.08.29 ldr r1, =0x10000004 str r1, [r0]
Signature · 1 line
2.35.3