Skip to content

Commit

Permalink
[nrf fromtree] tests: nrf: enable twister tests for nrf54l20pdk
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nordic-segl committed Dec 16, 2024
1 parent 3c085e8 commit 202c38b
Show file tree
Hide file tree
Showing 28 changed files with 457 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_NRFX_TWIS22=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/ {
aliases {
i2c-slave = &i2c22;
};
};

&pinctrl {
i2c21_default_alt: i2c21_default_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
<NRF_PSEL(TWIM_SCL, 1, 14)>;
};
};

i2c21_sleep_alt: i2c21_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
<NRF_PSEL(TWIM_SCL, 1, 14)>;
low-power-enable;
};
};

i2c22_default_alt: i2c22_default_alt {
group1 {
/* Temporary workaround as it is currently not possible
* to configure pins for TWIS with pinctrl.
*/
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
<NRF_PSEL(TWIM_SCL, 1, 15)>;
bias-pull-up;
};
};

i2c22_sleep_alt: i2c22_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
<NRF_PSEL(TWIM_SCL, 1, 15)>;
low-power-enable;
};
};
};

&i2c21 {
compatible = "nordic,nrf-twim";
status = "okay";
pinctrl-0 = <&i2c21_default_alt>;
pinctrl-1 = <&i2c21_sleep_alt>;
pinctrl-names = "default", "sleep";
sensor: sensor@54 {
reg = <0x54>;
};
};

&i2c22 {
compatible = "nordic,nrf-twis";
status = "okay";
pinctrl-0 = <&i2c22_default_alt>;
pinctrl-1 = <&i2c22_sleep_alt>;
pinctrl-names = "default", "sleep";
};
1 change: 1 addition & 0 deletions tests/boards/nrf/i2c/i2c_slave/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tests:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpuppr
integration_platforms:
Expand Down
53 changes: 53 additions & 0 deletions tests/boards/nrf/qdec/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
qdec0 = &qdec20;
qenca = &phase_a;
qencb = &phase_b;
};

encoder-emulate {
compatible = "gpio-leds";
phase_a: phase_a {
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
};
phase_b: phase_b {
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
};
};
};

&pinctrl {
qdec_pinctrl: qdec_pinctrl {
group1 {
psels = <NRF_PSEL(QDEC_A, 1, 8)>,
<NRF_PSEL(QDEC_B, 1, 10)>;
};
};

qdec_sleep_pinctrl: qdec_sleep_pinctrl {
group1 {
psels = <NRF_PSEL(QDEC_A, 1, 8)>,
<NRF_PSEL(QDEC_B, 1, 10)>;
low-power-enable;
};
};
};

&gpio1 {
status = "okay";
};

&qdec20 {
status = "okay";
pinctrl-0 = <&qdec_pinctrl>;
pinctrl-1 = <&qdec_sleep_pinctrl>;
pinctrl-names = "default", "sleep";
steps = <127>;
led-pre = <500>;
zephyr,pm-device-runtime-auto;
};
2 changes: 2 additions & 0 deletions tests/drivers/clock_control/clock_control_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tests:
- nrf52840dk/nrf52840
- nrf9160dk/nrf9160
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
drivers.clock.clock_control_nrf5_lfclk_rc:
Expand All @@ -25,6 +26,7 @@ tests:
- nrf52dk/nrf52832
- nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_args: CONF_FILE="nrf_lfclk_rc.conf"
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ tests:
- nrf52dk/nrf52832
- nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
8 changes: 8 additions & 0 deletions tests/drivers/clock_control/nrf_lf_clock_start/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
extra_configs:
- CONFIG_SYSTEM_CLOCK_WAIT_FOR_STABILITY=y
- CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
Expand All @@ -29,6 +30,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
extra_configs:
- CONFIG_SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY=y
- CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
Expand Down Expand Up @@ -58,6 +60,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_configs:
Expand All @@ -72,6 +75,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_configs:
Expand All @@ -86,6 +90,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_configs:
Expand All @@ -100,6 +105,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_configs:
Expand All @@ -114,6 +120,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_configs:
Expand All @@ -128,6 +135,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpunet
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf51dk/nrf51822
extra_configs:
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/clock_control/onoff/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tests:
- nrf52dk/nrf52832
- nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf9160dk/nrf9160
integration_platforms:
- nrf51dk/nrf51822
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
&timer00 {
prescaler = <6>;
status = "okay";
};

&timer10 {
prescaler = <4>;
status = "okay";
};

&timer20 {
prescaler = <4>;
status = "okay";
};

&timer21 {
prescaler = <4>;
status = "okay";
};

&timer22 {
prescaler = <4>;
status = "okay";
};

&timer23 {
prescaler = <4>;
status = "okay";
};

&timer24 {
prescaler = <4>;
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
&timer00 {
prescaler = <6>;
status = "okay";
};

&timer10 {
prescaler = <4>;
status = "okay";
};

&timer20 {
prescaler = <4>;
status = "okay";
};

&timer21 {
prescaler = <4>;
status = "okay";
};

&timer22 {
prescaler = <4>;
status = "okay";
};

&timer23 {
prescaler = <4>;
status = "okay";
};

&timer24 {
prescaler = <4>;
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_POWEROFF=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
&timer00 {
prescaler = <6>;
status = "okay";
};

&timer10 {
prescaler = <4>;
status = "okay";
};

&timer20 {
prescaler = <4>;
status = "okay";
};

&timer21 {
prescaler = <4>;
status = "okay";
};

&timer22 {
prescaler = <4>;
status = "okay";
};

&timer23 {
prescaler = <4>;
status = "okay";
};

&timer24 {
prescaler = <4>;
status = "okay";
};
1 change: 1 addition & 0 deletions tests/drivers/retained_mem/api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tests:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
tags:
- drivers
- retained_mem
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* SPDX-License-Identifier: Apache-2.0 */

&pinctrl {
uart21_default_alt: uart21_default_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>;
};
};

uart21_sleep_alt: uart21_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>;
low-power-enable;
};
};
};

dut: &uart21 {
status = "okay";
pinctrl-0 = <&uart21_default_alt>;
pinctrl-1 = <&uart21_sleep_alt>;
pinctrl-names = "default", "sleep";
current-speed = <115200>;
};
1 change: 1 addition & 0 deletions tests/drivers/uart/uart_async_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tests:
- nrf52840dk/nrf52840
- nrf52_bsim
- nrf5340bsim/nrf5340/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54l15bsim/nrf54l15/cpuapp
filter: CONFIG_SERIAL_SUPPORT_ASYNC
harness: ztest
Expand Down
Loading

0 comments on commit 202c38b

Please sign in to comment.