From 8b156dfc85061dfe8a25fc081cce66f4d0ffcc04 Mon Sep 17 00:00:00 2001 From: Thomas Stranger Date: Mon, 3 May 2021 10:29:03 +0200 Subject: [PATCH] tests: spi: convert nucleo_g474re to define prescaler in dt As the nucleo_g474re was converted to define clock properties in devicetree, this commit makes the ncecessary changes such that the ncecessary test properties are still applied. Signed-off-by: Thomas Stranger --- .../drivers/spi/spi_loopback/boards/nucleo_g474re.overlay | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/drivers/spi/spi_loopback/boards/nucleo_g474re.overlay b/tests/drivers/spi/spi_loopback/boards/nucleo_g474re.overlay index b317c810ff9..d2151a4f832 100644 --- a/tests/drivers/spi/spi_loopback/boards/nucleo_g474re.overlay +++ b/tests/drivers/spi/spi_loopback/boards/nucleo_g474re.overlay @@ -30,3 +30,11 @@ &dmamux1 { status = "okay"; }; + +&rcc { + /* + * Reduce bus clock speed to be able to reach + * SPI_LOOPBACK_SLOW_FREQ = 500000 with max prescaler 256 + */ + apb2-prescaler = <2>; +};