Skip to content

Commit

Permalink
boards: riscv: add nrf54h20pdk_nrf54h20_cpuppr
Browse files Browse the repository at this point in the history
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
gmarull committed Feb 1, 2024
1 parent ff22157 commit 9d13528
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boards/riscv/nrf54h20pdk_nrf54h20/Kconfig.board
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
6 changes: 6 additions & 0 deletions boards/riscv/nrf54h20pdk_nrf54h20/Kconfig.defconfig
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
3 changes: 3 additions & 0 deletions boards/riscv/nrf54h20pdk_nrf54h20/board.cmake
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 boards/riscv/nrf54h20pdk_nrf54h20/nrf54h20pdk_nrf54h20_cpuppr.dts
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 boards/riscv/nrf54h20pdk_nrf54h20/nrf54h20pdk_nrf54h20_cpuppr.yaml
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
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
7 changes: 7 additions & 0 deletions boards/riscv/nrf54h20pdk_nrf54h20/pre_dt_board.cmake
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}")

0 comments on commit 9d13528

Please sign in to comment.