1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/cdns,ttc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Cadence TTC - Triple Timer Counter
8
9maintainers:
10  - Michal Simek <michal.simek@xilinx.com>
11
12properties:
13  compatible:
14    const: cdns,ttc
15
16  reg:
17    maxItems: 1
18
19  interrupts:
20    minItems: 3
21    maxItems: 3
22    description: |
23      A list of 3 interrupts; one per timer channel.
24
25  clocks:
26    maxItems: 1
27
28  timer-width:
29    $ref: "/schemas/types.yaml#/definitions/uint32"
30    description: |
31      Bit width of the timer, necessary if not 16.
32
33required:
34  - compatible
35  - reg
36  - interrupts
37  - clocks
38
39additionalProperties: false
40
41examples:
42  - |
43    ttc0: ttc0@f8001000 {
44        interrupt-parent = <&intc>;
45        interrupts = <0 10 4>, <0 11 4>, <0 12 4>;
46        compatible = "cdns,ttc";
47        reg = <0xF8001000 0x1000>;
48        clocks = <&cpu_clk 3>;
49        timer-width = <32>;
50    };
51