Skip to content

Commit

Permalink
samples: add support for i.MX8ULP DSP in openamp_rsc_table
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
iuliana-prodan committed Dec 16, 2024
1 parent 194f1bd commit 74e80fa
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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";
};

0 comments on commit 74e80fa

Please sign in to comment.