Skip to content

Commit f84e082

Browse files
nordic-seglcarlescufi
authored andcommitted
samples: sensor: qdec: Run sample on nrf54h20
Add overlay file that enables sample on nrf54h20 Application core. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent 7b82235 commit f84e082

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 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
qdec0 = &qdec130;
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 1 GPIO_ACTIVE_HIGH>;
17+
};
18+
phase_b: phase_b {
19+
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
};
23+
24+
&pinctrl {
25+
qdec_pinctrl: qdec_pinctrl {
26+
group1 {
27+
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
28+
<NRF_PSEL(QDEC_B, 1, 2)>;
29+
};
30+
};
31+
};
32+
33+
&gpio1 {
34+
status = "okay";
35+
};
36+
37+
&qdec130 {
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
@@ -22,10 +22,12 @@ tests:
2222
- nrf52840dk/nrf52840
2323
- nrf5340dk/nrf5340/cpuapp
2424
- nrf54l15pdk/nrf54l15/cpuapp
25+
- nrf54h20dk/nrf54h20/cpuapp
2526
integration_platforms:
2627
- nrf52840dk/nrf52840
2728
- nrf5340dk/nrf5340/cpuapp
2829
- nrf54l15pdk/nrf54l15/cpuapp
30+
- nrf54h20dk/nrf54h20/cpuapp
2931
harness_config:
3032
fixture: gpio_loopback
3133
type: multi_line

0 commit comments

Comments
 (0)