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
52 const: st,stm32-pwm-lp
67 const: st,stm32-lptimer-trigger
70 description: Identify trigger hardware block.
84 const: st,stm32-lptimer-counter
94 const: st,stm32-lptimer-timer
107 additionalProperties: false
111 #include <dt-bindings/clock/stm32mp1-clks.h>
112 #include <dt-bindings/interrupt-controller/arm-gic.h>
114 compatible = "st,stm32-lptimer";
115 reg = <0x40002400 0x400>;
116 clocks = <&timer_clk>;
118 interrupts-extended = <&exti 47 IRQ_TYPE_LEVEL_HIGH>;
119 #address-cells = <1>;
123 compatible = "st,stm32-pwm-lp";
128 compatible = "st,stm32-lptimer-trigger";
133 compatible = "st,stm32-lptimer-counter";
137 compatible = "st,stm32-lptimer-timer";