xref: /freebsd/sys/contrib/device-tree/Bindings/timer/cdns,ttc.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/cdns,ttc.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Cadence TTC - Triple Timer Counter
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10*f126890aSEmmanuel Vadot  - Michal Simek <michal.simek@amd.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  compatible:
14c66ec88fSEmmanuel Vadot    const: cdns,ttc
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot  reg:
17c66ec88fSEmmanuel Vadot    maxItems: 1
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot  interrupts:
20c66ec88fSEmmanuel Vadot    maxItems: 3
21c66ec88fSEmmanuel Vadot    description: |
22c66ec88fSEmmanuel Vadot      A list of 3 interrupts; one per timer channel.
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  clocks:
25c66ec88fSEmmanuel Vadot    maxItems: 1
26c66ec88fSEmmanuel Vadot
27e67e8565SEmmanuel Vadot  power-domains:
28e67e8565SEmmanuel Vadot    maxItems: 1
29e67e8565SEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  timer-width:
31fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
32c66ec88fSEmmanuel Vadot    description: |
33c66ec88fSEmmanuel Vadot      Bit width of the timer, necessary if not 16.
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadotrequired:
36c66ec88fSEmmanuel Vadot  - compatible
37c66ec88fSEmmanuel Vadot  - reg
38c66ec88fSEmmanuel Vadot  - interrupts
39c66ec88fSEmmanuel Vadot  - clocks
40c66ec88fSEmmanuel Vadot
416be33864SEmmanuel VadotadditionalProperties: false
426be33864SEmmanuel Vadot
43c66ec88fSEmmanuel Vadotexamples:
44c66ec88fSEmmanuel Vadot  - |
45c66ec88fSEmmanuel Vadot    ttc0: ttc0@f8001000 {
46c66ec88fSEmmanuel Vadot        interrupt-parent = <&intc>;
47c66ec88fSEmmanuel Vadot        interrupts = <0 10 4>, <0 11 4>, <0 12 4>;
48c66ec88fSEmmanuel Vadot        compatible = "cdns,ttc";
49c66ec88fSEmmanuel Vadot        reg = <0xF8001000 0x1000>;
50c66ec88fSEmmanuel Vadot        clocks = <&cpu_clk 3>;
51c66ec88fSEmmanuel Vadot        timer-width = <32>;
52c66ec88fSEmmanuel Vadot    };
53