Counter bindings
Single-page view · as markdown
FlexTimer Quadrature decoder counter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Counter bindings
Schema identifier ($id): "http://devicetree.org/schemas/counter/fsl,ftm-quaddec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Exposes a simple counter for the quadrature decoder mode.
Maintainers (maintainers): "Frank Li <Frank.li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,ftm-quaddec"
reg — required here #
Maximum number of items (maxItems): 1
big-endian — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
counter@29d0000 {
compatible = "fsl,ftm-quaddec";
reg = <0x29d0000 0x10000>;
big-endian;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Interrupt counter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Counter bindings
Schema identifier ($id): "http://devicetree.org/schemas/counter/interrupt-counter.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
A generic interrupt counter to measure interrupt frequency. It was developed and used for agricultural devices to measure rotation speed of wheels or other tools. Since the direction of rotation is not important, only one signal line is needed. Interrupts or gpios are required. If both are defined, the interrupt will take precedence for counting interrupts.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "interrupt-counter"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Rule 3 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
counter-0 {
compatible = "interrupt-counter";
interrupts-extended = <&gpio 0 IRQ_TYPE_EDGE_RISING>;
};
counter-1 {
compatible = "interrupt-counter";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
};
counter-2 {
compatible = "interrupt-counter";
interrupts-extended = <&gpio 2 IRQ_TYPE_EDGE_RISING>;
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Texas Instruments Enhanced Capture (eCAP) Module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Counter bindings
Schema identifier ($id): "http://devicetree.org/schemas/counter/ti,am62-ecap-capture.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Julien Panis <jpanis@baylibre.com>"
The eCAP module resources can be used to capture timestamps on input signal events (falling/rising edges).
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,am62-ecap-capture"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "fck"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (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";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments Enhanced Quadrature Encoder Pulse (eQEP) Module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Counter bindings
Schema identifier ($id): "http://devicetree.org/schemas/counter/ti-eqep.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Lechner <david@lechnology.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am3352-eqep", "ti,am62-eqep"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
The eQEP event interrupt
Maximum number of items (maxItems): 1
clocks — required here #
The functional and interface clock that determines the clock rate for the eQEP peripheral.
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "sysclkout"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
eqep0: counter@180 {
compatible = "ti,am3352-eqep";
reg = <0x180 0x80>;
clocks = <&l4ls_gclk>;
interrupts = <79>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0