Skip to content

Commit 7fe2732

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

7 files changed

+71
-6
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
&pinctrl {
88
spi120_default: spi120_default {
99
group1 {
10+
psels = <NRF_PSEL(SPIM_MISO, 7, 6)>;
11+
};
12+
group2 {
1013
psels = <NRF_PSEL(SPIM_SCK, 7, 3)>,
11-
<NRF_PSEL(SPIM_MISO, 7, 6)>,
1214
<NRF_PSEL(SPIM_MOSI, 7, 7)>;
15+
nordic,drive-mode = <NRF_DRIVE_E0E1>;
1316
};
1417
};
1518

@@ -40,7 +43,7 @@
4043
reg = <0>;
4144
spi-max-frequency = <DT_FREQ_M(4)>;
4245
};
43-
fast@0 {
46+
dut_fast: fast@0 {
4447
compatible = "test-spi-loopback-fast";
4548
reg = <0>;
4649
spi-max-frequency = <DT_FREQ_M(8)>;

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
&pinctrl {
88
spi00_default: spi00_default {
99
group1 {
10+
psels = <NRF_PSEL(SPIM_MISO, 2, 9)>;
11+
};
12+
group2 {
1013
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
11-
<NRF_PSEL(SPIM_MISO, 2, 9)>,
1214
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
15+
nordic,drive-mode = <NRF_DRIVE_E0E1>;
1316
};
1417
};
1518

@@ -23,6 +26,8 @@
2326
};
2427
};
2528

29+
/delete-node/ &mx25r64;
30+
2631
&spi00 {
2732
status = "okay";
2833
pinctrl-0 = <&spi00_default>;
@@ -35,7 +40,7 @@
3540
reg = <0>;
3641
spi-max-frequency = <DT_FREQ_M(2)>;
3742
};
38-
fast@0 {
43+
dut_fast: fast@0 {
3944
compatible = "test-spi-loopback-fast";
4045
reg = <0>;
4146
spi-max-frequency = <DT_FREQ_M(4)>;

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

+1-1
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)>;
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+
};
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+
};
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

+28-1
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,37 @@ 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.nrf54l_8mhz:
222+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_8mhz.overlay"
223+
platform_allow:
224+
- nrf54l15dk/nrf54l15/cpuapp
225+
- nrf54l20pdk/nrf54l20/cpuapp
226+
drivers.spi.nrf54l_16mhz:
227+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_16mhz.overlay"
228+
platform_allow:
229+
- nrf54l15dk/nrf54l15/cpuapp
230+
- nrf54l20pdk/nrf54l20/cpuapp
231+
drivers.spi.nrf54l_32mhz:
232+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
233+
platform_allow:
234+
- nrf54l15dk/nrf54l15/cpuapp
235+
- nrf54l20pdk/nrf54l20/cpuapp
209236
drivers.spi.ke1xz_flexio_spi.loopback:
210237
extra_args: DTC_OVERLAY_FILE="boards/frdm_ke1xz_flexio_spi.overlay"
211238
filter: CONFIG_DT_HAS_NXP_FLEXIO_ENABLED and

0 commit comments

Comments
 (0)