Skip to content

Commit

Permalink
tests: drivers: spi driver testing on the stm32h573i_dk board (dma)
Browse files Browse the repository at this point in the history
Configure the tests/drivers/spi/spi_loopback to run on the
stm32h573i_dk disco kit with DMA transfer
use gpdma1 or gpdma2.
GPDMA1 or GPDMA2 have the same request for spi2 transfer.
Connect D11 and D12  of the ARDuino CN13 connector to PASS the test.

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM authored and fabiobaltieri committed Apr 6, 2023
1 parent 2635821 commit 0cca0bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/stm32h573i_dk.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
};

&spi2 {
dmas = <&gpdma1 0 9 STM32_DMA_PERIPH_TX
&gpdma1 1 8 STM32_DMA_PERIPH_RX>;
dma-names = "tx", "rx";

slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
Expand All @@ -20,3 +24,11 @@
spi-max-frequency = <10000000>;
};
};

&gpdma1 {
status = "okay";
};

&gpdma2 {
status = "okay";
};

0 comments on commit 0cca0bc

Please sign in to comment.