1STMicroelectronics STM32 Timer quadrature encoder
2
3STM32 Timer provides quadrature encoder to detect
4angular position and direction of rotary elements,
5from IN1 and IN2 input signals.
6
7Must be a sub-node of an STM32 Timer device tree node.
8See ../mfd/stm32-timers.txt for details about the parent node.
9
10Required properties:
11- compatible:		Must be "st,stm32-timer-counter".
12- pinctrl-names: 	Set to "default".
13- pinctrl-0: 		List of phandles pointing to pin configuration nodes,
14			to set CH1/CH2 pins in mode of operation for STM32
15			Timer input on external pin.
16
17Example:
18	timers@40010000 {
19		#address-cells = <1>;
20		#size-cells = <0>;
21		compatible = "st,stm32-timers";
22		reg = <0x40010000 0x400>;
23		clocks = <&rcc 0 160>;
24		clock-names = "int";
25
26		counter {
27			compatible = "st,stm32-timer-counter";
28			pinctrl-names = "default";
29			pinctrl-0 = <&tim1_in_pins>;
30		};
31	};
32