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:

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]>
return true;
}

static const struct dma_driver_api sdma_api = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All device drivers need to use the DEVICE_API macro.

Suggested change
static const struct dma_driver_api sdma_api = {
static DEVICE_API(dma, sdma_api) = {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks will fix.

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