Skip to content

Commit f770dc7

Browse files
lowlandernashif
authored andcommitted
tests: drivers: spi: spi_loopback: Enable nucleo_g474re DMA support
Enable DMA support for the Nucleo g474re board Signed-off-by: Erwin Rol <[email protected]>
1 parent 5a8d458 commit f770dc7

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

tests/drivers/spi/spi_loopback/boards/nucleo_g474re.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
2-
CONFIG_SPI_STM32_INTERRUPT=y
2+
3+
CONFIG_SPI_STM32_DMA=y
4+
CONFIG_SPI_STM32_INTERRUPT=n
5+
6+
CONFIG_SPI_ASYNC=n
7+
8+
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
39

410
# Reduce bus clock speed to be able to reach SPI_LOOPBACK_SLOW_FREQ = 500000
511
# with max prescaler 256
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2020 Erwin Rol <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi1 {
8+
dmas = <&dmamux1 0 11 0x20440 0
9+
&dmamux1 8 10 0x20480 0>;
10+
dma-names = "tx", "rx";
11+
};
12+
13+
&dma1 {
14+
status = "okay";
15+
};
16+
17+
&dma2 {
18+
status = "okay";
19+
};
20+
21+
&dmamux1 {
22+
status = "okay";
23+
};

0 commit comments

Comments
 (0)