Skip to content

drivers: spi: esp32: DMA operations via GDMA driver #92796

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

Merged
merged 3 commits into from
Jul 24, 2025

Conversation

raffarost
Copy link

Perform DMA operations using GDMA driver instead of relying on
HAL functions. Prevents eventual conflicts between SPI and GDMA
drivers when other peripherals also use DMA.

@raffarost raffarost linked an issue Jul 7, 2025 that may be closed by this pull request
@raffarost raffarost force-pushed the enhancement/spi/gdma branch 3 times, most recently from 86676e5 to 106304b Compare July 7, 2025 19:26
@raffarost raffarost marked this pull request as ready for review July 7, 2025 20:04
@github-actions github-actions bot added area: SPI SPI bus platform: ESP32 Espressif ESP32 area: Xtensa Xtensa Architecture area: RISCV RISCV Architecture (32-bit & 64-bit) labels Jul 7, 2025
@dkalowsk dkalowsk added this to the v4.3.0 milestone Jul 11, 2025
@raffarost raffarost force-pushed the enhancement/spi/gdma branch from 106304b to 1a96088 Compare July 21, 2025 20:27
@raffarost raffarost assigned sylvioalves and unassigned tbursztyka Jul 21, 2025
Raffael Rostagno added 3 commits July 23, 2025 15:37
Perform DMA operations using GDMA driver instead of relying on
HAL functions. Prevents eventual conflicts between SPI and GDMA
drivers when other peripherals also use DMA.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
Remove unused DMA clock property from device tree. Clock will
be managed by DMA driver for devices with GDMA peripheral.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
Update DTS settings to add DMA configuration to devices which
support GDMA peripheral, in order to perform operations via DMA
driver instead of HAL functions.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
@raffarost raffarost force-pushed the enhancement/spi/gdma branch from 1a96088 to b729900 Compare July 23, 2025 18:37
Copy link

@fabiobaltieri fabiobaltieri merged commit 7c30d7a into zephyrproject-rtos:main Jul 24, 2025
25 checks passed
@raffarost raffarost deleted the enhancement/spi/gdma branch July 24, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: RISCV RISCV Architecture (32-bit & 64-bit) area: SPI SPI bus area: Xtensa Xtensa Architecture platform: ESP32 Espressif ESP32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESP32: MIPI-DBI-SPI Not working in DMA mode
7 participants