Skip to content

Commit b5bee6c

Browse files
jpanisblgregkh
authored andcommitted
dt-bindings: counter: add ti,am62-ecap-capture.yaml
This commit adds a YAML binding for TI ECAP used in capture operating mode. Signed-off-by: Julien Panis <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: William Breathitt Gray <[email protected]> Link: https://lore.kernel.org/r/33c27451f61b3a01d886da5e6bf6456088956439.1664318353.git.william.gray@linaro.org Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d2011be commit b5bee6c

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
};

0 commit comments

Comments
 (0)