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