Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / counter / stm32-timer-cnt.txt
1 STMicroelectronics STM32 Timer quadrature encoder
2
3 STM32 Timer provides quadrature encoder to detect
4 angular position and direction of rotary elements,
5 from IN1 and IN2 input signals.
6
7 Must be a sub-node of an STM32 Timer device tree node.
8 See ../mfd/stm32-timers.txt for details about the parent node.
9
10 Required 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
17 Example:
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         };