Skip to content

Commit 91d4ed3

Browse files
committed
[nrf fromlist] samples: sensor: qdec: Enable sample on nrf54lm20dk
Add overlay required to run the sample on nrf54lm20dk/nrf54lm20a/cpuapp. Upstream PR #: 92432 Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent f11a70c commit 91d4ed3

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/*
7+
* Two loopbacks are required:
8+
* P1.13 - P1.14
9+
* P1.23 - P1.24
10+
*/
11+
12+
/ {
13+
aliases {
14+
qdec0 = &qdec20;
15+
qenca = &phase_a;
16+
qencb = &phase_b;
17+
};
18+
19+
encoder-emulate {
20+
compatible = "gpio-leds";
21+
phase_a: phase_a {
22+
gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
23+
};
24+
phase_b: phase_b {
25+
gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
26+
};
27+
};
28+
};
29+
30+
&pinctrl {
31+
qdec_pinctrl: qdec_pinctrl {
32+
group1 {
33+
psels = <NRF_PSEL(QDEC_A, 1, 14)>,
34+
<NRF_PSEL(QDEC_B, 1, 24)>;
35+
};
36+
};
37+
};
38+
39+
&gpio1 {
40+
status = "okay";
41+
};
42+
43+
&qdec20 {
44+
status = "okay";
45+
pinctrl-0 = <&qdec_pinctrl>;
46+
pinctrl-names = "default";
47+
steps = <120>;
48+
led-pre = <500>;
49+
};

samples/sensor/qdec/sample.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ tests:
3131
platform_allow:
3232
- nrf52840dk/nrf52840
3333
- nrf5340dk/nrf5340/cpuapp
34-
- nrf54l15dk/nrf54l15/cpuapp
3534
- nrf54h20dk/nrf54h20/cpuapp
35+
- nrf54l15dk/nrf54l15/cpuapp
36+
- nrf54lm20dk/nrf54lm20a/cpuapp
3637
- ophelia4ev/nrf54l15/cpuapp
3738
integration_platforms:
3839
- nrf52840dk/nrf52840
3940
- nrf5340dk/nrf5340/cpuapp
40-
- nrf54l15dk/nrf54l15/cpuapp
4141
- nrf54h20dk/nrf54h20/cpuapp
42+
- nrf54l15dk/nrf54l15/cpuapp
43+
- nrf54lm20dk/nrf54lm20a/cpuapp
4244
- ophelia4ev/nrf54l15/cpuapp
4345
harness_config:
4446
fixture: gpio_loopback

0 commit comments

Comments
 (0)