Skip to content

drivers: dma: sam: add support for sama7g5 DMA Controller (XDMAC) #92816

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

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

Conversation

TonyHan11
Copy link
Contributor

Changes in this PR includes:

  • enable MMU for sama7g5 XDMAC
  • update driver to support multiple instances
  • update driver for supporting for sama7g5 DMA
  • update driver for DMA suspend and resume support
  • add XDMAC nodes for sama7g5

TonyHan11 added 4 commits July 8, 2025 14:12
Enable cache manamegent for sama7g5 series.

Signed-off-by: Tony Han <tony.han@microchip.com>
When the XDMAC is activated in the DT, configure it's register region
with strong ordered, read and write access.

Signed-off-by: Tony Han <tony.han@microchip.com>
This update xdmac driver to support multiple DMA instancess.

Signed-off-by: Tony Han <tony.han@microchip.com>
As the number of DMA channels could be different between DMA instances,
get the number from "XDMAC Global Type Register" and validate the
channel used.

Signed-off-by: Tony Han <tony.han@microchip.com>
@github-actions github-actions bot added area: DMA Direct Memory Access platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) platform: Microchip MEC Microchip MEC Platform labels Jul 8, 2025
Update the driver to support sama7g5 XDMAC peripheral.

Signed-off-by: Tony Han <tony.han@microchip.com>
Copy link
Collaborator

@teburd teburd left a comment

Choose a reason for hiding this comment

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

Please review the channel state machine diagram. It's one of the very few requirements I have for DMA drivers, to follow the expected results for applying channel changes.

@TonyHan11 TonyHan11 force-pushed the sama7g5_dma branch 2 times, most recently from c329d3c to d6109d5 Compare July 9, 2025 01:38
Copy link

sonarqubecloud bot commented Jul 9, 2025

TonyHan11 added 2 commits July 9, 2025 09:51
Add support for XDMA channel read write suspend and read write resume.

Signed-off-by: Tony Han <tony.han@microchip.com>
Add dma nodes to sama7g5.dtsi and sama7g54_ek.dts files.

Signed-off-by: Tony Han <tony.han@microchip.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DMA Direct Memory Access platform: Microchip MEC Microchip MEC Platform platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants