nxp: imx8ulp: and nodes and enable drivers for SAI, EDMA and HOST_DMA

Add DTS nodes for and enable the drivers of SAI, EDMA
and HOST_DMA.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2024-04-23 14:29:29 +03:00 committed by Kai Vehmanen
parent 3f1f45aaeb
commit 4b567533eb
2 changed files with 49 additions and 0 deletions

View File

@ -5,3 +5,10 @@ CONFIG_KPB_FORCE_COPY_TYPE_NORMAL=n
CONFIG_ZEPHYR_LOG=y
CONFIG_TRACE=n
CONFIG_DMA=y
CONFIG_DMA_NXP_EDMA_ENABLE_HALFMAJOR_IRQ=y
# TODO: remove this from here. Should be extracted
# from DAI bespoke configuration or DTS.
CONFIG_SAI_FIFO_WORD_SIZE=2

View File

@ -0,0 +1,42 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
host_dma: dma {
compatible = "nxp,sof-host-dma";
dma-channels = <32>;
#dma-cells = <0>;
};
};
&edma2 {
status = "okay";
};
&sai5 {
rx-fifo-watermark = <8>;
tx-fifo-watermark = <1>;
fifo-depth = <8>;
rx-sync-mode = <1>;
status = "okay";
};
/*
* TODO: this node shouldn't be here. For now, we only support
* the EVK board in Zephyr, while in SOF we support the EVK and
* the EVK9 boards. This is an issue because the two boards use
* different SAI instances for BT communication (SAI5 - EVK,
* SAI6 - EVK9). Ideally, we should have two boards in Zephyr
* and SOF but for now this workaround will suffice.
*/
&sai6 {
rx-fifo-watermark = <8>;
tx-fifo-watermark = <1>;
fifo-depth = <8>;
rx-sync-mode = <1>;
tx-dataline = <2>;
status = "okay";
};