Skip to content

drivers: acp: add TDM DAI and DMA support for native Zephyr drivers for AMD ACP 7.0#108314

Open
Sivasubramanian678 wants to merge 2 commits into
zephyrproject-rtos:mainfrom
Sivasubramanian678:main
Open

drivers: acp: add TDM DAI and DMA support for native Zephyr drivers for AMD ACP 7.0#108314
Sivasubramanian678 wants to merge 2 commits into
zephyrproject-rtos:mainfrom
Sivasubramanian678:main

Conversation

@Sivasubramanian678
Copy link
Copy Markdown

This PR adds native Zephyr support for AMD Audio Co-Processor (ACP) version 7.0 for handling TDM IO.

@Sivasubramanian678
Copy link
Copy Markdown
Author

@kv2019i Could you please review this PR and let me know if there are any further updates or improvements needed?

Copy link
Copy Markdown
Contributor

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Mostly looks good. A couple of smaller comments.

Comment thread drivers/dma/dma_acp_tdm.c
LOG_DBG("start: idx=%d dir=%d", tdm_inst, chan->direction);

switch (tdm_inst) {
case 0: /* HS */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor: These magic values keep repeating in code (and also in DAI drivers), so a common defined would be nice. But not a blocker, these are commented systematically.

Comment thread dts/bindings/dma/amd,acp-tdm-dma.yaml Outdated
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should go to dts/bindings/dma/ as this binding for the DMA driver

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks @kv2019i for pointing this out. The requested changes have been made.

Comment thread drivers/dma/dma_acp_tdm.c
kv2019i
kv2019i previously approved these changes May 12, 2026
@bhiregoudar
Copy link
Copy Markdown

+1 for this PR from ACP hardware and software side

abonislawski
abonislawski previously approved these changes May 13, 2026
Comment thread drivers/dma/dma_acp_tdm.c Outdated
@@ -0,0 +1,637 @@
/* SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors */
/*
* Copyright (c) 2026 AMD
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is really weird formatting and wording - if you feel strongly about having AMD copyright then please use just that (and not "Copyright The Zephyr Project Contributors") and use SPDX-FileCopyrightText tag

Please fix everywhere

Suggested change
* Copyright (c) 2026 AMD
/**
* SPDX-FileCopyrightText: Copyright (c) 2026 AMD

Sivasubramanian678 and others added 2 commits May 13, 2026 16:54
Add TDM DAI driver and ACP 7.0 register
definitions for AMD Audio Co-Processor. This includes:

- TDM DAI driver (tdm_dai.c, tdm_dai.h) with support for I2S format
- ACP 7.0 chip register definitions and offset mappings
- Device tree bindings and nodes for TDM DAI instances
- Kconfig and CMake build integration

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
Co-authored-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Add TDM DMA driver for AMD Audio Co-Processor 7.0. This includes:

- DMA driver (dma_acp_tdm.c) with support for memory-to-device and
  device-to-memory transfers using ACP DMA engine
- Device tree bindings and node for ACP TDM DMA controller
- Kconfig and CMake build integration

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
Co-authored-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
@sonarqubecloud
Copy link
Copy Markdown

@kartben kartben dismissed their stale review May 14, 2026 05:38

Addressed, thanks!

@Sivasubramanian678
Copy link
Copy Markdown
Author

@kv2019i , @abonislawski Hi, could you please review the PR and let me know if any changes are required? Thank you!

@bhiregoudar
Copy link
Copy Markdown

@kv2019i , @abonislawski Hi, could you please review the PR and let me know if any changes are required? Thank you!

We need support here as our delivery/release is waiting and waiting in queue to raise other PR's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards/SoCs area: DAI area: Devicetree Binding PR modifies or adds a Device Tree binding area: DMA Direct Memory Access area: Xtensa Xtensa Architecture

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants