2019-11-18 10:48:42 +01:00
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id : http://devicetree.org/schemas/mfd/st,stm32-lptimer.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
title : STMicroelectronics STM32 Low-Power Timers bindings
description : |
The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several
functions
- PWM output (with programmable prescaler, configurable polarity)
- Trigger source for STM32 ADC/DAC (LPTIM_OUT)
- Several counter modes :
- quadrature encoder to detect angular position and direction of rotary
elements, from IN1 and IN2 input signals.
- simple counter from IN1 input signal.
maintainers :
2021-11-10 16:01:44 +01:00
- Fabrice Gasnier <fabrice.gasnier@foss.st.com>
2019-11-18 10:48:42 +01:00
properties :
compatible :
const : st,stm32-lptimer
reg :
maxItems : 1
clocks :
maxItems : 1
clock-names :
items :
- const : mux
2020-06-03 14:54:34 +02:00
interrupts :
maxItems : 1
2019-11-18 10:48:42 +01:00
"#address-cells" :
const : 1
"#size-cells" :
const : 0
2020-02-17 14:45:44 +01:00
wakeup-source : true
2019-11-18 10:48:42 +01:00
pwm :
type : object
properties :
compatible :
const : st,stm32-pwm-lp
"#pwm-cells" :
const : 3
required :
- "#pwm-cells"
- compatible
2022-07-06 15:19:33 -06:00
counter :
2019-11-18 10:48:42 +01:00
type : object
properties :
compatible :
2022-07-06 15:19:33 -06:00
const : st,stm32-lptimer-counter
2019-11-18 10:48:42 +01:00
required :
- compatible
2022-07-06 15:19:33 -06:00
timer :
2019-11-18 10:48:42 +01:00
type : object
properties :
compatible :
2022-07-06 15:19:33 -06:00
const : st,stm32-lptimer-timer
2019-11-18 10:48:42 +01:00
required :
- compatible
2022-07-06 15:19:33 -06:00
patternProperties :
"^trigger@[0-9]+$" :
2020-02-17 14:45:44 +01:00
type : object
properties :
compatible :
2022-07-06 15:19:33 -06:00
const : st,stm32-lptimer-trigger
reg :
description : Identify trigger hardware block.
items :
minimum : 0
maximum : 2
2020-02-17 14:45:44 +01:00
required :
- compatible
2022-07-06 15:19:33 -06:00
- reg
2020-02-17 14:45:44 +01:00
2019-11-18 10:48:42 +01:00
required :
- "#address-cells"
- "#size-cells"
- compatible
- reg
- clocks
- clock-names
additionalProperties : false
examples :
- |
#include <dt-bindings/clock/stm32mp1-clks.h>
2020-06-03 14:54:34 +02:00
#include <dt-bindings/interrupt-controller/arm-gic.h>
2019-11-18 10:48:42 +01:00
timer@40002400 {
compatible = "st,stm32-lptimer";
reg = <0x40002400 0x400>;
clocks = <&timer_clk>;
clock-names = "mux";
2020-06-03 14:54:34 +02:00
interrupts-extended = <&exti 47 IRQ_TYPE_LEVEL_HIGH>;
2019-11-18 10:48:42 +01:00
#address-cells = <1>;
#size-cells = <0>;
pwm {
compatible = "st,stm32-pwm-lp";
#pwm-cells = <3>;
};
trigger@0 {
compatible = "st,stm32-lptimer-trigger";
reg = <0>;
};
counter {
compatible = "st,stm32-lptimer-counter";
};
2020-02-17 14:45:44 +01:00
timer {
compatible = "st,stm32-lptimer-timer";
};
2019-11-18 10:48:42 +01:00
};
...