tests: drivers: spi: spi_loopback: Enable nucleo_g474re DMA support

Enable DMA support for the Nucleo g474re board

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
Erwin Rol 2020-09-09 17:55:40 +02:00 committed by Anas Nashif
commit f770dc7121
2 changed files with 30 additions and 1 deletions

View file

@ -1,5 +1,11 @@
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
CONFIG_SPI_STM32_INTERRUPT=y
CONFIG_SPI_STM32_DMA=y
CONFIG_SPI_STM32_INTERRUPT=n
CONFIG_SPI_ASYNC=n
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
# Reduce bus clock speed to be able to reach SPI_LOOPBACK_SLOW_FREQ = 500000
# with max prescaler 256

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
&spi1 {
dmas = <&dmamux1 0 11 0x20440 0
&dmamux1 8 10 0x20480 0>;
dma-names = "tx", "rx";
};
&dma1 {
status = "okay";
};
&dma2 {
status = "okay";
};
&dmamux1 {
status = "okay";
};