Skip to content

Commit 2ea7208

Browse files
committed
[nrf fromtree] tests: nrf: enable twister tests for nrf54l20pdk
Enabled the following tests on nrf54l20 - i2c_slave - clock_control_api - nrf_clock_calibration - nrf_lf_clock_start - onoff - retained_mem/api - uart_elementary - uart_errors - uart_mix_fifo_poll - uart_pm - uart_async_api - wdt_error_cases - wdt_basic_api - counter_basic_api - fcb - nrf/qdec Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit 07ee796) Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 7c3bd68 commit 2ea7208

28 files changed

+431
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRFX_TWIS22=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/ {
2+
aliases {
3+
i2c-slave = &i2c22;
4+
};
5+
};
6+
7+
&pinctrl {
8+
i2c21_default_alt: i2c21_default_alt {
9+
group1 {
10+
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
11+
<NRF_PSEL(TWIM_SCL, 1, 14)>;
12+
};
13+
};
14+
15+
i2c21_sleep_alt: i2c21_sleep_alt {
16+
group1 {
17+
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
18+
<NRF_PSEL(TWIM_SCL, 1, 14)>;
19+
low-power-enable;
20+
};
21+
};
22+
23+
i2c22_default_alt: i2c22_default_alt {
24+
group1 {
25+
/* Temporary workaround as it is currently not possible
26+
* to configure pins for TWIS with pinctrl.
27+
*/
28+
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
29+
<NRF_PSEL(TWIM_SCL, 1, 15)>;
30+
bias-pull-up;
31+
};
32+
};
33+
34+
i2c22_sleep_alt: i2c22_sleep_alt {
35+
group1 {
36+
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
37+
<NRF_PSEL(TWIM_SCL, 1, 15)>;
38+
low-power-enable;
39+
};
40+
};
41+
};
42+
43+
&i2c21 {
44+
compatible = "nordic,nrf-twim";
45+
status = "okay";
46+
pinctrl-0 = <&i2c21_default_alt>;
47+
pinctrl-1 = <&i2c21_sleep_alt>;
48+
pinctrl-names = "default", "sleep";
49+
sensor: sensor@54 {
50+
reg = <0x54>;
51+
};
52+
};
53+
54+
&i2c22 {
55+
compatible = "nordic,nrf-twis";
56+
status = "okay";
57+
pinctrl-0 = <&i2c22_default_alt>;
58+
pinctrl-1 = <&i2c22_sleep_alt>;
59+
pinctrl-names = "default", "sleep";
60+
};

tests/boards/nrf/i2c/i2c_slave/testcase.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tests:
99
- nrf52840dk/nrf52840
1010
- nrf5340dk/nrf5340/cpuapp
1111
- nrf54l15dk/nrf54l15/cpuapp
12+
- nrf54l20pdk/nrf54l20/cpuapp
1213
- nrf54h20dk/nrf54h20/cpuapp
1314
- nrf54h20dk/nrf54h20/cpuppr
1415
integration_platforms:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
qdec0 = &qdec20;
9+
qenca = &phase_a;
10+
qencb = &phase_b;
11+
};
12+
13+
encoder-emulate {
14+
compatible = "gpio-leds";
15+
phase_a: phase_a {
16+
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
17+
};
18+
phase_b: phase_b {
19+
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
};
23+
24+
&pinctrl {
25+
qdec_pinctrl: qdec_pinctrl {
26+
group1 {
27+
psels = <NRF_PSEL(QDEC_A, 1, 8)>,
28+
<NRF_PSEL(QDEC_B, 1, 10)>;
29+
};
30+
};
31+
32+
qdec_sleep_pinctrl: qdec_sleep_pinctrl {
33+
group1 {
34+
psels = <NRF_PSEL(QDEC_A, 1, 8)>,
35+
<NRF_PSEL(QDEC_B, 1, 10)>;
36+
low-power-enable;
37+
};
38+
};
39+
};
40+
41+
&gpio1 {
42+
status = "okay";
43+
};
44+
45+
&qdec20 {
46+
status = "okay";
47+
pinctrl-0 = <&qdec_pinctrl>;
48+
pinctrl-1 = <&qdec_sleep_pinctrl>;
49+
pinctrl-names = "default", "sleep";
50+
steps = <127>;
51+
led-pre = <500>;
52+
zephyr,pm-device-runtime-auto;
53+
};

tests/drivers/clock_control/clock_control_api/testcase.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tests:
1717
- nrf52840dk/nrf52840
1818
- nrf9160dk/nrf9160
1919
- nrf54l15dk/nrf54l15/cpuapp
20+
- nrf54l20pdk/nrf54l20/cpuapp
2021
integration_platforms:
2122
- nrf51dk/nrf51822
2223
drivers.clock.clock_control_nrf5_lfclk_rc:
@@ -25,6 +26,7 @@ tests:
2526
- nrf52dk/nrf52832
2627
- nrf52840dk/nrf52840
2728
- nrf54l15dk/nrf54l15/cpuapp
29+
- nrf54l20pdk/nrf54l20/cpuapp
2830
integration_platforms:
2931
- nrf51dk/nrf51822
3032
extra_args: CONF_FILE="nrf_lfclk_rc.conf"

tests/drivers/clock_control/nrf_clock_calibration/testcase.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ tests:
88
- nrf52dk/nrf52832
99
- nrf52840dk/nrf52840
1010
- nrf54l15dk/nrf54l15/cpuapp
11+
- nrf54l20pdk/nrf54l20/cpuapp
1112
integration_platforms:
1213
- nrf51dk/nrf51822

tests/drivers/clock_control/nrf_lf_clock_start/testcase.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tests:
1414
- nrf5340dk/nrf5340/cpuapp
1515
- nrf5340dk/nrf5340/cpunet
1616
- nrf54l15dk/nrf54l15/cpuapp
17+
- nrf54l20pdk/nrf54l20/cpuapp
1718
extra_configs:
1819
- CONFIG_SYSTEM_CLOCK_WAIT_FOR_STABILITY=y
1920
- CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
@@ -29,6 +30,7 @@ tests:
2930
- nrf5340dk/nrf5340/cpuapp
3031
- nrf5340dk/nrf5340/cpunet
3132
- nrf54l15dk/nrf54l15/cpuapp
33+
- nrf54l20pdk/nrf54l20/cpuapp
3234
extra_configs:
3335
- CONFIG_SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY=y
3436
- CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
@@ -58,6 +60,7 @@ tests:
5860
- nrf5340dk/nrf5340/cpuapp
5961
- nrf5340dk/nrf5340/cpunet
6062
- nrf54l15dk/nrf54l15/cpuapp
63+
- nrf54l20pdk/nrf54l20/cpuapp
6164
integration_platforms:
6265
- nrf51dk/nrf51822
6366
extra_configs:
@@ -72,6 +75,7 @@ tests:
7275
- nrf5340dk/nrf5340/cpuapp
7376
- nrf5340dk/nrf5340/cpunet
7477
- nrf54l15dk/nrf54l15/cpuapp
78+
- nrf54l20pdk/nrf54l20/cpuapp
7579
integration_platforms:
7680
- nrf51dk/nrf51822
7781
extra_configs:
@@ -86,6 +90,7 @@ tests:
8690
- nrf5340dk/nrf5340/cpuapp
8791
- nrf5340dk/nrf5340/cpunet
8892
- nrf54l15dk/nrf54l15/cpuapp
93+
- nrf54l20pdk/nrf54l20/cpuapp
8994
integration_platforms:
9095
- nrf51dk/nrf51822
9196
extra_configs:
@@ -100,6 +105,7 @@ tests:
100105
- nrf5340dk/nrf5340/cpuapp
101106
- nrf5340dk/nrf5340/cpunet
102107
- nrf54l15dk/nrf54l15/cpuapp
108+
- nrf54l20pdk/nrf54l20/cpuapp
103109
integration_platforms:
104110
- nrf51dk/nrf51822
105111
extra_configs:
@@ -114,6 +120,7 @@ tests:
114120
- nrf5340dk/nrf5340/cpuapp
115121
- nrf5340dk/nrf5340/cpunet
116122
- nrf54l15dk/nrf54l15/cpuapp
123+
- nrf54l20pdk/nrf54l20/cpuapp
117124
integration_platforms:
118125
- nrf51dk/nrf51822
119126
extra_configs:
@@ -128,6 +135,7 @@ tests:
128135
- nrf5340dk/nrf5340/cpuapp
129136
- nrf5340dk/nrf5340/cpunet
130137
- nrf54l15dk/nrf54l15/cpuapp
138+
- nrf54l20pdk/nrf54l20/cpuapp
131139
integration_platforms:
132140
- nrf51dk/nrf51822
133141
extra_configs:

tests/drivers/clock_control/onoff/testcase.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tests:
88
- nrf52dk/nrf52832
99
- nrf52840dk/nrf52840
1010
- nrf54l15dk/nrf54l15/cpuapp
11+
- nrf54l20pdk/nrf54l20/cpuapp
1112
- nrf9160dk/nrf9160
1213
integration_platforms:
1314
- nrf51dk/nrf51822
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
&timer00 {
2+
prescaler = <6>;
3+
status = "okay";
4+
};
5+
6+
&timer10 {
7+
prescaler = <4>;
8+
status = "okay";
9+
};
10+
11+
&timer20 {
12+
prescaler = <4>;
13+
status = "okay";
14+
};
15+
16+
&timer21 {
17+
prescaler = <4>;
18+
status = "okay";
19+
};
20+
21+
&timer22 {
22+
prescaler = <4>;
23+
status = "okay";
24+
};
25+
26+
&timer23 {
27+
prescaler = <4>;
28+
status = "okay";
29+
};
30+
31+
&timer24 {
32+
prescaler = <4>;
33+
status = "okay";
34+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
&pinctrl {
2+
pwm_default: pwm_default {
3+
group1 {
4+
psels = <NRF_PSEL(PWM_OUT0, 1, 0)>;
5+
};
6+
};
7+
pwm_sleep: pwm_sleep {
8+
group1 {
9+
psels = <NRF_PSEL(PWM_OUT0, 1, 0)>;
10+
low-power-enable;
11+
};
12+
};
13+
};
14+
15+
&pwm20 {
16+
status = "okay";
17+
pinctrl-0 = <&pwm_default>;
18+
pinctrl-1 = <&pwm_sleep>;
19+
pinctrl-names = "default", "sleep";
20+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_POWEROFF=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/ {
2+
cpuapp_sram@2002e000 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x2002e000 DT_SIZE_K(4)>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem0: retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
};
12+
};
13+
14+
aliases {
15+
retainedmemtestdevice = &retainedmem0;
16+
};
17+
};
18+
19+
&cpuapp_sram {
20+
reg = <0x20000000 DT_SIZE_K(184)>;
21+
ranges = <0x0 0x20000000 0x2e000>;
22+
};

tests/drivers/retained_mem/api/testcase.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ tests:
1212
- nrf54l15dk/nrf54l05/cpuapp
1313
- nrf54l15dk/nrf54l10/cpuapp
1414
- nrf54l15dk/nrf54l15/cpuapp
15+
- nrf54l20pdk/nrf54l20/cpuapp
1516
tags:
1617
- drivers
1718
- retained_mem
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart21_default_alt: uart21_default_alt {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
7+
<NRF_PSEL(UART_RX, 1, 11)>;
8+
};
9+
};
10+
11+
uart21_sleep_alt: uart21_sleep_alt {
12+
group1 {
13+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
14+
<NRF_PSEL(UART_RX, 1, 11)>;
15+
low-power-enable;
16+
};
17+
};
18+
};
19+
20+
dut: &uart21 {
21+
status = "okay";
22+
pinctrl-0 = <&uart21_default_alt>;
23+
pinctrl-1 = <&uart21_sleep_alt>;
24+
pinctrl-names = "default", "sleep";
25+
current-speed = <115200>;
26+
};

tests/drivers/uart/uart_async_api/testcase.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ tests:
3030
- nrf52840dk/nrf52840
3131
- nrf52_bsim
3232
- nrf5340bsim/nrf5340/cpuapp
33+
- nrf54l20pdk/nrf54l20/cpuapp
3334
- nrf54l15bsim/nrf54l15/cpuapp
3435
filter: CONFIG_SERIAL_SUPPORT_ASYNC
3536
harness: ztest
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart21_default: uart21_default {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
7+
<NRF_PSEL(UART_RX, 1, 11)>,
8+
<NRF_PSEL(UART_RTS, 1, 8)>,
9+
<NRF_PSEL(UART_CTS, 1, 9)>;
10+
};
11+
};
12+
13+
uart21_sleep: uart21_sleep {
14+
group1 {
15+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
16+
<NRF_PSEL(UART_RX, 1, 11)>,
17+
<NRF_PSEL(UART_RTS, 1, 8)>,
18+
<NRF_PSEL(UART_CTS, 1, 9)>;
19+
low-power-enable;
20+
};
21+
};
22+
};
23+
24+
dut: &uart21 {
25+
status = "okay";
26+
current-speed = <115200>;
27+
pinctrl-0 = <&uart21_default>;
28+
pinctrl-1 = <&uart21_sleep>;
29+
pinctrl-names = "default", "sleep";
30+
hw-flow-control;
31+
};

tests/drivers/uart/uart_elementary/testcase.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tests:
1010
platform_allow:
1111
- nrf54h20dk/nrf54h20/cpuapp
1212
- nrf54l15dk/nrf54l15/cpuapp
13+
- nrf54l20pdk/nrf54l20/cpuapp
1314
- nrf54l15dk/nrf54l15/cpuflpr
1415
- nrf5340dk/nrf5340/cpuapp
1516
drivers.uart.uart_elementary_dual_nrf54h:
@@ -31,13 +32,15 @@ tests:
3132
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
3233
platform_allow:
3334
- nrf54l15dk/nrf54l15/cpuapp
35+
- nrf54l20pdk/nrf54l20/cpuapp
3436
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_dual_uart.overlay"
3537
extra_configs:
3638
- CONFIG_DUAL_UART_TEST=y
3739
drivers.uart.uart_elementary_dual_setup_mismatch_nrf54l:
3840
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
3941
platform_allow:
4042
- nrf54l15dk/nrf54l15/cpuapp
43+
- nrf54l20pdk/nrf54l20/cpuapp
4144
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_dual_uart.overlay"
4245
extra_configs:
4346
- CONFIG_DUAL_UART_TEST=y

0 commit comments

Comments
 (0)