1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mfd/st,stm32-lptimer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics STM32 Low-Power Timers bindings
10 The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several
12 - PWM output (with programmable prescaler, configurable polarity)
13 - Trigger source for STM32 ADC/DAC (LPTIM_OUT)
14 - Several counter modes:
15 - quadrature encoder to detect angular position and direction of rotary
16 elements, from IN1 and IN2 input signals.
17 - simple counter from IN1 input signal.
20 - Fabrice Gasnier <fabrice.gasnier@st.com>
24 const: st,stm32-lptimer
49 const: st,stm32-pwm-lp
64 const: st,stm32-lptimer-trigger
67 description: Identify trigger hardware block.
81 const: st,stm32-lptimer-counter
91 const: st,stm32-lptimer-timer
104 additionalProperties: false
108 #include <dt-bindings/clock/stm32mp1-clks.h>
110 compatible = "st,stm32-lptimer";
111 reg = <0x40002400 0x400>;
112 clocks = <&timer_clk>;
114 #address-cells = <1>;
118 compatible = "st,stm32-pwm-lp";
123 compatible = "st,stm32-lptimer-trigger";
128 compatible = "st,stm32-lptimer-counter";
132 compatible = "st,stm32-lptimer-timer";