diff --git a/samples/drivers/mbox/CMakeLists.txt b/samples/drivers/mbox/CMakeLists.txt index 7ae21a6a8e99..919dd6439eaf 100644 --- a/samples/drivers/mbox/CMakeLists.txt +++ b/samples/drivers/mbox/CMakeLists.txt @@ -17,6 +17,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR + CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU0 OR CONFIG_BOARD_ESP32_DEVKITC_WROOM_ESP32_PROCPU OR CONFIG_BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU OR CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR diff --git a/samples/drivers/mbox/Kconfig.sysbuild b/samples/drivers/mbox/Kconfig.sysbuild index cc0a847f28d5..8101ce82a4e6 100644 --- a/samples/drivers/mbox/Kconfig.sysbuild +++ b/samples/drivers/mbox/Kconfig.sysbuild @@ -14,6 +14,7 @@ config REMOTE_BOARD default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk" default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk" default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69" + default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947" default "nrf54h20dk/nrf54h20/cpuapp" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpurad" default "nrf54l15dk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15dk" default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco" diff --git a/samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.conf b/samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.overlay b/samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.overlay new file mode 100644 index 000000000000..42601e953361 --- /dev/null +++ b/samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.overlay @@ -0,0 +1,13 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + mbox-consumer { + compatible = "vnd,mbox-consumer"; + mboxes = <&mbox 1>, <&mbox 0>; + mbox-names = "tx", "rx"; + }; +}; diff --git a/samples/drivers/mbox/remote/CMakeLists.txt b/samples/drivers/mbox/remote/CMakeLists.txt index 311e489177d7..2196c270628f 100644 --- a/samples/drivers/mbox/remote/CMakeLists.txt +++ b/samples/drivers/mbox/remote/CMakeLists.txt @@ -15,6 +15,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM4 OR CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1 OR + CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU1 OR CONFIG_BOARD_ESP32_DEVKITC_WROOM_ESP32_APPCPU OR CONFIG_BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU OR CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR diff --git a/samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf b/samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay b/samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay new file mode 100644 index 000000000000..4e3b4ae1208c --- /dev/null +++ b/samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay @@ -0,0 +1,13 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + mbox-consumer { + compatible = "vnd,mbox-consumer"; + mboxes = <&mbox 0>, <&mbox 1>; + mbox-names = "tx", "rx"; + }; +}; diff --git a/samples/drivers/mbox/sample.yaml b/samples/drivers/mbox/sample.yaml index f264050b68e4..aacac1eea1c9 100644 --- a/samples/drivers/mbox/sample.yaml +++ b/samples/drivers/mbox/sample.yaml @@ -13,6 +13,7 @@ tests: - mimxrt1170_evk/mimxrt1176/cm7 - mimxrt1160_evk/mimxrt1166/cm7 - lpcxpresso55s69/lpc55s69/cpu0 + - frdm_mcxn947/mcxn947/cpu0 integration_platforms: - nrf5340dk/nrf5340/cpuapp harness: console diff --git a/samples/drivers/mbox_data/CMakeLists.txt b/samples/drivers/mbox_data/CMakeLists.txt index e816cf7426f2..077c62257e2f 100644 --- a/samples/drivers/mbox_data/CMakeLists.txt +++ b/samples/drivers/mbox_data/CMakeLists.txt @@ -11,6 +11,7 @@ set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr) if(CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR + CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU0 OR CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0) message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample") else() diff --git a/samples/drivers/mbox_data/Kconfig.sysbuild b/samples/drivers/mbox_data/Kconfig.sysbuild index 66a4e929ae2f..6efff4d3ad50 100644 --- a/samples/drivers/mbox_data/Kconfig.sysbuild +++ b/samples/drivers/mbox_data/Kconfig.sysbuild @@ -10,3 +10,4 @@ string default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk" default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk" default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69" + default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947" diff --git a/samples/drivers/mbox_data/README.rst b/samples/drivers/mbox_data/README.rst index 1f8b1615f8ed..1ad37ea1ed15 100644 --- a/samples/drivers/mbox_data/README.rst +++ b/samples/drivers/mbox_data/README.rst @@ -54,6 +54,15 @@ Building the application for lpcxpresso55s69_cpu1 :goals: debug :west-args: --sysbuild +Building the application for frdm_mcxn947/mcxn947/cpu0 +====================================================== + +.. zephyr-app-commands:: + :zephyr-app: samples/drivers/mbox_data/ + :board: frdm_mcxn947/mcxn947/cpu0 + :goals: debug + :west-args: --sysbuild + Sample Output ============= diff --git a/samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.conf b/samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.overlay b/samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.overlay new file mode 100644 index 000000000000..42601e953361 --- /dev/null +++ b/samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.overlay @@ -0,0 +1,13 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + mbox-consumer { + compatible = "vnd,mbox-consumer"; + mboxes = <&mbox 1>, <&mbox 0>; + mbox-names = "tx", "rx"; + }; +}; diff --git a/samples/drivers/mbox_data/remote/CMakeLists.txt b/samples/drivers/mbox_data/remote/CMakeLists.txt index d3d0991a65ca..0a708a8ed653 100644 --- a/samples/drivers/mbox_data/remote/CMakeLists.txt +++ b/samples/drivers/mbox_data/remote/CMakeLists.txt @@ -9,6 +9,7 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) if(CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM4 OR CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR + CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU1 OR CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1) message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample") else() diff --git a/samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf b/samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay b/samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay new file mode 100644 index 000000000000..4e3b4ae1208c --- /dev/null +++ b/samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay @@ -0,0 +1,13 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + mbox-consumer { + compatible = "vnd,mbox-consumer"; + mboxes = <&mbox 0>, <&mbox 1>; + mbox-names = "tx", "rx"; + }; +}; diff --git a/samples/drivers/mbox_data/sample.yaml b/samples/drivers/mbox_data/sample.yaml index 53390b5b16a2..33fd2574e50f 100644 --- a/samples/drivers/mbox_data/sample.yaml +++ b/samples/drivers/mbox_data/sample.yaml @@ -10,6 +10,7 @@ tests: - mimxrt1170_evk/mimxrt1176/cm7 - mimxrt1160_evk/mimxrt1166/cm7 - lpcxpresso55s69/lpc55s69/cpu0 + - frdm_mcxn947/mcxn947/cpu0 integration_platforms: - mimxrt1160_evk/mimxrt1166/cm7 - lpcxpresso55s69/lpc55s69/cpu0 diff --git a/samples/subsys/ipc/ipc_service/static_vrings/CMakeLists.txt b/samples/subsys/ipc/ipc_service/static_vrings/CMakeLists.txt index 588bfe71dd0c..29201c036641 100644 --- a/samples/subsys/ipc/ipc_service/static_vrings/CMakeLists.txt +++ b/samples/subsys/ipc/ipc_service/static_vrings/CMakeLists.txt @@ -15,7 +15,8 @@ if(NOT (CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP OR CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR - CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 + CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR + CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU0 ) ) message(FATAL_ERROR "${BOARD} is not supported for this sample") diff --git a/samples/subsys/ipc/ipc_service/static_vrings/Kconfig.sysbuild b/samples/subsys/ipc/ipc_service/static_vrings/Kconfig.sysbuild index 4f9caa825016..f00c11c4cf8d 100644 --- a/samples/subsys/ipc/ipc_service/static_vrings/Kconfig.sysbuild +++ b/samples/subsys/ipc/ipc_service/static_vrings/Kconfig.sysbuild @@ -13,3 +13,4 @@ string default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk" default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk" default "mimxrt1170_evkb/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evkb" + default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947" diff --git a/samples/subsys/ipc/ipc_service/static_vrings/README.rst b/samples/subsys/ipc/ipc_service/static_vrings/README.rst index 8fe0591b786c..086c16ccb1f1 100644 --- a/samples/subsys/ipc/ipc_service/static_vrings/README.rst +++ b/samples/subsys/ipc/ipc_service/static_vrings/README.rst @@ -56,6 +56,15 @@ Building the application for mimxrt1170_evk@B/mimxrt1176/cm7 :goals: debug :west-args: --sysbuild +Building the application for frdm_mcxn947/mcxn947/cpu0 +************************************************************ + +.. zephyr-app-commands:: + :zephyr-app: samples/subsys/ipc/ipc_service/static_vrings + :board: frdm_mcxn947/mcxn947/cpu0 + :goals: debug + :west-args: --sysbuild + Open a serial terminal (minicom, putty, etc.) and connect the board with the following settings: diff --git a/samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.conf b/samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.overlay b/samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.overlay new file mode 100644 index 000000000000..19bbe1e16d79 --- /dev/null +++ b/samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.overlay @@ -0,0 +1,51 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +/ { + /* Define memory regions for IPC + * Note that shared memory must have specific MPU attributes set. + */ + sram1_ipc0: memory@20060000{ + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x20060000 DT_SIZE_K(16)>; + zephyr,memory-region="SRAM1_IPC0"; + zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; + }; + + sram1_ipc1: memory@20064000{ + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x20064000 DT_SIZE_K(16)>; + zephyr,memory-region="SRAM1_IPC1"; + zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; + }; + + ipc { + /delete-node/ ipc0; + + ipc0: ipc0 { + compatible = "zephyr,ipc-openamp-static-vrings"; + memory-region = <&sram1_ipc0>; + mboxes = <&mbox 0>, <&mbox 1>; + mbox-names = "tx", "rx"; + role = "host"; + status = "okay"; + }; + + ipc1: ipc1 { + compatible = "zephyr,ipc-openamp-static-vrings"; + memory-region = <&sram1_ipc1>; + mboxes = <&mbox 2>, <&mbox 3>; + mbox-names = "tx", "rx"; + role = "host"; + zephyr,priority = <1 PRIO_COOP>; + zephyr,buffer-size = <128>; + status = "okay"; + }; + }; +}; diff --git a/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf b/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay b/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay new file mode 100644 index 000000000000..4960c9856160 --- /dev/null +++ b/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay @@ -0,0 +1,51 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +/ { + /* Define memory regions for IPC + * Note that shared memory must have specific MPU attributes set. + */ + sram1_ipc0: memory@20060000{ + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x20060000 DT_SIZE_K(16)>; + zephyr,memory-region="SRAM1_IPC0"; + zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; + }; + + sram1_ipc1: memory@20064000{ + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x20064000 DT_SIZE_K(16)>; + zephyr,memory-region="SRAM1_IPC1"; + zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; + }; + + ipc { + /delete-node/ ipc0; + + ipc0: ipc0 { + compatible = "zephyr,ipc-openamp-static-vrings"; + memory-region = <&sram1_ipc0>; + mboxes = <&mbox 0>, <&mbox 1>; + mbox-names = "rx", "tx"; + role = "remote"; + status = "okay"; + }; + + ipc1: ipc1 { + compatible = "zephyr,ipc-openamp-static-vrings"; + memory-region = <&sram1_ipc1>; + mboxes = <&mbox 2>, <&mbox 3>; + mbox-names = "rx", "tx"; + role = "remote"; + zephyr,priority = <1 PRIO_COOP>; + zephyr,buffer-size = <128>; + status = "okay"; + }; + }; +}; diff --git a/samples/subsys/ipc/ipc_service/static_vrings/sample.yaml b/samples/subsys/ipc/ipc_service/static_vrings/sample.yaml index d15df7b803e4..d73c17429d75 100644 --- a/samples/subsys/ipc/ipc_service/static_vrings/sample.yaml +++ b/samples/subsys/ipc/ipc_service/static_vrings/sample.yaml @@ -9,6 +9,7 @@ tests: - mimxrt1160_evk/mimxrt1166/cm7 - mimxrt1170_evk/mimxrt1176/cm7 - mimxrt1170_evk@B/mimxrt1176/cm7 + - frdm_mcxn947/mcxn947/cpu0 integration_platforms: - nrf5340dk/nrf5340/cpuapp - nrf5340bsim/nrf5340/cpuapp diff --git a/samples/subsys/ipc/openamp/Kconfig.sysbuild b/samples/subsys/ipc/openamp/Kconfig.sysbuild index 9063dacafa1d..f9fb79495bff 100644 --- a/samples/subsys/ipc/openamp/Kconfig.sysbuild +++ b/samples/subsys/ipc/openamp/Kconfig.sysbuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 NXP +# Copyright 2022-2024 NXP # # SPDX-License-Identifier: Apache-2.0 @@ -13,3 +13,4 @@ string default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk" default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk" default "mimxrt1170_evkb/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evkb" + default "frdm_mcxn947/mcxn947/cpu1" if $(BOARD) = "frdm_mcxn947" diff --git a/samples/subsys/ipc/openamp/README.rst b/samples/subsys/ipc/openamp/README.rst index a75ef69017d5..9f3416ade7f8 100644 --- a/samples/subsys/ipc/openamp/README.rst +++ b/samples/subsys/ipc/openamp/README.rst @@ -57,6 +57,15 @@ Building the application for mimxrt1170_evk_cm7 :goals: debug :west-args: --sysbuild +Building the application for frdm_mcxn947/mcxn947/cpu0 +****************************************************** + +.. zephyr-app-commands:: + :zephyr-app: samples/subsys/ipc/openamp + :board: frdm_mcxn947/mcxn947/cpu0 + :goals: debug + :west-args: --sysbuild + Open a serial terminal (minicom, putty, etc.) and connect the board with the following settings: diff --git a/samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.conf b/samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.overlay b/samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.overlay new file mode 100644 index 000000000000..f2436532b8c1 --- /dev/null +++ b/samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.overlay @@ -0,0 +1,28 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + /* + * shared memory reserved for the inter-processor communication + */ + + zephyr,ipc_shm = &sramh; + zephyr,ipc = &mailbox0; + }; + + /* Delete MBOX Driver node */ + /delete-node/ mbox@b2000; + soc { + mailbox0:mailbox@400b2000 { + compatible = "nxp,lpc-mailbox"; + reg = <0x400b2000 0xEC>; + interrupts = <54 0>; + resets = <&reset NXP_SYSCON_RESET(0, 26)>; + status = "okay"; + }; + }; +}; diff --git a/samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf b/samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf new file mode 100644 index 000000000000..7e6904d56d59 --- /dev/null +++ b/samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf @@ -0,0 +1 @@ +CONFIG_SECOND_CORE_MCUX=y diff --git a/samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay b/samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay new file mode 100644 index 000000000000..f2436532b8c1 --- /dev/null +++ b/samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay @@ -0,0 +1,28 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + /* + * shared memory reserved for the inter-processor communication + */ + + zephyr,ipc_shm = &sramh; + zephyr,ipc = &mailbox0; + }; + + /* Delete MBOX Driver node */ + /delete-node/ mbox@b2000; + soc { + mailbox0:mailbox@400b2000 { + compatible = "nxp,lpc-mailbox"; + reg = <0x400b2000 0xEC>; + interrupts = <54 0>; + resets = <&reset NXP_SYSCON_RESET(0, 26)>; + status = "okay"; + }; + }; +}; diff --git a/samples/subsys/ipc/openamp/sample.yaml b/samples/subsys/ipc/openamp/sample.yaml index 1679d6a46973..70668a77425e 100644 --- a/samples/subsys/ipc/openamp/sample.yaml +++ b/samples/subsys/ipc/openamp/sample.yaml @@ -6,6 +6,7 @@ tests: platform_allow: - lpcxpresso54114/lpc54114/m4 - lpcxpresso55s69/lpc55s69/cpu0 + - frdm_mcxn947/mcxn947/cpu0 - mps2/an521/cpu0 - v2m_musca_b1/musca_b1 integration_platforms: