-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Add mcxe31b edma support #100341
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
Add mcxe31b edma support #100341
Conversation
9984b8b to
2d87b11
Compare
2e525f1 to
1a1e41b
Compare
5c880e3 to
4c5bb30
Compare
4f0a8a2 to
9a5e09f
Compare
|
Does anyone have any other suggestions regarding this EDMA patch? Can we approve and merge this PR? |
9a5e09f to
2a1e6d3
Compare
2a1e6d3 to
2b24ca0
Compare
doc/releases/migration-guide-4.4.rst
Outdated
| DMA | ||
| === | ||
|
|
||
| * Removed ``DMA_MCUX_EDMA_V5`` (:github:`100341`). This macro previously distinguished between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use ":kconfig:option:CONFIG_DMA_MCUX_EDMA_V5", it is a kconfig option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
2b24ca0 to
d62d5eb
Compare
0484b2c
The DMA_MCUX_EDMA_V5 configuration option has been removed and replaced with DMA_MCUX_EDMA_V4, as both versions share the same register layout and can use the same driver implementation. Key changes: - Remove CONFIG_DMA_MCUX_EDMA_V5 Kconfig option - Replace DMA_MCUX_EDMA_V5 conditionals with DMA_MCUX_EDMA_V4 - Remove DMAx_Type typedef, use DMA_Type directly - Update EDMA_HW_TCD macros for V4 to use HAL-provided accessor macros - Add DMA_MCUX_EDMA_DMAMUX Kconfig option to control DMAMUX support based on device tree property - Update device tree binding to add has-dmamux property - Update HAL driver selection to use DMA_MCUX_EDMA_DMAMUX instead of DMA_MCUX_EDMA for DMAMUX component - Add SOC_SERIES_MCXE31X to DMA_MCUX_TEST_SLOT_START configuration - Calculate DMA_TCD_ALIGN_SIZE from edma_tcd_t structure size Signed-off-by: Qiang Zhang <[email protected]>
Update EDMA device tree nodes for NXP MCXE31B platforms to align with the unified EDMA driver implementation. Signed-off-by: Qiang Zhang <[email protected]>
Add pinctrl configuration and DMA channel assignments for LPUART2 on the FRDM-MCXE31B board. Signed-off-by: Qiang Zhang <[email protected]>
Add board-specific configuration and overlay files to enable DMA testing on the FRDM-MCXE31B board. Signed-off-by: Qiang Zhang <[email protected]>
Add board-specific overlay file to enable UART async API testing on the FRDM-MCXE31B board. Signed-off-by: Qiang Zhang <[email protected]>
Add migration guide entry for the removal of CONFIG_DMA_MCUX_EDMA_V5 configuration option. Signed-off-by: Qiang Zhang <[email protected]>
0484b2c to
e7d16c3
Compare
|



Test Result:
`Running TESTSUITE dma_m2m_loop
===================================================================
START - test_tst_dma0_m2m_loop
DMA memory to memory transfer started
Preparing DMA Controller: edma@20c000
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: edma@20c000
PASS - test_tst_dma0_m2m_loop in 0.275 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.273 seconds
===================================================================
START - test_tst_dma0_m2m_loop_suspend_resume
DMA memory to memory transfer started
Preparing DMA Controller: edma@20c000
Starting the transfer on channel 0 and waiting for 1 second
suspended after 0 transfers occurred
resuming after 0 transfers occurred
Resumed transfers
Transfer count 4
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: edma@20c000
PASS - test_tst_dma0_m2m_loop_suspend_resume in 0.535 seconds
===================================================================
TESTSUITE dma_m2m_loop succeeded
------ TESTSUITE SUMMARY START ------
SUITE PASS - 100.00% [dma_m2m_loop]: pass = 3, fail = 0, skip = 0, total = 3 duration = 1.083 seconds
PASS - [dma_m2m_loop.test_tst_dma0_m2m_loop] duration = 0.275 seconds
PASS - [dma_m2m_loop.test_tst_dma0_m2m_loop_repeated_start_stop] duration = 0.273 seconds
PASS - [dma_m2m_loop.test_tst_dma0_m2m_loop_suspend_resume] duration = 0.535 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
PROJECT EXECUTION SUCCESSFUL
`