Skip to content

Commit 7fc7361

Browse files
nordic-krchdleach02
authored andcommitted
tests: boards: nrf: qdec: Add common configuration for nrf54l
Add common overlay for nrf54l15pdk targets. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent b773306 commit 7fc7361

File tree

3 files changed

+45
-76
lines changed

3 files changed

+45
-76
lines changed

tests/boards/nrf/qdec/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +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-
33-
&gpio1 {
34-
status = "okay";
35-
};
36-
37-
&qdec20 {
38-
status = "okay";
39-
pinctrl-0 = <&qdec_pinctrl>;
40-
pinctrl-names = "default";
41-
steps = <127>;
42-
led-pre = <500>;
43-
};
6+
#include "nrf54l15pdk_nrf54l15_common.dtsi"

tests/boards/nrf/qdec/boards/nrf54l15dk_nrf54l15_cpuflpr.overlay

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +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-
33-
&gpio1 {
34-
status = "okay";
35-
};
36-
37-
&qdec20 {
38-
status = "okay";
39-
pinctrl-0 = <&qdec_pinctrl>;
40-
pinctrl-names = "default";
41-
steps = <127>;
42-
led-pre = <500>;
43-
};
6+
#include "nrf54l15pdk_nrf54l15_common.dtsi"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
33+
&gpio1 {
34+
status = "okay";
35+
};
36+
37+
&qdec20 {
38+
status = "okay";
39+
pinctrl-0 = <&qdec_pinctrl>;
40+
pinctrl-names = "default";
41+
steps = <127>;
42+
led-pre = <500>;
43+
};

0 commit comments

Comments
 (0)