Skip to content

Commit

Permalink
tests: drivers: spi loopback on the stm32h573i_dk (interrupt)
Browse files Browse the repository at this point in the history
Add the configuration for running the spi_loopback (interrupt mode)
on the stm32h573i_dk disco kit.
The SPI2 is enabled by the board DTS
Connect pin D11 and D12 on the Arduino connector (CN13)

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM authored and fabiobaltieri committed Apr 6, 2023
1 parent f6753e3 commit 2635821
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/stm32h573i_dk.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2023 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/

&rcc {
apb1-prescaler = <2>;
};

&spi2 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <10000000>;
};
};
2 changes: 1 addition & 1 deletion tests/drivers/spi/spi_loopback/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tests:
extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf"
filter: CONFIG_SOC_FAMILY_STM32
platform_allow: nucleo_g474re nucleo_f207zg nucleo_f429zi nucleo_f746zg nucleo_wb55rg
nucleo_l152re nucleo_wl55jc nucleo_h743zi
nucleo_l152re nucleo_wl55jc nucleo_h743zi stm32h573i_dk
integration_platforms:
- nucleo_g474re
drivers.spi.gd32_spi_interrupt.loopback:
Expand Down

0 comments on commit 2635821

Please sign in to comment.