Skip to content

Commit

Permalink
boards: mimx93_evk_a55: Enable SAI, EDMA and HOST DMA drivers
Browse files Browse the repository at this point in the history
This commit introduces the necessary changes to the overlay
and configuration files required for enabling the Zephyr native
SAI, EDMA and HOST DMA drivers on i.MX93.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 authored and dbaluta committed Mar 25, 2024
1 parent 47e9c82 commit 0441484
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
12 changes: 12 additions & 0 deletions app/boards/imx93_evk_mimx9352_a55.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ CONFIG_DCACHE_LINE_SIZE=64

CONFIG_IMX93_A55=y
CONFIG_TRACE=n

# DAI-related configurations
CONFIG_SAI_HAS_MCLK_CONFIG_OPTION=y
CONFIG_SAI_IMX93_ERRATA_051421=y

# DMA-related configurations
CONFIG_DMA=y
CONFIG_DMA_NXP_EDMA_ENABLE_HALFMAJOR_IRQ=y

# needed because EDMA uses same interrupt for multiple
# channels.
CONFIG_SHARED_INTERRUPTS=y
30 changes: 18 additions & 12 deletions app/boards/imx93_evk_mimx9352_a55.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@
reg = <0x42430000 DT_SIZE_K(64)>;
};

sai3: memory@42660000 {
reg = <0x42660000 DT_SIZE_K(64)>;
};

edma2_ch0: memory@42010000 {
reg = <0x42010000 DT_SIZE_K(32)>;
};

edma2_ch1: memory@42018000 {
reg = <0x42018000 DT_SIZE_K(32)>;
};

outbox: memory@ce100000 {
reg = <0xce100000 DT_SIZE_K(4)>;
};
Expand All @@ -58,4 +46,22 @@
host_ram: memory@80000000 {
reg = <0x80000000 DT_SIZE_M(1024)>;
};

host_dma: dma {
compatible = "nxp,sof-host-dma";
dma-channels = <32>;
#dma-cells = <0>;
};
};

&sai3 {
tx-fifo-watermark = <2>;
rx-fifo-watermark = <96>;
fifo-depth = <96>;
rx-sync-mode = <1>;
status = "okay";
};

&edma4 {
status = "okay";
};

0 comments on commit 0441484

Please sign in to comment.