Skip to content

Commit e738f04

Browse files
dbalutaDaniel Baluta
authored andcommitted
app: boards: Add dts and config overlay for imx8mp cm7
This enables host_dma, sdma3 and sai3 nodes and their respective drivers. Also, we enable CONFIG_ROMSTART_RELOCATION_ROM option in order to put romstart section into ITCM (because M7 gets its first instruction at adress 0 in ITCM). Note that we temporarily disable COMP_ASRC because there is a conflict between NXP HAL and SOF ASRC headers. e.g NXP HAL defines: #define ASRC ((ASRC_Type *)ASRC_BASE) and ASRC modules uses: #if SOF_USE_MIN_HIFI(5, ASRC) which results in a compilation error. Signed-off-by: Daniel Baluta <[email protected]>
1 parent 49018c3 commit e738f04

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CONFIG_IMX8M_CM7=y
2+
CONFIG_ZEPHYR_NATIVE_DRIVERS=y
3+
CONFIG_CACHE_MANAGEMENT=y
4+
CONFIG_NOCACHE_MEMORY=y
5+
CONFIG_DYNAMIC_INTERRUPTS=y
6+
CONFIG_SHARED_INTERRUPTS=y
7+
CONFIG_CLOCK_CONTROL_FIXED_RATE_CLOCK=y
8+
CONFIG_ROMSTART_RELOCATION_ROM=y
9+
CONFIG_DMA_NXP_SOF_HOST_DMA_ALIGN=32
10+
CONFIG_DMA=y
11+
CONFIG_DMA_NXP_SDMA=y
12+
CONFIG_DAI_NXP_SAI=y
13+
CONFIG_SAI_HAS_MCLK_CONFIG_OPTION=y
14+
CONFIG_COMP_ASRC=n
15+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright 2026 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
host_dma: dma {
9+
compatible = "nxp,sof-host-dma";
10+
dma-channels = <32>;
11+
#dma-cells = <0>;
12+
};
13+
};
14+
15+
&sdma3 {
16+
status = "okay";
17+
};
18+
19+
&sai3 {
20+
pinctrl-0 = <&sai3_default>;
21+
pinctrl-names = "default";
22+
rx-fifo-watermark = <64>;
23+
tx-fifo-watermark = <64>;
24+
fifo-depth = <96>;
25+
rx-sync-mode = <1>;
26+
status = "okay";
27+
};

0 commit comments

Comments
 (0)