Skip to content

Commit fed4e18

Browse files
soburimbolivar-nordic
authored andcommitted
boards: gd32f450i_eval: Enable DMA transfer for nor-flash
Enable DMA transfer via SPI bus for nor-flash. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 666386f commit fed4e18

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

boards/arm/gd32f450i_eval/gd32f450i_eval.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,17 @@
145145
};
146146
};
147147

148+
&dma1 {
149+
status = "okay";
150+
};
151+
148152
&spi5 {
149153
status = "okay";
150154
pinctrl-0 = <&spi5_default>;
151155
pinctrl-names = "default";
152156
cs-gpios = <&gpioi 8 GPIO_ACTIVE_LOW>;
157+
dmas = <&dma1 5 1 0 0>, <&dma1 6 1 0 0>;
158+
dma-names = "tx", "rx";
153159

154160
nor_flash: gd25q16@0 {
155161
compatible ="jedec,spi-nor";

samples/drivers/spi_flash/boards/gd32f450i_eval.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
#
66

77
CONFIG_SPI_NOR=y
8+
CONFIG_SPI_GD32_DMA=y

0 commit comments

Comments
 (0)