Skip to content

Commit 3b7cce8

Browse files
ppelikan-nordicnordic-piks
authored andcommitted
tests: drivers: gpio: enable GPIO support for FLPR core
Add corresponding test overlays so that the GPIO tests run correctly under Twister for the FLPR core. Signed-off-by: Paweł Pelikan <pawel.pelikan@nordicsemi.no>
1 parent 65cb5af commit 3b7cce8

8 files changed

Lines changed: 105 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
* etc.
11+
* Output-input GPIO pair must have identical active level flag.
12+
*/
13+
zephyr,user {
14+
out-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
15+
in-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
16+
};
17+
};
18+
19+
&cpuflpr_code_partition {
20+
reg = <0xf4000 DT_SIZE_K(64)>;
21+
};

tests/drivers/gpio/gpio_event/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tests:
1414
- nrf5340dk/nrf5340/cpuapp
1515
- nrf5340dk/nrf5340/cpunet
1616
- nrf54h20dk/nrf54h20/cpuapp
17+
- nrf54h20dk/nrf54h20/cpuflpr
1718
- nrf54l15dk/nrf54l15/cpuapp
1819
- nrf54lm20dk/nrf54lm20a/cpuapp
1920
- nrf54lm20dk/nrf54lm20b/cpuapp
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
* etc.
11+
* Output-input GPIO pair must have identical active level flag.
12+
*/
13+
test_gpios {
14+
compatible = "gpio-leds";
15+
16+
out_gpios: out_gpios {
17+
gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
18+
};
19+
20+
in_gpios: in_gpios {
21+
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
22+
};
23+
};
24+
};
25+
26+
&cpuflpr_code_partition {
27+
reg = <0xf4000 DT_SIZE_K(64)>;
28+
};

tests/drivers/gpio/gpio_more_loops/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tests:
1616
- nrf5340dk/nrf5340/cpunet
1717
- nrf54h20dk/nrf54h20/cpuapp
1818
- nrf54h20dk/nrf54h20/cpuppr
19+
- nrf54h20dk/nrf54h20/cpuflpr
1920
- nrf54l15dk/nrf54l15/cpuapp
2021
- nrf54l15dk/nrf54l15/cpuapp/ns
2122
- nrf54l15dk/nrf54l15/cpuflpr
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
/* Test requirements:
9+
* NFC antenna connected to the DK.
10+
*/
11+
test_gpios {
12+
compatible = "gpio-leds";
13+
14+
out_gpios: out_gpios {
15+
gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
16+
};
17+
18+
in_gpios: in_gpios {
19+
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
};
23+
24+
&cpuflpr_code_partition {
25+
reg = <0xf4000 DT_SIZE_K(64)>;
26+
};
27+
28+
&nfct {
29+
status = "disabled";
30+
nfct-pins-as-gpios;
31+
};
32+
33+
&gpiote130 {
34+
status = "okay";
35+
};
36+
37+
&gpio2 {
38+
status = "okay";
39+
};

tests/drivers/gpio/gpio_nfct/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tests:
1616
- nrf54h20dk/nrf54h20/cpuapp
1717
- nrf54h20dk/nrf54h20/cpurad
1818
- nrf54h20dk/nrf54h20/cpuppr
19+
- nrf54h20dk/nrf54h20/cpuflpr
1920
- nrf54l15dk/nrf54l15/cpuapp
2021
- nrf54lm20dk/nrf54lm20a/cpuapp
2122
- nrf54lm20dk/nrf54lm20b/cpuapp
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */
2+
3+
/ {
4+
resources {
5+
compatible = "test-hpf-gpio";
6+
out-gpios = <&gpio0 6 0>;
7+
in-gpios = <&gpio0 7 0>;
8+
};
9+
};
10+
11+
&cpuflpr_code_partition {
12+
reg = <0xf4000 DT_SIZE_K(64)>;
13+
};

tests/drivers/gpio/hpf_gpio_basic_api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ common:
88
harness_config:
99
fixture: gpio_loopback
1010
platform_allow:
11+
- nrf54h20dk/nrf54h20/cpuflpr/xip
1112
- nrf54l15dk/nrf54l15/cpuapp
1213
- nrf54lm20dk/nrf54lm20a/cpuapp
1314
integration_platforms:

0 commit comments

Comments
 (0)