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/arm,armv7m-systick.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: ARMv7M System Timer |
| 8 | |
| 9 | maintainers: |
| 10 | - Alexandre Torgue <alexandre.torgue@foss.st.com> |
| 11 | - Fabrice Gasnier <fabrice.gasnier@foss.st.com> |
| 12 | |
| 13 | description: ARMv7-M includes a system timer, known as SysTick. |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: arm,armv7m-systick |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | clocks: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | clock-frequency: true |
| 26 | |
| 27 | oneOf: |
| 28 | - required: |
| 29 | - clocks |
| 30 | - required: |
| 31 | - clock-frequency |
| 32 | |
| 33 | required: |
| 34 | - compatible |
| 35 | - reg |
| 36 | |
| 37 | additionalProperties: false |
| 38 | |
| 39 | examples: |
| 40 | - | |
| 41 | timer@e000e010 { |
| 42 | compatible = "arm,armv7m-systick"; |
| 43 | reg = <0xe000e010 0x10>; |
| 44 | clocks = <&clk_systick>; |
| 45 | }; |
| 46 | |
| 47 | - | |
| 48 | timer@e000e010 { |
| 49 | compatible = "arm,armv7m-systick"; |
| 50 | reg = <0xe000e010 0x10>; |
| 51 | clock-frequency = <90000000>; |
| 52 | }; |
| 53 | |
| 54 | ... |