-
Notifications
You must be signed in to change notification settings - Fork 8.2k
dts: bindings: dma: gd32: Redesign DMA node's cell properties #48756
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.
Question on devicetree binding.
f2d4bc4 to
16445b6
Compare
|
I think GD32 dma bindings must align with STM32, see and Zephyr counterpart. |
|
Sorry for late response.
I reworked this PR to make it compatible with STM32's dts spec. I think the STM32's channel-config cell design is a bit complex. Could you tell me your opinions? |
8e1147b to
67117a6
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.
just one question
|
Hi, @gmarull @galak @carlescufi Could you re-check this PR if you can take a while. Point to discussion: If I can, I want to proceed with this PR and #47504 to bring it into v3.3. |
ae16bff to
23330c2
Compare
23330c2 to
a4ab371
Compare
47c4e27 to
f35c0ea
Compare
f35c0ea to
68c7444
Compare
The overlay file overrides not existing node `dma0`. Correct it to `dma`. Signed-off-by: TOKITA Hiroshi <[email protected]>
Use dma_slot for peripheral request instead of linked_channel. This is a more suitable usage as described in dma_config. Signed-off-by: TOKITA Hiroshi <[email protected]>
Add config cell property to gd,gd32-dma. For supporting hardware variation, Splitting base definition to gd,gd32-dma-base.yaml. Signed-off-by: TOKITA Hiroshi <[email protected]>
Add `gd,mem2mem` property to indicate the DMA controller supports memory to memory transfer. Signed-off-by: TOKITA Hiroshi <[email protected]>
Split gd,gd32-dma-v1 from gd,gd32-dma to support F4xx specific features. Signed-off-by: TOKITA Hiroshi <[email protected]>
Add overlay file for gd32_e507z_eval, gd32f407v_start, gd32f450v_start, gd32f450v_start and longan_nano_lite. Signed-off-by: TOKITA Hiroshi <[email protected]>
Add `dma` as supported feature to yaml configuration. Signed-off-by: TOKITA Hiroshi <[email protected]>
68c7444 to
ead4c87
Compare
From #47504 review, split out to this PR about gd32-dma related changes.
From result of discussion in this PR, the cell property specs following STM32's interface specs is preferable.
This PR make following changes...
configcell property to gd,gd32-dmagd,gd32-dma-v1fromgd,gd32-dmafor supporting F4XX specific features (FIFO is defined, but not implemented)I verify the dma/loop_transfer test passed with gd32f407v_start and longan_nano.
Other boards case, I only checked it can compile.