Skip to content

Conversation

@soburi
Copy link
Member

@soburi soburi commented Jul 7, 2022

Add supporting DMA-based transfer for GD32 SPI.

Signed-off-by: TOKITA Hiroshi [email protected]

@soburi soburi marked this pull request as draft July 7, 2022 14:24
@zephyrbot zephyrbot added area: SPI SPI bus area: Devicetree platform: GD32 GigaDevice area: DMA Direct Memory Access labels Jul 7, 2022
@nandojve nandojve mentioned this pull request Jul 9, 2022
55 tasks
Copy link
Contributor

@mbolivar-nordic mbolivar-nordic left a 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

@nandojve
Copy link
Member

nandojve commented Aug 2, 2022

Hi @soburi ,

You can rebase since #47501 got merge.

@soburi soburi force-pushed the gd32_spi_dma branch 3 times, most recently from 4bbb8c6 to f443540 Compare August 4, 2022 23:43
@soburi soburi marked this pull request as ready for review August 5, 2022 00:05
@soburi soburi changed the title [draft] drivers: spi: gd32: Add support DMA transfer drivers: spi: gd32: Add support DMA transfer Aug 5, 2022
@zephyrbot zephyrbot requested a review from cameled August 5, 2022 00:05
@soburi
Copy link
Member Author

soburi commented Aug 5, 2022

Hi, @nandojve , @cameled
Thank you for your continued support.
As with #47501, please review it.

@soburi soburi requested a review from mbolivar-nordic August 5, 2022 00:11
galak
galak previously requested changes Aug 5, 2022
Copy link
Contributor

@galak galak left a 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.

Copy link
Contributor

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

Copy link
Member Author

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?

@cameled
Copy link
Contributor

cameled commented Aug 5, 2022

@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.

@soburi soburi marked this pull request as ready for review December 22, 2022 13:55
@zephyrbot zephyrbot added the area: RISCV RISCV Architecture (32-bit & 64-bit) label Dec 22, 2022
@soburi soburi requested a review from cameled December 22, 2022 15:35
Copy link
Contributor

@cameled cameled left a 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.

@soburi soburi force-pushed the gd32_spi_dma branch 3 times, most recently from 8de7948 to 9fa3151 Compare January 6, 2023 13:00
@soburi soburi requested a review from cameled January 6, 2023 20:43
@nandojve nandojve requested a review from galak January 7, 2023 12:34
@soburi soburi requested a review from nandojve January 8, 2023 03:47
Copy link
Contributor

@cameled cameled left a 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.

soburi added 4 commits January 9, 2023 13:08
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]>
Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @soburi !

@mbolivar-nordic mbolivar-nordic merged commit fed4e18 into zephyrproject-rtos:main Jan 11, 2023
@soburi soburi deleted the gd32_spi_dma branch January 11, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Devicetree area: DMA Direct Memory Access area: RISCV RISCV Architecture (32-bit & 64-bit) area: SPI SPI bus platform: GD32 GigaDevice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants