Skip to content

Commit 746b467

Browse files
committed
tests: drivers: gpio: gpio_more_loops: Enable test on 54L* cpuflpr
Add overlay files required to run the test on the FLPR core of nRF54L15, nRF54L09, nRF54L20. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent 4250870 commit 746b467

10 files changed

+140
-95
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Test requirements:
9+
* out-gpios[0] wire connected with in-gpios[0],
10+
* out-gpios[1] wire connected with in-gpios[1],
11+
* etc.
12+
* Output-input GPIO pair must have identical active level flag.
13+
*/
14+
test_gpios {
15+
compatible = "gpio-leds";
16+
out_gpios: out_gpios {
17+
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
18+
};
19+
20+
in_gpios: in_gpios {
21+
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
22+
};
23+
};
24+
};
25+
26+
&gpiote20 {
27+
status = "okay";
28+
};
29+
30+
&gpio1 {
31+
status = "okay";
32+
};

tests/drivers/gpio/gpio_more_loops/boards/nrf54l09pdk_nrf54l09_cpuapp.overlay

+1-26
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,4 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/ {
8-
/* Test requirements:
9-
* out-gpios[0] wire connected with in-gpios[0],
10-
* out-gpios[1] wire connected with in-gpios[1],
11-
* etc.
12-
* Output-input GPIO pair must have identical active level flag.
13-
*/
14-
test_gpios {
15-
compatible = "gpio-leds";
16-
out_gpios: out_gpios {
17-
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
18-
};
19-
20-
in_gpios: in_gpios {
21-
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
22-
};
23-
};
24-
};
25-
26-
&gpiote20 {
27-
status = "okay";
28-
};
29-
30-
&gpio1 {
31-
status = "okay";
32-
};
7+
#include "nrf54l09pdk_nrf54l09_common.dtsi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54l09pdk_nrf54l09_common.dtsi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Test requirements:
9+
* out-gpios[0] wire connected with in-gpios[0],
10+
* out-gpios[1] wire connected with in-gpios[1],
11+
* etc.
12+
* Output-input GPIO pair must have identical active level flag.
13+
*/
14+
test_gpios {
15+
compatible = "gpio-leds";
16+
out_gpios: out_gpios {
17+
gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>, <&gpio1 8 GPIO_ACTIVE_HIGH>,
18+
<&gpio1 10 GPIO_ACTIVE_HIGH>, <&gpio1 12 GPIO_ACTIVE_HIGH>,
19+
<&gpio2 10 GPIO_ACTIVE_HIGH>;
20+
};
21+
22+
in_gpios: in_gpios {
23+
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>, <&gpio1 9 GPIO_ACTIVE_HIGH>,
24+
<&gpio1 11 GPIO_ACTIVE_HIGH>, <&gpio1 13 GPIO_ACTIVE_HIGH>,
25+
<&gpio1 14 GPIO_ACTIVE_HIGH>;
26+
};
27+
};
28+
};
29+
30+
&gpiote20 {
31+
status = "okay";
32+
};
33+
34+
&gpio1 {
35+
status = "okay";
36+
};
37+
38+
&gpio2 {
39+
status = "okay";
40+
};

tests/drivers/gpio/gpio_more_loops/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

+1-34
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,4 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/ {
8-
/* Test requirements:
9-
* out-gpios[0] wire connected with in-gpios[0],
10-
* out-gpios[1] wire connected with in-gpios[1],
11-
* etc.
12-
* Output-input GPIO pair must have identical active level flag.
13-
*/
14-
test_gpios {
15-
compatible = "gpio-leds";
16-
out_gpios: out_gpios {
17-
gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>, <&gpio1 8 GPIO_ACTIVE_HIGH>,
18-
<&gpio1 10 GPIO_ACTIVE_HIGH>, <&gpio1 12 GPIO_ACTIVE_HIGH>,
19-
<&gpio2 10 GPIO_ACTIVE_HIGH>;
20-
};
21-
22-
in_gpios: in_gpios {
23-
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>, <&gpio1 9 GPIO_ACTIVE_HIGH>,
24-
<&gpio1 11 GPIO_ACTIVE_HIGH>, <&gpio1 13 GPIO_ACTIVE_HIGH>,
25-
<&gpio1 14 GPIO_ACTIVE_HIGH>;
26-
};
27-
};
28-
};
29-
30-
&gpiote20 {
31-
status = "okay";
32-
};
33-
34-
&gpio1 {
35-
status = "okay";
36-
};
37-
38-
&gpio2 {
39-
status = "okay";
40-
};
7+
#include "nrf54l15dk_nrf54l15_common.dtsi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54l15dk_nrf54l15_common.dtsi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Test requirements:
9+
* out-gpios[0] wire connected with in-gpios[0],
10+
* out-gpios[1] wire connected with in-gpios[1],
11+
* etc.
12+
* Output-input GPIO pair must have identical active level flag.
13+
*/
14+
test_gpios {
15+
compatible = "gpio-leds";
16+
out_gpios: out_gpios {
17+
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>, <&gpio2 2 GPIO_ACTIVE_HIGH>,
18+
<&gpio2 4 GPIO_ACTIVE_HIGH>, <&gpio2 6 GPIO_ACTIVE_HIGH>,
19+
<&gpio1 10 GPIO_ACTIVE_HIGH>;
20+
};
21+
22+
in_gpios: in_gpios {
23+
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>, <&gpio2 3 GPIO_ACTIVE_HIGH>,
24+
<&gpio2 5 GPIO_ACTIVE_HIGH>, <&gpio2 7 GPIO_ACTIVE_HIGH>,
25+
<&gpio1 11 GPIO_ACTIVE_HIGH>;
26+
};
27+
};
28+
};
29+
30+
&gpiote20 {
31+
status = "okay";
32+
};
33+
34+
&gpio1 {
35+
status = "okay";
36+
};
37+
38+
&gpio2 {
39+
status = "okay";
40+
};

tests/drivers/gpio/gpio_more_loops/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay

+1-34
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,4 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/ {
8-
/* Test requirements:
9-
* out-gpios[0] wire connected with in-gpios[0],
10-
* out-gpios[1] wire connected with in-gpios[1],
11-
* etc.
12-
* Output-input GPIO pair must have identical active level flag.
13-
*/
14-
test_gpios {
15-
compatible = "gpio-leds";
16-
out_gpios: out_gpios {
17-
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>, <&gpio2 2 GPIO_ACTIVE_HIGH>,
18-
<&gpio2 4 GPIO_ACTIVE_HIGH>, <&gpio2 6 GPIO_ACTIVE_HIGH>,
19-
<&gpio1 10 GPIO_ACTIVE_HIGH>;
20-
};
21-
22-
in_gpios: in_gpios {
23-
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>, <&gpio2 3 GPIO_ACTIVE_HIGH>,
24-
<&gpio2 5 GPIO_ACTIVE_HIGH>, <&gpio2 7 GPIO_ACTIVE_HIGH>,
25-
<&gpio1 11 GPIO_ACTIVE_HIGH>;
26-
};
27-
};
28-
};
29-
30-
&gpiote20 {
31-
status = "okay";
32-
};
33-
34-
&gpio1 {
35-
status = "okay";
36-
};
37-
38-
&gpio2 {
39-
status = "okay";
40-
};
7+
#include "nrf54l20pdk_nrf54l20_common.dtsi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54l20pdk_nrf54l20_common.dtsi"

tests/drivers/gpio/gpio_more_loops/testcase.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ tests:
1313
drivers.gpio.gpio_more_loops:
1414
platform_allow:
1515
- nrf54l15dk/nrf54l15/cpuapp
16-
- nrf54l20pdk/nrf54l20/cpuapp
16+
- nrf54l15dk/nrf54l15/cpuflpr
1717
- nrf54l09pdk/nrf54l09/cpuapp
18+
- nrf54l09pdk/nrf54l09/cpuflpr
19+
- nrf54l20pdk/nrf54l20/cpuapp
20+
- nrf54l20pdk/nrf54l20/cpuflpr
1821
- nrf54h20dk/nrf54h20/cpuapp
1922
integration_platforms:
2023
- nrf54l15dk/nrf54l15/cpuapp

0 commit comments

Comments
 (0)