Debian Codegraph @

Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/counter/ti,am62-ecap-capture.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Texas Instruments Enhanced Capture (eCAP) Module
8
9 maintainers:
10 - Julien Panis <[email protected]>
11
12 description: |
13 The eCAP module resources can be used to capture timestamps
14 on input signal events (falling/rising edges).
15
16 properties:
17 compatible:
18 const: ti,am62-ecap-capture
19
20 reg:
21 maxItems: 1
22
23 interrupts:
24 maxItems: 1
25
26 clocks:
27 maxItems: 1
28
29 clock-names:
30 const: fck
31
32 power-domains:
33 maxItems: 1
34
35 required:
36 - compatible
37 - reg
38 - interrupts
39 - clocks
40 - clock-names
41
42 additionalProperties: false
43
44 examples:
45 - |
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/soc/ti,sci_pm_domain.h>
48
49 soc {
50 #address-cells = <2>;
51 #size-cells = <2>;
52
53 capture@23100000 { /* eCAP in capture mode on am62x */
54 compatible = "ti,am62-ecap-capture";
55 reg = <0x00 0x23100000 0x00 0x100>;
56 interrupts = <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>;
57 power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>;
58 clocks = <&k3_clks 51 0>;
59 clock-names = "fck";
60 };
61 };