Skip to content

[TI cc23x0 SoC] Add DMA mode to UART driver #90586

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

Conversation

jpanisbl
Copy link
Contributor

This series adds DMA mode support to UART driver for the TI cc23x0 SoC.

Datasheet: https://www.ti.com/lit/ds/symlink/cc2340r5.pdf

jpanisbl added 2 commits May 26, 2025 10:19
Two DMA channels are assigned to TX and RX respectively:
- A TX DMA request is asserted when there is space in the FIFO.
- A RX DMA request is asserted when data is in the FIFO.

When DMA is enabled for a peripheral, the DMA transfer completion is
signaled on the peripheral's interrupt only (here UART's interrupt).
It is not signaled on the DMA dedicated interrupt.

Also, when DMA is enabled for a peripheral, the DMA controller stops
the normal transfer interrupts for this peripheral from reaching the
NVIC (the interrupts are still reported in the interrupt registers of
the peripheral). Thus, when a large amount of data is transferred using
DMA, instead of receiving multiple interrupts from the peripheral as
data flows, the NVIC receives only one interrupt when the transfer
completes (unmasked peripheral error interrupts continue to be sent
to the NVIC).

Signed-off-by: Julien Panis <[email protected]>
Add support to use DMA mode with cc23x0 UART module. This consists in
specifying the DMA channels and peripherals.

Signed-off-by: Julien Panis <[email protected]>
@github-actions github-actions bot added platform: TI SimpleLink Texas Instruments SimpleLink MCU area: UART Universal Asynchronous Receiver-Transmitter labels May 26, 2025
Copy link

@jpanisbl
Copy link
Contributor Author

jpanisbl commented Jun 6, 2025

@dcpleung @vaishnavachath Could you please review when you have time for this ?

@jpanisbl
Copy link
Contributor Author

jpanisbl commented Jun 6, 2025

Hello @kartben
I may be wrong but @vanti is no longer active as a reviewer it seems (no Zephyr contribution over the last months/years). Maybe worth adding somebody else to help the current reviewers (they are only 2).

@kartben kartben merged commit a92339b into zephyrproject-rtos:main Jun 10, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter platform: TI SimpleLink Texas Instruments SimpleLink MCU
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants