Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jpanis@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220923142437.271328-2-jpanis@baylibre.com/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/33c27451f61b3a01d886da5e6bf6456088956439.1664318353.git.william.gray@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Julien Panis and committed by
Greg Kroah-Hartman
b5bee6ce d2011be1

+61
+61
Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml
··· 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 <jpanis@baylibre.com> 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 + };