Skip to content

Commit a5837c8

Browse files
committed
tests: drivers: spi: Run spi_controller_peripheral on nrf54l15 NS
Enable spi_controller_peripheral test on nrf54l15dk/nrf54l15/cpuapp/ns platform. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent ed58105 commit a5837c8

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
spi22_default_alt: spi22_default_alt {
9+
group1 {
10+
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
11+
<NRF_PSEL(SPIM_MISO, 1, 11)>,
12+
<NRF_PSEL(SPIM_MOSI, 1, 9)>;
13+
};
14+
};
15+
16+
spi22_sleep_alt: spi22_sleep_alt {
17+
group1 {
18+
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
19+
<NRF_PSEL(SPIM_MISO, 1, 11)>,
20+
<NRF_PSEL(SPIM_MOSI, 1, 9)>;
21+
low-power-enable;
22+
};
23+
};
24+
25+
spi21_default_alt: spi21_default_alt {
26+
group1 {
27+
psels = <NRF_PSEL(SPIS_SCK, 1, 12)>,
28+
<NRF_PSEL(SPIS_MISO, 1, 10)>,
29+
<NRF_PSEL(SPIS_MOSI, 1, 8)>,
30+
<NRF_PSEL(SPIS_CSN, 1, 14)>;
31+
};
32+
};
33+
34+
spi21_sleep_alt: spi21_sleep_alt {
35+
group1 {
36+
psels = <NRF_PSEL(SPIS_SCK, 1, 12)>,
37+
<NRF_PSEL(SPIS_MISO, 1, 10)>,
38+
<NRF_PSEL(SPIS_MOSI, 1, 8)>,
39+
<NRF_PSEL(SPIS_CSN, 1, 14)>;
40+
low-power-enable;
41+
};
42+
};
43+
};
44+
45+
&gpio2 {
46+
status = "okay";
47+
};
48+
49+
&spi22 {
50+
status = "okay";
51+
pinctrl-0 = <&spi22_default_alt>;
52+
pinctrl-1 = <&spi22_sleep_alt>;
53+
pinctrl-names = "default", "sleep";
54+
overrun-character = <0x00>;
55+
cs-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
56+
zephyr,pm-device-runtime-auto;
57+
dut_spi_dt: test-spi-dev@0 {
58+
compatible = "vnd,spi-device";
59+
reg = <0>;
60+
spi-max-frequency = <DT_FREQ_M(16)>;
61+
};
62+
};
63+
64+
dut_spis: &spi21 {
65+
compatible = "nordic,nrf-spis";
66+
status = "okay";
67+
def-char = <0x00>;
68+
pinctrl-0 = <&spi21_default_alt>;
69+
pinctrl-1 = <&spi21_sleep_alt>;
70+
pinctrl-names = "default", "sleep";
71+
/delete-property/ rx-delay-supported;
72+
/delete-property/ rx-delay;
73+
zephyr,pm-device-runtime-auto;
74+
};

tests/drivers/spi/spi_controller_peripheral/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ common:
1212
- nrf54h20dk/nrf54h20/cpurad
1313
- nrf54h20dk/nrf54h20/cpuppr
1414
- nrf54l15dk/nrf54l15/cpuapp
15+
- nrf54l15dk/nrf54l15/cpuapp/ns
1516
- nrf54lm20dk/nrf54lm20a/cpuapp
1617
- ophelia4ev/nrf54l15/cpuapp
1718

@@ -81,6 +82,7 @@ tests:
8182
- nrf54h20dk/nrf54h20/cpurad
8283
- nrf54h20dk/nrf54h20/cpuppr
8384
- nrf54l15dk/nrf54l15/cpuapp
85+
- nrf54l15dk/nrf54l15/cpuapp/ns
8486
- nrf54lm20dk/nrf54lm20a/cpuapp
8587
- ophelia4ev/nrf54l15/cpuapp
8688

@@ -94,6 +96,7 @@ tests:
9496
- nrf54h20dk/nrf54h20/cpurad
9597
- nrf54h20dk/nrf54h20/cpuppr
9698
- nrf54l15dk/nrf54l15/cpuapp
99+
- nrf54l15dk/nrf54l15/cpuapp/ns
97100
- nrf54lm20dk/nrf54lm20a/cpuapp
98101
- ophelia4ev/nrf54l15/cpuapp
99102

0 commit comments

Comments
 (0)