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 = <&gpio2 9 GPIO_ACTIVE_HIGH>;
17		};
18		phase_b: phase_b {
19			gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
20		};
21	};
22};
23
24&pinctrl {
25	qdec_pinctrl: qdec_pinctrl {
26		group1 {
27			psels = <NRF_PSEL(QDEC_A, 2, 8)>,
28				<NRF_PSEL(QDEC_B, 2, 10)>;
29		};
30	};
31};
32
33&gpio2 {
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};
44