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 d82f953 commit 4cd5030
Show file tree
Hide file tree
Showing 7 changed files with 122 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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart135_default: uart135_default {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 4)>,
<NRF_PSEL(UART_RTS, 1, 0)>;
};

group2 {
bias-pull-up;
psels = <NRF_PSEL(UART_RX, 1, 5)>,
<NRF_PSEL(UART_CTS, 1, 6)>;
};
};

uart135_sleep: uart135_sleep {
group1 {
low-power-enable;
psels = <NRF_PSEL(UART_TX, 1, 4)>,
<NRF_PSEL(UART_RX, 1, 5)>,
<NRF_PSEL(UART_RTS, 1, 0)>,
<NRF_PSEL(UART_CTS, 1, 6)>;
};
};
};
52 changes: 52 additions & 0 deletions boards/riscv/nrf54h20pdk_nrf54h20/nrf54h20pdk_nrf54h20_cpuppr.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <nordic/nrf54h20_enga_cpuppr.dtsi>
#include "nrf54h20pdk_nrf54h20-pinctrl.dtsi"

/ {
compatible = "nordic,nrf54h20pdk_nrf54h20-cpuppr";
model = "Nordic nRF54H20 PDK nRF54H20 PPR MCU";

chosen {
zephyr,console = &uart135;
zephyr,code-partition = &cpuppr_slot0_partition;
zephyr,flash = &mram1x;
zephyr,sram = &cpuppr_sram;
};
};

&grtc {
status = "okay";
owned-channels = <5>;
};

&uart135 {
status = "okay";
pinctrl-0 = <&uart135_default>;
pinctrl-1 = <&uart135_sleep>;
pinctrl-names = "default", "sleep";
};

&ram3x {
cpuppr_sram: memory@0 {
reg = <0x0 DT_SIZE_K(28)>;
};
};

&mram1x {
cpuppr_partitions: cpuppr-partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

cpuppr_slot0_partition: partition@126000 {
reg = <0x126000 DT_SIZE_K(28)>;
};
};
};
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,12 @@
# 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_SERIAL=y

CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

0 comments on commit 4cd5030

Please sign in to comment.