summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml
blob: 4e0b2d2b303e4f34df05041c973c1c09b26cdeed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/counter/ti,am62-ecap-capture.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments Enhanced Capture (eCAP) Module

maintainers:
  - Julien Panis <jpanis@baylibre.com>

description: |
  The eCAP module resources can be used to capture timestamps
  on input signal events (falling/rising edges).

properties:
  compatible:
    const: ti,am62-ecap-capture

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: fck

  power-domains:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/soc/ti,sci_pm_domain.h>

    soc {
        #address-cells = <2>;
        #size-cells = <2>;

        capture@23100000 { /* eCAP in capture mode on am62x */
            compatible = "ti,am62-ecap-capture";
            reg = <0x00 0x23100000 0x00 0x100>;
            interrupts = <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>;
            power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>;
            clocks = <&k3_clks 51 0>;
            clock-names = "fck";
        };
    };