Skip to content

Commit 711bbc5

Browse files
committed
[nrf fromlist] samples: sensor: qdec: Enable sample on nRF54L20pdk
Add overlay required to run the sample on nRF54L20pdk. Upstream PR #: 85734 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 80cc531 commit 711bbc5

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 0 GPIO_ACTIVE_HIGH>;
17+
};
18+
phase_b: phase_b {
19+
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
};
23+
24+
&pinctrl {
25+
qdec_pinctrl: qdec_pinctrl {
26+
group1 {
27+
psels = <NRF_PSEL(QDEC_A, 1, 1)>,
28+
<NRF_PSEL(QDEC_B, 1, 3)>;
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 = <120>;
42+
led-pre = <500>;
43+
};

samples/sensor/qdec/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ tests:
4242
- nrf52840dk/nrf52840
4343
- nrf5340dk/nrf5340/cpuapp
4444
- nrf54l15dk/nrf54l15/cpuapp
45+
- nrf54l20pdk/nrf54l20/cpuapp
4546
- nrf54h20dk/nrf54h20/cpuapp
4647
integration_platforms:
4748
- nrf52840dk/nrf52840
4849
- nrf5340dk/nrf5340/cpuapp
4950
- nrf54l15dk/nrf54l15/cpuapp
51+
- nrf54l20pdk/nrf54l20/cpuapp
5052
- nrf54h20dk/nrf54h20/cpuapp
5153
harness_config:
5254
fixture: gpio_loopback

0 commit comments

Comments
 (0)