Skip to content

tests: drivers: spi: spi_loopback: Test fast instance at low frequency #89886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/nrf_at_1mhz.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/* Note: 1 MHz is too low for fast SPI instance on some nRF platforms.
* In such case, use slow instance instead.
* This overlay is for negative test.
*/

&dut_fast {
spi-max-frequency = <DT_FREQ_M(1)>;
};
14 changes: 14 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/nrf_at_2mhz.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/* Note: 2 MHz is too low for fast SPI instance on some nRF platforms.
* In such case, use slow instance instead.
* This overlay is for negative test.
*/

&dut_fast {
spi-max-frequency = <DT_FREQ_M(2)>;
};
23 changes: 23 additions & 0 deletions tests/drivers/spi/spi_loopback/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,18 @@ tests:
filter: CONFIG_DT_HAS_NXP_FLEXIO_ENABLED and
CONFIG_DT_HAS_NXP_FLEXIO_SPI_ENABLED
platform_allow: mimxrt1040_evk
drivers.spi.nrf54h_fast_2mhz:
extra_args:
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
- EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_2mhz.overlay"
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
harness: console
harness_config:
fixture: spi_loopback
type: one_line
regex:
- "Failed to initialize nrfx driver"
drivers.spi.nrf54h_fast_8mhz:
extra_args: DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
platform_allow:
Expand All @@ -248,6 +260,17 @@ tests:
- EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
drivers.spi.nrf54l_1mhz:
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_1mhz.overlay"
platform_allow:
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
harness: console
harness_config:
fixture: spi_loopback
type: one_line
regex:
- "Failed to initialize nrfx driver"
drivers.spi.nrf54l_8mhz:
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_8mhz.overlay"
platform_allow:
Expand Down