Skip to content

Conversation

ZhaoxiangJin
Copy link
Contributor

  1. enabled nxp dma driver
  2. enabled nxp dma driver on frdm_mcxc444
  3. tested nxp dma driver with dma/loop_transfer test case
    test result:
*** Booting Zephyr OS build v4.2.0-6156-g17fe21076a3b ***
Running TESTSUITE dma_m2m_loop
===================================================================
START - test_tst_dma0_m2m_loop
DMA memory to memory transfer started
Preparing DMA Controller: dma-controller@40008000
Starting the transfer on channel 0 and waiting for 1 second
Each RX buffer should contain the full TX buffer string.
RX data Loop 0
RX data Loop 1
RX data Loop 2
RX data Loop 3
Finished DMA: dma-controller@40008000
 PASS - test_tst_dma0_m2m_loop in 0.279 seconds
===================================================================
START - test_tst_dma0_m2m_loop_repeated_start_stop
DMA memory to memory transfer started
Preparing DMA Controller
Starting the transfer on channel 0 and waiting for 1 second
Each RX buffer should contain the full TX buffer string.
RX data Loop 0
RX data Loop 1
RX data Loop 2
RX data Loop 3
Finished: DMA
 PASS - test_tst_dma0_m2m_loop_repeated_start_stop in 0.275 seconds
===================================================================
START - test_tst_dma0_m2m_loop_suspend_resume
DMA memory to memory transfer started
Preparing DMA Controller: dma-controller@40008000
Starting the transfer on channel 0 and waiting for 1 second
suspend not supported
 SKIP - test_tst_dma0_m2m_loop_suspend_resume in 0.017 seconds
===================================================================
TESTSUITE dma_m2m_loop succeeded

------ TESTSUITE SUMMARY START ------

SUITE PASS - 100.00% [dma_m2m_loop]: pass = 2, fail = 0, skip = 1, total = 3 duration = 0.571 seconds
 - PASS - [dma_m2m_loop.test_tst_dma0_m2m_loop] duration = 0.279 seconds
 - PASS - [dma_m2m_loop.test_tst_dma0_m2m_loop_repeated_start_stop] duration = 0.275 seconds
 - SKIP - [dma_m2m_loop.test_tst_dma0_m2m_loop_suspend_resume] duration = 0.017 seconds

------ TESTSUITE SUMMARY END ------

===================================================================
PROJECT EXECUTION SUCCESSFUL

Please access https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true to download MCXC44x Sub-Family Reference Manual for more details. DMAMUX can be found in Chapter 20 and DMA in Chapter 21.

Enable dma and dmamux clock through sim driver

Signed-off-by: Zhaoxiang Jin <[email protected]>
@ZhaoxiangJin ZhaoxiangJin force-pushed the enable-nxp-dma-driver branch from 17fe210 to a731d74 Compare October 18, 2025 09:40
This commit introduces a new DMA driver for NXP platforms,
specifically supporting the MCXC/kinetis series.

Please access https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true
to download MCXC44x Sub-Family Reference Manual for more details.
DMAMUX can be found in Chapter 20 and DMA in Chapter 21.

Signed-off-by: Zhaoxiang Jin <[email protected]>
Enable DMA on frdm_mcxc444

Signed-off-by: Zhaoxiang Jin <[email protected]>
Enable loop_transfer for nxp,dma

Signed-off-by: Zhaoxiang Jin <[email protected]>
@ZhaoxiangJin ZhaoxiangJin force-pushed the enable-nxp-dma-driver branch from a731d74 to 9af6622 Compare October 18, 2025 09:44
Copy link

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants