boards: gd32f450i_eval: Enable DMA transfer for nor-flash

Enable DMA transfer via SPI bus for nor-flash.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2022-12-11 16:15:39 +09:00 committed by Marti Bolivar
commit fed4e1857f
2 changed files with 7 additions and 0 deletions

View file

@ -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";

View file

@ -5,3 +5,4 @@
#
CONFIG_SPI_NOR=y
CONFIG_SPI_GD32_DMA=y