1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
5 */
6
7/ {
8	aliases {
9		qdec0 = &pcnt;
10	};
11};
12
13&pinctrl {
14	pcnt_default: pcnt_default {
15		group1 {
16			pinmux = <PCNT0_CH0SIG_GPIO35>,
17				<PCNT0_CH0CTRL_GPIO36>;
18			bias-pull-up;
19		};
20	};
21};
22
23&pcnt {
24	pinctrl-0 = <&pcnt_default>;
25	pinctrl-names = "default";
26	status = "okay";
27	#address-cells = <1>;
28	#size-cells = <0>;
29	unit0@0 {
30		reg = <0>;
31		#address-cells = <1>;
32		#size-cells = <0>;
33		filter = <100>;
34		channelA@0 {
35			reg = <0>;
36			sig-pos-mode = <2>;
37			sig-neg-mode = <1>;
38			ctrl-h-mode = <0>;
39			ctrl-l-mode = <1>;
40		};
41	};
42};
43