-
Notifications
You must be signed in to change notification settings - Fork 8.1k
add I2S and EDMA support for IMX9 platform #97777
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
base: main
Are you sure you want to change the base?
add I2S and EDMA support for IMX9 platform #97777
Conversation
|
Hello @yananyang-nxp, and thank you very much for your first pull request to the Zephyr project! |
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
| case IMX_CCM_SAI3_CLK: | ||
| clock_root = kCLOCK_Root_Sai3; | ||
| clock_root = kCLOCK_Root_Sai3; | ||
| break; |
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.
Please don't mix code cleanups with new feature. Create a separate patch for cleanups.
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.
Fixed in the updated PR. Thanks!
| * Copyright 2021,2023-2025 NXP Semiconductor INC. | ||
| * Copyright 2021,2023-2025 NXP | ||
| * All rights reserved. | ||
| * |
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.
Please don't mix fixes with new features.
For example here the correction of DMA burst length should be in a separate patch.
Please read this
https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#pr-requirements
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.
Fixed in the updated PR, please help to have a review again. Thanks!
| }; | ||
|
|
||
| edma4_2: edma@42000000 { | ||
| compatible = "nxp,mcux-edma"; |
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.
Please explain what is sai3_2 and edma4_2. Why such nodes are needed.
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.
On the i.MX MPU platform, the original SAI and eDMA drivers were primarily designed for integration with Sound Open Firmware.
To support Zephyr's legacy I2S and eDMA functionality, we introduced new DTS nodes—eDMA_2 and I2S_2—which utilize the HAL EDMA and HAL I2S drivers.
Since the original eDMA driver does not incorporate the HAL EDMA layer, it is incompatible with the Zephyr MCUX I2S driver.
ee01c55 to
bac888f
Compare
|
Updated:
|
1391413 to
3be8656
Compare
|
Updated:
|
|
Not sure why the bot thinks blobs were added. No blobs added to HAL zephyrproject-rtos/hal_nxp#615 |
b718153 to
82c8755
Compare
|
Update the hal_nxp revision to the imx91 EDMA support commit. Signed-off-by: Hou Zhiqiang <[email protected]>
Enable MMIO mapping in dma_mcux_edma driver Signed-off-by: Yanan Yang <[email protected]>
add SAI clock support for i.MX9 platform Signed-off-by: Yanan Yang <[email protected]> Signed-off-by: Jiafei Pan <[email protected]> Fix CI failure: LEADING_SPACE: please, no spaces at the start of a line Split code format fixing into a new patch Signed-off-by: Hou Zhiqiang <[email protected]>
Remove extra space between the '=' and rvalue. Signed-off-by: Yanan Yang <[email protected]> Signed-off-by: Hou Zhiqiang <[email protected]>
The burst length should be initialized with 'word_size_bits'. Signed-off-by: Yanan Yang <[email protected]> Signed-off-by: Hou Zhiqiang <[email protected]>
Change to use device model MMIO mapping APIs. Signed-off-by: Yanan Yang <[email protected]> Signed-off-by: Jiafei Pan <[email protected]> Fix CI failures: Clean unused code Signed-off-by: Hou Zhiqiang <[email protected]>
Correct the type of num_of_bufs to uint32_t. Signed-off-by: Hou Zhiqiang <[email protected]>
When the platform has the Bit Clock Swap feature, enable it. Signed-off-by: Hou Zhiqiang <[email protected]>
Rework the driver to support i.MX9 platforms. Signed-off-by: Hou Zhiqiang <[email protected]> Signed-off-by: Yanan Yang <[email protected]> Signed-off-by: Jiafei Pan <[email protected]>
add add sai3_2 and edma4_2 dts node for use with i2s_mcux_sai driver Signed-off-by: Yanan Yang <[email protected]>
add sai3_2 and edma4_2 dts node for use with i2s_mcux_sai driver Signed-off-by: Yanan Yang <[email protected]>
add sai3_2 and edma4_2 dts node for use with i2s_mcux_sai driver Signed-off-by: Yanan Yang <[email protected]>
add sai3_2 and edma4_2 node for use with i2s_mcux_sai driver Signed-off-by: Yanan Yang <[email protected]> Signed-off-by: Hou Zhiqiang <[email protected]>
add sai3_2 and edma4_2 node for use with i2s_mcux_sai driver Signed-off-by: Yanan Yang <[email protected]>
|
Updated:
|



add I2S and EDMA support for IMX9 platform
The depended PR below has been merged:
zephyrproject-rtos/hal_nxp#623