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

drivers: dma: Add initial support for NXP SDMA #80330

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Oct 23, 2024

This adds initial support for NXP SDMA controller. We make use
of NXP HAL to configure the IP. SDMA uses BD (buffer descriptors) to describe a transfer. We create
a cyclic list of descriptors and trigger them manually at start and later when data is available.
This is tested using Sound Open Firmware app on top of Zephyr.

We first need to merge following PRs:

drivers/dma/dma_nxp_sdma.c Outdated Show resolved Hide resolved
drivers/dma/dma_nxp_sdma.c Outdated Show resolved Hide resolved
@dbaluta
Copy link
Collaborator Author

dbaluta commented Nov 29, 2024

Changes since v1:

drivers/dma/dma_nxp_sdma.c Outdated Show resolved Hide resolved
@dbaluta
Copy link
Collaborator Author

dbaluta commented Dec 2, 2024

Changes since v2:

  • use DEVICE_API as per @pdgendt comment.

@dbaluta dbaluta force-pushed the add_sdma branch 2 times, most recently from 929324c to c574040 Compare December 2, 2024 15:25
This adds initial support for NXP SDMA controller. We make use
of NXP HAL to configure the IP.

SDMA uses BD (buffer descriptors) to describe a transfer. We create
a cyclic list of descriptors and trigger them manually at start and
later when data is available.

This is tested using Sound Open Firmware app on top of Zephyr.

Signed-off-by: Daniel Baluta <[email protected]>
Add sai3 and sdma3 nodes found on NXP i.MX8MP SOC.

Signed-off-by: Daniel Baluta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DMA Direct Memory Access area: Xtensa Xtensa Architecture platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants