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