Skip to content

Commit cfe1fc9

Browse files
committed
[nrf fromlist] tests: drivers: spi: Tests SPI at 16/32/64 MHz on nRF54 devices
Extend spi_loopback test on nRF54 chip family. Add configurations to run this test at 8/16/32/64 MHz. Upstream PR #: 86010 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent a2b3371 commit cfe1fc9

File tree

8 files changed

+84
-4
lines changed

8 files changed

+84
-4
lines changed

tests/drivers/spi/spi_loopback/boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
reg = <0>;
4141
spi-max-frequency = <DT_FREQ_M(4)>;
4242
};
43-
fast@0 {
43+
dut_fast: fast@0 {
4444
compatible = "test-spi-loopback-fast";
4545
reg = <0>;
4646
spi-max-frequency = <DT_FREQ_M(8)>;

tests/drivers/spi/spi_loopback/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
};
2424
};
2525

26+
/delete-node/ &mx25r64;
27+
2628
&spi00 {
2729
status = "okay";
2830
pinctrl-0 = <&spi00_default>;
@@ -35,7 +37,7 @@
3537
reg = <0>;
3638
spi-max-frequency = <DT_FREQ_M(2)>;
3739
};
38-
fast@0 {
40+
dut_fast: fast@0 {
3941
compatible = "test-spi-loopback-fast";
4042
reg = <0>;
4143
spi-max-frequency = <DT_FREQ_M(4)>;

tests/drivers/spi/spi_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
reg = <0>;
3636
spi-max-frequency = <DT_FREQ_M(2)>;
3737
};
38-
fast@0 {
38+
dut_fast: fast@0 {
3939
compatible = "test-spi-loopback-fast";
4040
reg = <0>;
4141
spi-max-frequency = <DT_FREQ_M(4)>;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
&dut_fast {
9+
spi-max-frequency = <DT_FREQ_M(16)>;
10+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
&dut_fast {
9+
spi-max-frequency = <DT_FREQ_M(32)>;
10+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
&dut_fast {
9+
spi-max-frequency = <DT_FREQ_M(64)>;
10+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
8+
&dut_fast {
9+
spi-max-frequency = <DT_FREQ_M(8)>;
10+
};

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,48 @@ tests:
202202
filter: CONFIG_DT_HAS_NXP_FLEXIO_ENABLED and
203203
CONFIG_DT_HAS_NXP_FLEXIO_SPI_ENABLED
204204
platform_allow: mimxrt1064_evk
205-
drivers.spi.nrf_fast:
205+
drivers.spi.nrf54h_fast_8mhz:
206206
extra_args: DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
207207
platform_allow:
208208
- nrf54h20dk/nrf54h20/cpuapp
209+
drivers.spi.nrf54h_fast_16mhz:
210+
extra_args:
211+
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
212+
- EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_16mhz.overlay"
213+
platform_allow:
214+
- nrf54h20dk/nrf54h20/cpuapp
215+
drivers.spi.nrf54h_fast_32mhz:
216+
extra_args:
217+
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
218+
- EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
219+
platform_allow:
220+
- nrf54h20dk/nrf54h20/cpuapp
221+
drivers.spi.nrf54h_fast_64mhz:
222+
extra_args:
223+
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
224+
- EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_64mhz.overlay"
225+
platform_allow:
226+
- nrf54h20dk/nrf54h20/cpuapp
227+
drivers.spi.nrf54l_8mhz:
228+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_8mhz.overlay"
229+
platform_allow:
230+
- nrf54l15dk/nrf54l15/cpuapp
231+
- nrf54l20pdk/nrf54l20/cpuapp
232+
drivers.spi.nrf54l_16mhz:
233+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_16mhz.overlay"
234+
platform_allow:
235+
- nrf54l15dk/nrf54l15/cpuapp
236+
- nrf54l20pdk/nrf54l20/cpuapp
237+
drivers.spi.nrf54l_32mhz:
238+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
239+
platform_allow:
240+
- nrf54l15dk/nrf54l15/cpuapp
241+
- nrf54l20pdk/nrf54l20/cpuapp
242+
drivers.spi.nrf54l_64mhz:
243+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_64mhz.overlay"
244+
platform_allow:
245+
- nrf54l15dk/nrf54l15/cpuapp
246+
- nrf54l20pdk/nrf54l20/cpuapp
209247
drivers.spi.ke1xz_flexio_spi.loopback:
210248
extra_args: DTC_OVERLAY_FILE="boards/frdm_ke1xz_flexio_spi.overlay"
211249
filter: CONFIG_DT_HAS_NXP_FLEXIO_ENABLED and

0 commit comments

Comments
 (0)