-
Couldn't load subscription status.
- Fork 8.2k
drivers: spi: gd32: Add support DMA transfer #47504
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
Conversation
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.
@teburd -- I'm trying to take a step back from reviewing subsystem-specific DT changes in favor of asking those subsystem maintainers to take this on. I'm going to leave this up to you -- please feel free to ping if you have any specific questions
4bbb8c6 to
f443540
Compare
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 standard dmas property.
dts/bindings/spi/gd,gd32-spi.yaml
Outdated
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.
Why isn't this using a dmas property like dts/bindings/spi/atmel,sam0-spi.yaml
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.
I will apply your pointing out.
dma-gd32.c need fix prior than spi,
so I create new PR #48756.
Could you please review also it?
|
@soburi In general, gd32 evaluate boards have a spi flash. I have tried to run dma on that spi flash from gd32f450i_eval board, but looks there have something blocked. I will try to dig out tomorrow. Anyway, this is an impressive work. |
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.
Great work, some need to confirm.
8de7948 to
9fa3151
Compare
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.
LGTM, add some suggestion.
Add supporting DMA-based transfer for GD32 SPI. Signed-off-by: TOKITA Hiroshi <[email protected]>
Add interrupt and DMA tests for GD32 boards. Use overlay-gd32-spi-interrupt.conf when testing interrupt based transfer, use overlay-gd32-spi-dma.conf when testing DMA transfer, Add overlay file for GD32 boards for these tests. Signed-off-by: TOKITA Hiroshi <[email protected]>
Add `spi` as supported feature to yaml configuration. Signed-off-by: TOKITA Hiroshi <[email protected]>
Enable DMA transfer via SPI bus for nor-flash. Signed-off-by: TOKITA Hiroshi <[email protected]>
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.
Thank you @soburi !
Add supporting DMA-based transfer for GD32 SPI.
Signed-off-by: TOKITA Hiroshi [email protected]