-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[TI cc23x0 SoC] Add DMA mode to SPI driver #90585
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
[TI cc23x0 SoC] Add DMA mode to SPI driver #90585
Conversation
Two DMA channels are assigned to TX and RX respectively: - A TX DMA single request is asserted when there is space in the FIFO. - A RX DMA single request is asserted when data is in the FIFO. Signed-off-by: Julien Panis <[email protected]>
Add support to use DMA mode with cc23x0 SPI module. This consists in specifying the DMA channels and peripherals. Signed-off-by: Julien Panis <[email protected]>
@tbursztyka @teburd @vaishnavachath Could you please review when you have time for this ? |
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.
A test case is needed in 1 of the SPI tests (loopback for ex) so this code gets at least built in CI.
When loopback mode is enabled, the output of transmit serial shifter is connected to the input of receive serial shifter internally. Signed-off-by: Julien Panis <[email protected]>
Enable DMA for the test. Signed-off-by: Julien Panis <[email protected]>
|
@JarmouniA Done (I added 2 new commits: 1 in the driver to enable loopback optionally, and 1 for the test). |
Hi @vaishnavachath @tbursztyka Could you please review this PR ? Nothing has changed in the 2 commits you approved 2 weeks ago. Only 2 new commits (XS size) were added, and they are now approved by JarmouniA who requested the SPI test. |
This series adds DMA mode support to SPI driver for the TI cc23x0 SoC.
Datasheet: https://www.ti.com/lit/ds/symlink/cc2340r5.pdf