Skip to content

Commit 717e692

Browse files
Fabrice GasnierLee Jones
authored andcommitted
dt-bindings: iio: Add STM32 LPTimer quadrature encoder and counter
Add documentation for STMicroelectronics STM32 Low-Power Timer quadrature encoder and counter binding. Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent b01ced2 commit 717e692

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
STMicroelectronics STM32 Low-Power Timer quadrature encoder and counter
2+
3+
STM32 Low-Power Timer provides several counter modes. It can be used as:
4+
- quadrature encoder to detect angular position and direction of rotary
5+
elements, from IN1 and IN2 input signals.
6+
- simple counter from IN1 input signal.
7+
8+
Must be a sub-node of an STM32 Low-Power Timer device tree node.
9+
See ../mfd/stm32-lptimer.txt for details about the parent node.
10+
11+
Required properties:
12+
- compatible: Must be "st,stm32-lptimer-counter".
13+
- pinctrl-names: Set to "default".
14+
- pinctrl-0: List of phandles pointing to pin configuration nodes,
15+
to set IN1/IN2 pins in mode of operation for Low-Power
16+
Timer input on external pin.
17+
18+
Example:
19+
timer@40002400 {
20+
compatible = "st,stm32-lptimer";
21+
...
22+
counter {
23+
compatible = "st,stm32-lptimer-counter";
24+
pinctrl-names = "default";
25+
pinctrl-0 = <&lptim1_in_pins>;
26+
};
27+
};

0 commit comments

Comments
 (0)