From 396efa8a9ccb23fbda6b83fa69e1d3f016d8f3bd Mon Sep 17 00:00:00 2001 From: Georgios Vasilakis Date: Thu, 5 Sep 2024 11:52:30 +0200 Subject: [PATCH 1/2] boards: nordic: Enable IPC and bellboard on nRF54H20 Enable the cpusec IPC and the bellboard nodes for the nrf54h20dk cpuapp and cpurad targets to enable communication between domains. Also enables the region cpurad_ram0x_region since it is also required for the communication. Signed-off-by: Georgios Vasilakis --- boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts | 5 +++++ boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts b/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts index 9325b63a7a1d7..95d557bf944de 100644 --- a/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts +++ b/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts @@ -143,11 +143,16 @@ }; &cpusec_cpuapp_ipc { + status = "okay"; mbox-names = "tx", "rx"; tx-region = <&cpuapp_cpusec_ipc_shm>; rx-region = <&cpusec_cpuapp_ipc_shm>; }; +&cpusec_bellboard { + status = "okay"; +}; + ipc0: &cpuapp_cpurad_ipc { status = "okay"; mbox-names = "rx", "tx"; diff --git a/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts b/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts index cb8fb9e1a0260..49ca847873f74 100644 --- a/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts +++ b/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts @@ -38,6 +38,10 @@ status = "okay"; }; +&cpurad_ram0x_region { + status = "okay"; +}; + &cpurad_bellboard { status = "okay"; interrupts = <96 NRF_DEFAULT_IRQ_PRIORITY>; @@ -55,11 +59,16 @@ }; &cpusec_cpurad_ipc { + status = "okay"; mbox-names = "tx", "rx"; tx-region = <&cpurad_cpusec_ipc_shm>; rx-region = <&cpusec_cpurad_ipc_shm>; }; +&cpusec_bellboard { + status = "okay"; +}; + ipc0: &cpuapp_cpurad_ipc { status = "okay"; mbox-names = "tx", "rx"; From 859810c2808a87e1440f57795cdd9dbac1ceec8a Mon Sep 17 00:00:00 2001 From: Georgios Vasilakis Date: Mon, 11 Nov 2024 15:45:29 +0100 Subject: [PATCH 2/2] tests: arm_thread_swap: Add overlay for nRF54H20 Disable the IPC communication between the domains for the arm_thread_swap test since it is not needed and it causes a flash oveflow for the no opmitization test case. Signed-off-by: Georgios Vasilakis --- .../boards/nrf54h20dk_nrf54h20_cpuapp.overlay | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/arch/arm/arm_thread_swap/boards/nrf54h20dk_nrf54h20_cpuapp.overlay diff --git a/tests/arch/arm/arm_thread_swap/boards/nrf54h20dk_nrf54h20_cpuapp.overlay b/tests/arch/arm/arm_thread_swap/boards/nrf54h20dk_nrf54h20_cpuapp.overlay new file mode 100644 index 0000000000000..f9615d1b35ecd --- /dev/null +++ b/tests/arch/arm/arm_thread_swap/boards/nrf54h20dk_nrf54h20_cpuapp.overlay @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +&cpusec_cpuapp_ipc { + status = "disabled"; +}; + +&cpusec_bellboard { + status = "disabled"; +};