From 74e80fa52fd846bc732c3cc987163f15ccc0bdbb Mon Sep 17 00:00:00 2001 From: Iuliana Prodan Date: Mon, 16 Dec 2024 03:26:31 +0200 Subject: [PATCH] samples: add support for i.MX8ULP DSP in openamp_rsc_table Add the dts and config overlay for imx8ulp_evk//adsp to have the openamp_rsc_table sample working on HiFi4 DSP from i.MX8ULP. Since openamp_rsc_table sample uses IPM API and i.MX8ULP has a mbox driver for messaging unit, we need a mailbox node. This will load the ipm_mbox driver that exposes the IPM interface while using a MBOX driver in the back-end. Signed-off-by: Iuliana Prodan --- .../boards/imx8ulp_evk_mimx8ud7_adsp.conf | 8 +++++ .../boards/imx8ulp_evk_mimx8ud7_adsp.overlay | 31 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.conf create mode 100644 samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.overlay diff --git a/samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.conf b/samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.conf new file mode 100644 index 00000000000000..35b9c68a4ee1f8 --- /dev/null +++ b/samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.conf @@ -0,0 +1,8 @@ +CONFIG_LOG_PRINTK=n +CONFIG_OPENAMP_WITH_DCACHE=y + +CONFIG_MBOX=y +CONFIG_MBOX_INIT_PRIORITY=3 + +CONFIG_IPM_MBOX=y +CONFIG_MBOX_NXP_IMX_MU=y diff --git a/samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.overlay b/samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.overlay new file mode 100644 index 00000000000000..4b38ed19328d46 --- /dev/null +++ b/samples/subsys/ipc/openamp_rsc_table/boards/imx8ulp_evk_mimx8ud7_adsp.overlay @@ -0,0 +1,31 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + /* + * shared memory reserved for the inter-processor communication + */ + zephyr,ipc_shm = &dspsram3; + zephyr,ipc = &mailbox0; + }; + + dspsram3: memory@8fef0000 { + compatible = "mmio-sram"; + reg = <0x8fef0000 0x110000>; + }; + + mailbox0: mailbox { + compatible = "zephyr,mbox-ipm"; + mboxes = <&mu3 0>, <&mu3 1>; + mbox-names = "tx", "rx"; + status = "okay"; + }; +}; + +&mu3 { + status = "okay"; +};