-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: mps3: Add support for corstone310/an555
What is changed? - Added a new mps3 board an555 for the soc corstone310. The qualifier to build/run application with board mps3/an555 is `mps3/corstone310/an555` for secure and `mps3/corstone310/an555/ns` for non-secure. - Added FVP variant to enable FVP testing with corstone310 and it uses the ARM FVP `FVP_Corstone_SSE-310`. The qualifier to build/run application with FVP is `mps3/corstone310/an555fvp` for secure and `mps3/corstone310/an555fvp/ns` for non-secure. Why do we need this change? - This enables FVP support and testing for corstone310. - A separate FVP variant was added for AN555 because, the TFM board used for non-secure variant differs for FPGA and FVP. TFM board `arm/mps3/corstone310/an555` should be used when testing AN555 with FVP and `arm/mps3/corstone310/fvp` should be used when testing with AN555 FPGA. (cherry picked from commit caa7226) Original-Signed-off-by: Sudan Landge <sudan.landge@arm.com> GitOrigin-RevId: caa7226 Cr-Build-Id: 8732659221460854369 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8732659221460854369 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Ie481cb039c52f63a0010461e1fc6e39ef19177a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5978747 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
- Loading branch information
Showing
22 changed files
with
677 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* | ||
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <arm/armv8.1-m.dtsi> | ||
#include <zephyr/dt-bindings/i2c/i2c.h> | ||
#include <zephyr/dt-bindings/input/input-event-codes.h> | ||
#include <mem.h> | ||
#include "mps3_common.dtsi" | ||
|
||
/ { | ||
compatible = "arm,mps3-an555"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
chosen { | ||
zephyr,console = &uart0; | ||
zephyr,shell-uart = &uart0; | ||
zephyr,sram = &dtcm; | ||
zephyr,flash = &itcm; | ||
}; | ||
|
||
cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
cpu@0 { | ||
device_type = "cpu"; | ||
compatible = "arm,cortex-m85"; | ||
reg = <0>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
mpu: mpu@e000ed90 { | ||
compatible = "arm,armv8.1m-mpu"; | ||
reg = <0xe000ed90 0x40>; | ||
}; | ||
}; | ||
}; | ||
|
||
ethosu { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
interrupt-parent = <&nvic>; | ||
|
||
ethosu0: ethosu@50004000 { | ||
compatible = "arm,ethos-u"; | ||
reg = <0x50004000>; | ||
interrupts = <16 3>; | ||
secure-enable; | ||
privilege-enable; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
/* We utilize the secure addresses, if you subtract 0x10000000 | ||
* you'll get the non-secure alias | ||
*/ | ||
itcm: itcm@10000000 { /* alias @ 0x0 */ | ||
compatible = "zephyr,memory-region"; | ||
reg = <0x10000000 DT_SIZE_K(32)>; | ||
zephyr,memory-region = "ITCM"; | ||
}; | ||
|
||
sram: sram@11000000 { /* alias @ 0x01000000 */ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x11000000 DT_SIZE_M(2)>; | ||
zephyr,memory-region = "SRAM"; | ||
}; | ||
|
||
dtcm: dtcm@30000000 { /* alias @ 0x20000000 */ | ||
compatible = "zephyr,memory-region"; | ||
reg = <0x30000000 DT_SIZE_K(32)>; | ||
zephyr,memory-region = "DTCM"; | ||
}; | ||
|
||
isram: sram@31000000 {/* alias @ 0x21000000 */ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x31000000 DT_SIZE_M(4)>; | ||
zephyr,memory-region = "ISRAM"; | ||
}; | ||
|
||
soc { | ||
peripheral@50000000 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0x0 0x50000000 0x10000000>; | ||
|
||
#include "mps3_common_soc_peripheral.dtsi" | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: mps3/corstone310/an555 | ||
name: Arm MPS3-Corstone310-AN555 | ||
type: mcu | ||
arch: arm | ||
ram: 32 | ||
flash: 32 | ||
toolchain: | ||
- gnuarmemb | ||
- zephyr | ||
- xtools | ||
supported: | ||
- gpio | ||
testing: | ||
ignore_tags: | ||
- drivers | ||
- bluetooth | ||
- net | ||
- timer | ||
vendor: arm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_RUNTIME_NMI=y | ||
CONFIG_ARM_TRUSTZONE_M=y | ||
CONFIG_ARM_MPU=y | ||
|
||
# GPIOs | ||
CONFIG_GPIO=y | ||
|
||
# Serial | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_SERIAL=y | ||
|
||
# Build a Secure firmware image | ||
CONFIG_TRUSTED_EXECUTION_SECURE=y |
Oops, something went wrong.