Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/timer/st,stm32-timer.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: STMicroelectronics STM32 general-purpose 16 and 32 bits timers |
| 8 | |
| 9 | maintainers: |
| 10 | - Fabrice Gasnier <fabrice.gasnier@foss.st.com> |
| 11 | - Patrice Chotard <patrice.chotard@foss.st.com> |
| 12 | |
| 13 | properties: |
| 14 | compatible: |
| 15 | const: st,stm32-timer |
| 16 | |
| 17 | reg: |
| 18 | maxItems: 1 |
| 19 | |
| 20 | interrupts: |
| 21 | maxItems: 1 |
| 22 | |
| 23 | clocks: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | resets: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | required: |
| 30 | - compatible |
| 31 | - reg |
| 32 | - interrupts |
| 33 | - clocks |
| 34 | |
| 35 | additionalProperties: false |
| 36 | |
| 37 | examples: |
| 38 | - | |
| 39 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 40 | #include <dt-bindings/clock/stm32mp1-clks.h> |
| 41 | timer: timer@40000c00 { |
| 42 | compatible = "st,stm32-timer"; |
| 43 | reg = <0x40000c00 0x400>; |
| 44 | interrupts = <50>; |
| 45 | clocks = <&clk_pmtr1>; |
| 46 | }; |
| 47 | |
| 48 | ... |