Skip to content

Commit 086dab9

Browse files
nordic-seglnordicjm
authored andcommitted
[nrf fromtree] tests: drivers: spi: spi_loopback: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after nrf54l20pdk/nrf54l20/cpuxxx was renamed to nrf54lm20dk/nrf54lm20a/cpuxxx. Run test with 16MHz/32MHz bitrate using spi00 instance (spi2x instances support up to 16MHz/2). Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 31e8326)
1 parent 72e6aca commit 086dab9

File tree

4 files changed

+29
-15
lines changed

4 files changed

+29
-15
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SPI_IDEAL_TRANSFER_DURATION_SCALING=12

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
pinctrl-names = "default", "sleep";
3535
overrun-character = <0x00>;
3636
zephyr,pm-device-runtime-auto;
37+
3738
slow@0 {
3839
compatible = "test-spi-loopback-slow";
3940
reg = <0>;
4041
spi-max-frequency = <DT_FREQ_M(2)>;
4142
};
43+
4244
dut_fast: fast@0 {
4345
compatible = "test-spi-loopback-fast";
4446
reg = <0>;

tests/drivers/spi/spi_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay renamed to tests/drivers/spi/spi_loopback/boards/nrf54lm20dk_nrf54lm20a_cpuapp_spi00.overlay

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/* Test requires following loopback:
8+
* P2.02 - P2.04
9+
*/
10+
711
&pinctrl {
812
spi00_default: spi00_default {
913
group1 {
10-
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
11-
<NRF_PSEL(SPIM_MISO, 2, 9)>,
12-
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
14+
psels = <NRF_PSEL(SPIM_MISO, 2, 4)>;
15+
};
16+
17+
group2 {
18+
psels = <NRF_PSEL(SPIM_SCK, 2, 1)>,
19+
<NRF_PSEL(SPIM_MOSI, 2, 2)>;
20+
nordic,drive-mode = <NRF_DRIVE_E0E1>;
1321
};
1422
};
1523

1624
spi00_sleep: spi00_sleep {
1725
group1 {
18-
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
19-
<NRF_PSEL(SPIM_MISO, 2, 9)>,
20-
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
26+
psels = <NRF_PSEL(SPIM_SCK, 2, 1)>,
27+
<NRF_PSEL(SPIM_MISO, 2, 4)>,
28+
<NRF_PSEL(SPIM_MOSI, 2, 2)>;
2129
low-power-enable;
2230
};
2331
};
@@ -30,15 +38,17 @@
3038
pinctrl-names = "default", "sleep";
3139
overrun-character = <0x00>;
3240
zephyr,pm-device-runtime-auto;
41+
3342
slow@0 {
3443
compatible = "test-spi-loopback-slow";
3544
reg = <0>;
36-
spi-max-frequency = <DT_FREQ_M(2)>;
45+
spi-max-frequency = <DT_FREQ_M(16)>;
3746
};
47+
3848
dut_fast: fast@0 {
3949
compatible = "test-spi-loopback-fast";
4050
reg = <0>;
41-
spi-max-frequency = <DT_FREQ_M(4)>;
51+
spi-max-frequency = <DT_FREQ_M(32)>;
4252
};
4353
};
4454

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ tests:
238238
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_1mhz.overlay"
239239
platform_allow:
240240
- nrf54l15dk/nrf54l15/cpuapp
241-
- nrf54l20pdk/nrf54l20/cpuapp
242-
- nrf54lm20dk/nrf54lm20a/cpuapp
243241
harness: console
244242
harness_config:
245243
fixture: spi_loopback
@@ -250,23 +248,26 @@ tests:
250248
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_8mhz.overlay"
251249
platform_allow:
252250
- nrf54l15dk/nrf54l15/cpuapp
253-
- nrf54l20pdk/nrf54l20/cpuapp
254251
- nrf54lm20dk/nrf54lm20a/cpuapp
255252
- ophelia4ev/nrf54l15/cpuapp
256253
drivers.spi.nrf54l_16mhz:
257254
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_16mhz.overlay"
258255
platform_allow:
259256
- nrf54l15dk/nrf54l15/cpuapp
260-
- nrf54l20pdk/nrf54l20/cpuapp
261-
- nrf54lm20dk/nrf54lm20a/cpuapp
262257
- ophelia4ev/nrf54l15/cpuapp
263258
drivers.spi.nrf54l_32mhz:
264259
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
265260
platform_allow:
266261
- nrf54l15dk/nrf54l15/cpuapp
267-
- nrf54l20pdk/nrf54l20/cpuapp
268-
- nrf54lm20dk/nrf54lm20a/cpuapp
269262
- ophelia4ev/nrf54l15/cpuapp
263+
drivers.spi.nrf54lm20_16mhz_32mhz:
264+
harness: ztest
265+
harness_config:
266+
fixture: spi_fast_loopback
267+
extra_args:
268+
- DTC_OVERLAY_FILE="boards/nrf54lm20dk_nrf54lm20a_cpuapp_spi00.overlay"
269+
platform_allow:
270+
- nrf54lm20dk/nrf54lm20a/cpuapp
270271
drivers.spi.ke1xz_flexio_spi.loopback:
271272
extra_args: DTC_OVERLAY_FILE="boards/frdm_ke1xz_flexio_spi.overlay"
272273
filter: CONFIG_DT_HAS_NXP_FLEXIO_ENABLED and

0 commit comments

Comments
 (0)