Skip to content

Commit 729e39a

Browse files
nordic-seglkartben
authored andcommitted
tests: boards: nrf: qdec: Enable test on nRF54L20 FLPR
Add overlay required to run qdec tests on nrf54l20pdk/nrf54l20/cpuflpr. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 6a782cf commit 729e39a

File tree

4 files changed

+63
-50
lines changed

4 files changed

+63
-50
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright 2025 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/boards/nrf/qdec/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,4 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

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-
};
6+
#include "nrf54l20pdk_nrf54l20_common.dtsi"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*
2+
* Copyright 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include "nrf54l20pdk_nrf54l20_common.dtsi"

tests/boards/nrf/qdec/testcase.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ common:
22
platform_allow:
33
- nrf52840dk/nrf52840
44
- nrf5340dk/nrf5340/cpuapp
5+
- nrf54h20dk/nrf54h20/cpuapp
56
- nrf54l15dk/nrf54l15/cpuapp
67
- nrf54l15dk/nrf54l15/cpuflpr
78
- nrf54l20pdk/nrf54l20/cpuapp
8-
- nrf54h20dk/nrf54h20/cpuapp
9+
- nrf54l20pdk/nrf54l20/cpuflpr
910
integration_platforms:
1011
- nrf52840dk/nrf52840
1112
- nrf5340dk/nrf5340/cpuapp
13+
- nrf54h20dk/nrf54h20/cpuapp
1214
- nrf54l15dk/nrf54l15/cpuapp
1315
- nrf54l15dk/nrf54l15/cpuflpr
14-
- nrf54h20dk/nrf54h20/cpuapp
1516
harness: ztest
1617
harness_config:
1718
fixture: gpio_loopback

0 commit comments

Comments
 (0)