Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions boards/arm/gd32f403z_eval/gd32f403z_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ supported:
- pwm
- watchdog
- dma
- spi
1 change: 1 addition & 0 deletions boards/arm/gd32f407v_start/gd32f407v_start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ supported:
- gpio
- counter
- dma
- spi
6 changes: 6 additions & 0 deletions boards/arm/gd32f450i_eval/gd32f450i_eval.dts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,17 @@
};
};

&dma1 {
status = "okay";
};

&spi5 {
status = "okay";
pinctrl-0 = <&spi5_default>;
pinctrl-names = "default";
cs-gpios = <&gpioi 8 GPIO_ACTIVE_LOW>;
dmas = <&dma1 5 1 0 0>, <&dma1 6 1 0 0>;
dma-names = "tx", "rx";

nor_flash: gd25q16@0 {
compatible ="jedec,spi-nor";
Expand Down
1 change: 1 addition & 0 deletions boards/arm/gd32f450i_eval/gd32f450i_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ supported:
- watchdog
- counter
- dma
- spi
1 change: 1 addition & 0 deletions boards/arm/gd32f450v_start/gd32f450v_start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ supported:
- gpio
- counter
- dma
- spi
1 change: 1 addition & 0 deletions boards/arm/gd32f470i_eval/gd32f470i_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ supported:
- uart
- watchdog
- dma
- spi
1 change: 1 addition & 0 deletions boards/riscv/gd32vf103c_starter/gd32vf103c_starter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ supported:
- pwm
- watchdog
- dma
- spi
1 change: 1 addition & 0 deletions boards/riscv/gd32vf103v_eval/gd32vf103v_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ supported:
- pwm
- watchdog
- dma
- spi
1 change: 1 addition & 0 deletions boards/riscv/longan_nano/longan_nano.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ram: 32
supported:
- watchdog
- dma
- spi
1 change: 1 addition & 0 deletions boards/riscv/longan_nano/longan_nano_lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ram: 20
supported:
- watchdog
- dma
- spi
9 changes: 9 additions & 0 deletions drivers/spi/Kconfig.gd32
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ if SPI_GD32
config SPI_GD32_INTERRUPT
bool "GD32 MCU SPI Interrupt Support"
default y if SPI_ASYNC
default y if SPI_GD32_DMA
help
Enable the interrupt driven mode for SPI instances

config SPI_GD32_DMA
bool "GD32 MCU SPI DMA Support"
select DMA
select SPI_GD32_INTERRUPT
help
Use the DMA for SPI transfer
that enable dma channels in their device tree node.

endif # SPI_GD32
Loading