0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/st,stm32-timer.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: STMicroelectronics STM32 general-purpose 16 and 32 bits timers bindings
0008
0009 maintainers:
0010 - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
0011 - Patrice Chotard <patrice.chotard@foss.st.com>
0012
0013 properties:
0014 compatible:
0015 const: st,stm32-timer
0016
0017 reg:
0018 maxItems: 1
0019
0020 interrupts:
0021 maxItems: 1
0022
0023 clocks:
0024 maxItems: 1
0025
0026 resets:
0027 maxItems: 1
0028
0029 required:
0030 - compatible
0031 - reg
0032 - interrupts
0033 - clocks
0034
0035 additionalProperties: false
0036
0037 examples:
0038 - |
0039 #include <dt-bindings/interrupt-controller/arm-gic.h>
0040 #include <dt-bindings/clock/stm32mp1-clks.h>
0041 timer: timer@40000c00 {
0042 compatible = "st,stm32-timer";
0043 reg = <0x40000c00 0x400>;
0044 interrupts = <50>;
0045 clocks = <&clk_pmtr1>;
0046 };
0047
0048 ...