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
28*557804a8SMichal Simek  power-domains:
29*557804a8SMichal Simek    maxItems: 1
30*557804a8SMichal Simek
31abf8422cSNobuhiro Iwamatsu  timer-width:
32abf8422cSNobuhiro Iwamatsu    $ref: "/schemas/types.yaml#/definitions/uint32"
33abf8422cSNobuhiro Iwamatsu    description: |
34abf8422cSNobuhiro Iwamatsu      Bit width of the timer, necessary if not 16.
35abf8422cSNobuhiro Iwamatsu
36abf8422cSNobuhiro Iwamatsurequired:
37abf8422cSNobuhiro Iwamatsu  - compatible
38abf8422cSNobuhiro Iwamatsu  - reg
39abf8422cSNobuhiro Iwamatsu  - interrupts
40abf8422cSNobuhiro Iwamatsu  - clocks
41abf8422cSNobuhiro Iwamatsu
425be478f9SRob HerringadditionalProperties: false
435be478f9SRob Herring
44abf8422cSNobuhiro Iwamatsuexamples:
45abf8422cSNobuhiro Iwamatsu  - |
46abf8422cSNobuhiro Iwamatsu    ttc0: ttc0@f8001000 {
47abf8422cSNobuhiro Iwamatsu        interrupt-parent = <&intc>;
48abf8422cSNobuhiro Iwamatsu        interrupts = <0 10 4>, <0 11 4>, <0 12 4>;
49abf8422cSNobuhiro Iwamatsu        compatible = "cdns,ttc";
50abf8422cSNobuhiro Iwamatsu        reg = <0xF8001000 0x1000>;
51abf8422cSNobuhiro Iwamatsu        clocks = <&cpu_clk 3>;
52abf8422cSNobuhiro Iwamatsu        timer-width = <32>;
53abf8422cSNobuhiro Iwamatsu    };
54