Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for i.MX8ULP DSP core, or imx8ulp_evk//adsp board, in openamp_rsc_table sample #83049

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions dts/xtensa/nxp/nxp_imx8ulp.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 NXP
* Copyright 2023, 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -17,16 +17,16 @@
device_type = "cpu";
compatible = "cdns,tensilica-xtensa-lx7";
reg = <0>;
};

#address-cells = <1>;
#size-cells = <0>;
#address-cells = <1>;
#size-cells = <0>;

clic: interrupt-controller@0 {
compatible = "cdns,xtensa-core-intc";
reg = <0>;
interrupt-controller;
#interrupt-cells = <3>;
clic: interrupt-controller@0 {
compatible = "cdns,xtensa-core-intc";
reg = <0>;
interrupt-controller;
#interrupt-cells = <3>;
};
};
};

Expand Down Expand Up @@ -98,4 +98,14 @@
dai-index = <6>;
status = "disabled";
};

mu3: mbox@2da20000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x2da20000 DT_SIZE_K(64)>;
interrupt-parent = <&clic>;
interrupts = <15 0 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "disabled";
};
};
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";
};
9 changes: 8 additions & 1 deletion soc/nxp/imx/imx8ulp/adsp/linker.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 NXP
* Copyright 2023, 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -172,6 +172,13 @@ EXTERN(ext_man_fw_ver)
SECTIONS
{

#ifdef CONFIG_OPENAMP_RSC_TABLE
SECTION_PROLOGUE(.resource_table,, SUBALIGN(4))
{
KEEP(*(.resource_table*))
} GROUP_LINK_IN(ROMABLE_REGION)
#endif

#include <zephyr/linker/rel-sections.ld>

#ifdef CONFIG_LLEXT
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: d2e2514cbe70babc2dfe6e8eb0e4f9e4c97769b6
revision: pull/488/head
path: modules/hal/nxp
groups:
- hal
Expand Down
Loading