Skip to content

Commit 6a24927

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: drivers: ppi_seq_with_spi: Enable test on more platforms
Add overlays required to run the ppi_seq_with_spi test on more platforms. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent 99686e5 commit 6a24927

8 files changed

Lines changed: 406 additions & 1 deletion
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Test requires loopbacks:
8+
* SCK: P1.09 - P1.08
9+
* MISO: P1.10 - P1.11
10+
* MOSI: P1.02 - P1.03
11+
* CS: P1.00 - P1.01
12+
*/
13+
14+
&pinctrl {
15+
spi21_default_alt: spi21_default_alt {
16+
group1 {
17+
psels = <NRF_PSEL(SPIM_SCK, 1, 9)>,
18+
<NRF_PSEL(SPIM_MISO, 1, 10)>,
19+
<NRF_PSEL(SPIM_MOSI, 1, 2)>;
20+
};
21+
};
22+
23+
spi21_sleep_alt: spi21_sleep_alt {
24+
group1 {
25+
psels = <NRF_PSEL(SPIM_SCK, 1, 9)>,
26+
<NRF_PSEL(SPIM_MISO, 1, 10)>,
27+
<NRF_PSEL(SPIM_MOSI, 1, 2)>;
28+
low-power-enable;
29+
};
30+
};
31+
32+
spi20_default_alt: spi20_default_alt {
33+
group1 {
34+
psels = <NRF_PSEL(SPIS_SCK, 1, 8)>,
35+
<NRF_PSEL(SPIS_MISO, 1, 11)>,
36+
<NRF_PSEL(SPIS_MOSI, 1, 3)>,
37+
<NRF_PSEL(SPIS_CSN, 1, 1)>;
38+
};
39+
};
40+
41+
spi20_sleep_alt: spi20_sleep_alt {
42+
group1 {
43+
psels = <NRF_PSEL(SPIS_SCK, 1, 8)>,
44+
<NRF_PSEL(SPIS_MISO, 1, 11)>,
45+
<NRF_PSEL(SPIS_MOSI, 1, 3)>,
46+
<NRF_PSEL(SPIS_CSN, 1, 1)>;
47+
low-power-enable;
48+
};
49+
};
50+
};
51+
52+
dut_cnt_timer: &timer21 {
53+
status = "reserved";
54+
};
55+
56+
dut_trig_timer: &timer22 {
57+
status = "reserved";
58+
};
59+
60+
test_timer: &timer23 {
61+
status = "reserved";
62+
};
63+
64+
dut_spi: &spi21 {
65+
status = "okay";
66+
pinctrl-0 = <&spi21_default_alt>;
67+
pinctrl-1 = <&spi21_sleep_alt>;
68+
pinctrl-names = "default", "sleep";
69+
overrun-character = <0x00>;
70+
cs-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
71+
zephyr,pm-device-runtime-auto;
72+
73+
dut_spi_dt: test-spi-dev@0 {
74+
compatible = "vnd,spi-device";
75+
reg = <0>;
76+
spi-max-frequency = <DT_FREQ_M(16)>;
77+
};
78+
};
79+
80+
dut_spis: &spi20 {
81+
compatible = "nordic,nrf-spis";
82+
status = "okay";
83+
def-char = <0x00>;
84+
pinctrl-0 = <&spi20_default_alt>;
85+
pinctrl-1 = <&spi20_sleep_alt>;
86+
pinctrl-names = "default", "sleep";
87+
/delete-property/ rx-delay-supported;
88+
/delete-property/ rx-delay;
89+
zephyr,pm-device-runtime-auto;
90+
};

tests/drivers/ppi_seq/ppi_seq_with_spi/boards/nrf54lm20dk_nrf54lm20a_cpuapp.overlay

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
6+
67
/* Test requires loopbacks:
78
* - between P1.3 and P1.4.
89
* - between P1.13 and P1.14.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54lm20dk_nrf54lm20a_cpuapp.overlay"
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Test requires loopbacks:
8+
* - between P1.04 and P1.20.
9+
* - between P1.05 and P1.21.
10+
* - between P1.06 and P1.22,
11+
* - between P1.08 and P1.09,
12+
*/
13+
14+
&pinctrl {
15+
spi22_default_alt: spi22_default_alt {
16+
group1 {
17+
psels = <NRF_PSEL(SPIM_SCK, 1, 4)>,
18+
<NRF_PSEL(SPIM_MISO, 1, 5)>,
19+
<NRF_PSEL(SPIM_MOSI, 1, 6)>;
20+
};
21+
};
22+
23+
spi22_sleep_alt: spi22_sleep_alt {
24+
group1 {
25+
psels = <NRF_PSEL(SPIM_SCK, 1, 4)>,
26+
<NRF_PSEL(SPIM_MISO, 1, 5)>,
27+
<NRF_PSEL(SPIM_MOSI, 1, 6)>;
28+
low-power-enable;
29+
};
30+
};
31+
32+
spi21_default_alt: spi21_default_alt {
33+
group1 {
34+
psels = <NRF_PSEL(SPIS_SCK, 1, 20)>,
35+
<NRF_PSEL(SPIS_MISO, 1, 21)>,
36+
<NRF_PSEL(SPIS_MOSI, 1, 22)>,
37+
<NRF_PSEL(SPIS_CSN, 1, 9)>;
38+
};
39+
};
40+
41+
spi21_sleep_alt: spi21_sleep_alt {
42+
group1 {
43+
psels = <NRF_PSEL(SPIS_SCK, 1, 20)>,
44+
<NRF_PSEL(SPIS_MISO, 1, 21)>,
45+
<NRF_PSEL(SPIS_MOSI, 1, 22)>,
46+
<NRF_PSEL(SPIS_CSN, 1, 9)>;
47+
low-power-enable;
48+
};
49+
};
50+
};
51+
52+
dut_cnt_timer: &timer10 {
53+
status = "reserved";
54+
};
55+
56+
dut_trig_timer: &timer20 {
57+
status = "reserved";
58+
};
59+
60+
test_timer: &timer00 {
61+
status = "reserved";
62+
};
63+
64+
dut_spi: &spi22 {
65+
status = "okay";
66+
pinctrl-0 = <&spi22_default_alt>;
67+
pinctrl-1 = <&spi22_sleep_alt>;
68+
pinctrl-names = "default", "sleep";
69+
overrun-character = <0x00>;
70+
cs-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
71+
zephyr,pm-device-runtime-auto;
72+
73+
dut_spi_dt: test-spi-dev@0 {
74+
compatible = "vnd,spi-device";
75+
reg = <0>;
76+
spi-max-frequency = <DT_FREQ_M(16)>;
77+
};
78+
};
79+
80+
dut_spis: &spi21 {
81+
compatible = "nordic,nrf-spis";
82+
status = "okay";
83+
def-char = <0x00>;
84+
pinctrl-0 = <&spi21_default_alt>;
85+
pinctrl-1 = <&spi21_sleep_alt>;
86+
pinctrl-names = "default", "sleep";
87+
/delete-property/ rx-delay-supported;
88+
/delete-property/ rx-delay;
89+
zephyr,pm-device-runtime-auto;
90+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54ls05dk_nrf54ls05a_cpuapp.overlay"
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Test requires loopbacks:
8+
* SCK: P1.09 - P1.08
9+
* MISO: P1.10 - P1.11
10+
* MOSI: P1.02 - P1.03
11+
* CS: P1.00 - P1.01
12+
*/
13+
14+
&pinctrl {
15+
spi21_default_alt: spi21_default_alt {
16+
group1 {
17+
psels = <NRF_PSEL(SPIM_SCK, 1, 9)>,
18+
<NRF_PSEL(SPIM_MISO, 1, 10)>,
19+
<NRF_PSEL(SPIM_MOSI, 1, 2)>;
20+
};
21+
};
22+
23+
spi21_sleep_alt: spi21_sleep_alt {
24+
group1 {
25+
psels = <NRF_PSEL(SPIM_SCK, 1, 9)>,
26+
<NRF_PSEL(SPIM_MISO, 1, 10)>,
27+
<NRF_PSEL(SPIM_MOSI, 1, 2)>;
28+
low-power-enable;
29+
};
30+
};
31+
32+
spi20_default_alt: spi20_default_alt {
33+
group1 {
34+
psels = <NRF_PSEL(SPIS_SCK, 1, 8)>,
35+
<NRF_PSEL(SPIS_MISO, 1, 11)>,
36+
<NRF_PSEL(SPIS_MOSI, 1, 3)>,
37+
<NRF_PSEL(SPIS_CSN, 1, 1)>;
38+
};
39+
};
40+
41+
spi20_sleep_alt: spi20_sleep_alt {
42+
group1 {
43+
psels = <NRF_PSEL(SPIS_SCK, 1, 8)>,
44+
<NRF_PSEL(SPIS_MISO, 1, 11)>,
45+
<NRF_PSEL(SPIS_MOSI, 1, 3)>,
46+
<NRF_PSEL(SPIS_CSN, 1, 1)>;
47+
low-power-enable;
48+
};
49+
};
50+
};
51+
52+
dut_cnt_timer: &timer21 {
53+
status = "reserved";
54+
};
55+
56+
dut_trig_timer: &timer22 {
57+
status = "reserved";
58+
};
59+
60+
test_timer: &timer23 {
61+
status = "reserved";
62+
};
63+
64+
dut_spi: &spi21 {
65+
status = "okay";
66+
pinctrl-0 = <&spi21_default_alt>;
67+
pinctrl-1 = <&spi21_sleep_alt>;
68+
pinctrl-names = "default", "sleep";
69+
overrun-character = <0x00>;
70+
cs-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
71+
zephyr,pm-device-runtime-auto;
72+
73+
dut_spi_dt: test-spi-dev@0 {
74+
compatible = "vnd,spi-device";
75+
reg = <0>;
76+
spi-max-frequency = <DT_FREQ_M(16)>;
77+
};
78+
};
79+
80+
dut_spis: &spi20 {
81+
compatible = "nordic,nrf-spis";
82+
status = "okay";
83+
def-char = <0x00>;
84+
pinctrl-0 = <&spi20_default_alt>;
85+
pinctrl-1 = <&spi20_sleep_alt>;
86+
pinctrl-names = "default", "sleep";
87+
/delete-property/ rx-delay-supported;
88+
/delete-property/ rx-delay;
89+
zephyr,pm-device-runtime-auto;
90+
};

0 commit comments

Comments
 (0)