forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: riscv: add nrf54h20pdk_nrf54h20_cpuppr
Add a board that allows to build for the nRF54H20 PPR RISC-V core. Signed-off-by: Gerard Marull-Paretas <[email protected]>
- Loading branch information
Showing
7 changed files
with
97 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NRF54H20PDK_NRF54H20_CPUPPR | ||
bool "nRF54H20 PDK nRF54H20 PPR MCU" | ||
depends on SOC_NRF54H20_ENGA_CPUPPR |
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,6 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD | ||
default "nrf54h20pdk_nrf54h20_cpuapp" | ||
depends on BOARD_NRF54H20PDK_NRF54H20_CPUPPR |
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,3 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) |
48 changes: 48 additions & 0 deletions
48
boards/riscv/nrf54h20pdk_nrf54h20/nrf54h20pdk_nrf54h20_cpuppr.dts
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,48 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <nordic/nrf54h20_enga_cpuppr.dtsi> | ||
#include "nrf54h20pdk_nrf54h20-memory_map.dtsi" | ||
#include "nrf54h20pdk_nrf54h20-pinctrl.dtsi" | ||
|
||
/ { | ||
compatible = "nordic,nrf54h20dk_nrf54h20-cpuppr"; | ||
model = "Nordic nRF54H20 DK nRF54H20 Peripheral Processor MCU"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
chosen { | ||
zephyr,console = &uart135; | ||
zephyr,code-partition = &cpuppr_code_partition; | ||
zephyr,flash = &mram1x; | ||
zephyr,sram = &cpuppr_ram3x_region; | ||
}; | ||
}; | ||
|
||
&cpuapp_dma_region { | ||
status = "okay"; | ||
}; | ||
|
||
&grtc { | ||
status = "okay"; | ||
owned-channels = <5>; | ||
}; | ||
|
||
&uart135 { | ||
status = "okay"; | ||
memory-regions = <&cpuapp_dma_region>; | ||
pinctrl-0 = <&uart135_default>; | ||
pinctrl-1 = <&uart135_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
&uart136 { | ||
pinctrl-0 = <&uart136_default>; | ||
pinctrl-1 = <&uart136_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; |
13 changes: 13 additions & 0 deletions
13
boards/riscv/nrf54h20pdk_nrf54h20/nrf54h20pdk_nrf54h20_cpuppr.yaml
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,13 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: nrf54h20pdk_nrf54h20_cpuppr | ||
name: nRF54H20-PDK-nRF54H20-PPR | ||
type: mcu | ||
arch: riscv | ||
toolchain: | ||
- zephyr | ||
ram: 28 | ||
flash: 368 | ||
supported: | ||
- gpio |
14 changes: 14 additions & 0 deletions
14
boards/riscv/nrf54h20pdk_nrf54h20/nrf54h20pdk_nrf54h20_cpuppr_defconfig
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,14 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_SOC_SERIES_NRF54HX=y | ||
CONFIG_SOC_NRF54H20=y | ||
CONFIG_SOC_NRF54H20_ENGA_CPUPPR=y | ||
CONFIG_BOARD_NRF54H20PDK_NRF54H20_CPUPPR=y | ||
|
||
CONFIG_XIP=n | ||
|
||
CONFIG_SERIAL=y | ||
|
||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y |
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,7 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Allow common DTS files to be included from the other board directory. | ||
# To be removed after HWMv2 (#51831), once both directories can be merged into one. | ||
string(REGEX REPLACE "/riscv/(.*$)" "/arm/\\1" BOARD_DIR_ARM "${BOARD_DIR}") | ||
list(APPEND DTS_EXTRA_CPPFLAGS -isystem "${BOARD_DIR_ARM}") |