Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Timer bindings

Single-page view · as markdown

Actions Semi Owl timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/actions,owl-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andreas Färber <afaerber@suse.de>"

Actions Semi Owl SoCs provide 32bit and 2Hz timers. The 32bit timers support dynamic irq, as well as one-shot mode.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "actions,s500-timer", "actions,s700-timer", "actions,s900-timer"

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

interrupt-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

Array item rules (items) #

Allowed values (enum): "2hz0", "2hz1", "timer0", "timer1", "timer2", "timer3"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "interrupts", "interrupt-names", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "actions,s500-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "2hz0"

Item 2

Exact value (const): "2hz1"

Item 3

Exact value (const): "timer0"

Item 4

Exact value (const): "timer1"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "actions,s700-timer", "actions,s900-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "timer1"

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/interrupt-controller/irq.h>
soc {
  #address-cells = <1>;
  #size-cells = <1>;
  timer@b0168000 {
    compatible = "actions,s500-timer";
    reg = <0xb0168000 0x100>;
    clocks = <&hosc>;
    interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "2hz0", "2hz1", "timer0", "timer1";
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Allwinner A10 Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/allwinner,sun4i-a10-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "allwinner,sun4i-a10-timer", "allwinner,sun8i-a23-timer", "allwinner,sun8i-v3s-timer", "allwinner,suniv-f1c100s-timer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun20i-d1-timer", "allwinner,sun50i-a64-timer", "allwinner,sun50i-h6-timer", "allwinner,sun50i-h616-timer"

Item 2

Exact value (const): "allwinner,sun8i-a23-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 6

List of timers interrupts

clocks — 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 here

Allowed values (enum): "allwinner,sun4i-a10-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun8i-a23-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "allwinner,sun8i-v3s-timer", "allwinner,suniv-f1c100s-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

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) #

timer@1c20c00 {
    compatible = "allwinner,sun4i-a10-timer";
    reg = <0x01c20c00 0x400>;
    interrupts = <22>,
                 <23>,
                 <24>,
                 <25>,
                 <67>,
                 <68>;
    clocks = <&osc>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Allwinner A13 High-Speed Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/allwinner,sun5i-a13-hstimer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun5i-a13-hstimer"

Rule 2

Exact value (const): "allwinner,sun7i-a20-hstimer"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun6i-a31-hstimer"

Item 2

Exact value (const): "allwinner,sun7i-a20-hstimer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Timer 0 Interrupt

Item 2

Timer 1 Interrupt

Item 3

Timer 2 Interrupt

Item 4

Timer 3 Interrupt

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "allwinner,sun5i-a13-hstimer"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@1c60000 {
    compatible = "allwinner,sun7i-a20-hstimer";
    reg = <0x01c60000 0x1000>;
    interrupts = <0 51 1>,
                 <0 52 1>,
                 <0 53 1>,
                 <0 54 1>;
    clocks = <&ahb1_gates 19>;
    resets = <&ahb1rst 19>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Altera Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/altr,timer-1.0.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dinh Nguyen <dinguyen@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "altr,timer-1.0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Frequency of the clock that drives the counter, in Hz.

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@400000 {
    compatible = "altr,timer-1.0";
    reg = <0x00400000 0x00000020>;
    interrupts = <11>;
    clock-frequency = <125000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Amlogic Meson6 SoCs Timer Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/amlogic,meson6-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>", "Martin Blumenstingl <martin.blumenstingl@googlemail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "amlogic,meson6-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 4

per-timer event interrupts

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "xtal"

Item 2

Exact value (const): "pclk"

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/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
timer@c1109940 {
    compatible = "amlogic,meson6-timer";
    reg = <0xc1109940 0x14>;
    interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
    clocks = <&xtal>, <&clk81>;
    clock-names = "xtal", "pclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Andes machine-level timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/andestech,plmt0.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Andes machine-level timer device (PLMT0) provides machine-level timer functionality for a set of HARTs on a RISC-V platform. It has a single fixed-frequency monotonic time counter (MTIME) register and a time compare register (MTIMECMP) for each HART connected to the PLMT0. A timer interrupt is generated if MTIME >= MTIMECMP.

Maintainers (maintainers): "Ben Zong-You Xie <ben717@andestech.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "andestech,qilai-plmt"

Item 2

Exact value (const): "andestech,plmt0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts-extended — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Specifies which harts are connected to the PLMT0. Each item must points to a riscv,cpu-intc node, which has a riscv cpu node as parent. The PLMT0 supports 1 hart up to 32 harts.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts-extended"

Examples (examples) #

interrupt-controller@100000 {
  compatible = "andestech,qilai-plmt", "andestech,plmt0";
  reg = <0x100000 0x100000>;
  interrupts-extended = <&cpu0intc 7>,
                        <&cpu1intc 7>,
                        <&cpu2intc 7>,
                        <&cpu3intc 7>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ARM architected timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/arm,arch_timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marc Zyngier <marc.zyngier@arm.com>", "Mark Rutland <mark.rutland@arm.com>"

ARM cores may have a per-core architected timer, which provides per-cpu timers, or a memory mapped architected timer, which provides up to 8 frames with a physical and optional virtual timer per frame.

The per-core architected timer is attached to a GIC to deliver its per-processor interrupts via PPIs. The memory mapped timer is attached to a GIC to deliver its interrupts via SPIs.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "arm,cortex-a15-timer"

Item 2

Exact value (const): "arm,armv7-timer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "arm,armv7-timer", "arm,armv8-timer"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "arm,armv8-timer"

Item 2

Exact value (const): "arm,armv7-timer"

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

secure timer irq

Item 2

non-secure timer irq

Item 3

virtual timer irq

Item 4

hypervisor timer irq

Item 5

hypervisor virtual timer irq

interrupt-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "phys"

Item 2

Exact value (const): "virt"

Item 3

Exact value (const): "hyp-phys"

Item 4

Exact value (const): "hyp-virt"

Rule 2

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

Exact value (const): "sec-phys"

Item 2

Exact value (const): "phys"

Item 3

Exact value (const): "virt"

Item 4

Exact value (const): "hyp-phys"

Item 5

Exact value (const): "hyp-virt"

clock-frequency — not listed as required here #

The frequency of the main counter, in Hz. Should be present only where necessary to work around broken firmware which does not configure CNTFRQ on all CPUs to a uniform correct value. Use of this property is strongly discouraged; fix your firmware unless absolutely impossible.

always-on — not listed as required here #

Value type (type): "boolean"

If present, the timer is powered through an always-on power domain, therefore it never loses context.

allwinner,erratum-unknown1 — not listed as required here #

Value type (type): "boolean"

Indicates the presence of an erratum found in Allwinner SoCs, where reading certain values from the counter is unreliable. This also affects writes to the tval register, due to the implicit counter read.

fsl,erratum-a008585 — not listed as required here #

Value type (type): "boolean"

Indicates the presence of QorIQ erratum A-008585, which says that reading the counter is unreliable unless the same value is returned by back-to-back reads. This also affects writes to the tval register, due to the implicit counter read.

hisilicon,erratum-161010101 — not listed as required here #

Value type (type): "boolean"

Indicates the presence of Hisilicon erratum 161010101, which says that reading the counters is unreliable in some cases, and reads may return a value 32 beyond the correct value. This also affects writes to the tval registers, due to the implicit counter read.

arm,cpu-registers-not-fw-configured — not listed as required here #

Value type (type): "boolean"

Firmware does not initialize any of the generic timer CPU registers, which contain their architecturally-defined reset values. Only supported for 32-bit systems which follow the ARMv7 architected reset values.

arm,no-tick-in-suspend — not listed as required here #

Value type (type): "boolean"

The main counter does not tick when the system is in low-power system suspend on some SoCs. This behavior does not match the Architecture Reference Manual's specification that the system counter "must be implemented in an always-on power domain."

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "interrupts"

Rule 2 #

Required in this object (required): "interrupts-extended"

Examples (examples) #

timer {
  compatible = "arm,cortex-a15-timer",
         "arm,armv7-timer";
  interrupts = <1 13 0xf08>,
         <1 14 0xf08>,
         <1 11 0xf08>,
         <1 10 0xf08>;
  clock-frequency = <100000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

ARM memory mapped architected timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/arm,arch_timer_mmio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marc Zyngier <marc.zyngier@arm.com>", "Mark Rutland <mark.rutland@arm.com>"

ARM cores may have a memory mapped architected timer, which provides up to 8 frames with a physical and optional virtual timer per frame.

The memory mapped timer is attached to a GIC to deliver its interrupts via SPIs.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "arm,armv7-timer-mem"

reg — required here #

Maximum number of items (maxItems): 1

The control frame base address

#address-cells — required here #

Allowed values (enum): 1, 2

#size-cells — required here #

Exact value (const): 1

ranges — not listed as required here #

true — No constraints added by this property rule.

clock-frequency — not listed as required here #

The frequency of the main counter, in Hz. Should be present only where necessary to work around broken firmware which does not configure CNTFRQ on all CPUs to a uniform correct value. Use of this property is strongly discouraged; fix your firmware unless absolutely impossible.

always-on — not listed as required here #

Value type (type): "boolean"

If present, the timer is powered through an always-on power domain, therefore it never loses context.

arm,cpu-registers-not-fw-configured — not listed as required here #

Value type (type): "boolean"

Firmware does not initialize any of the generic timer CPU registers, which contain their architecturally-defined reset values. Only supported for 32-bit systems which follow the ARMv7 architected reset values.

arm,no-tick-in-suspend — not listed as required here #

Value type (type): "boolean"

The main counter does not tick when the system is in low-power system suspend on some SoCs. This behavior does not match the Architecture Reference Manual's specification that the system counter "must be implemented in an always-on power domain."

Properties matching a name pattern (patternProperties) #

^frame@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

A timer node has up to 8 frame sub-nodes, each with the following properties.

Properties and child nodes (properties) #

frame-number — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 7

interrupts — required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

physical timer irq

Item 2

virtual timer irq

reg — required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

1st view base address

Item 2

2nd optional view base address

Required in this object (required): "frame-number", "interrupts", "reg"

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@f0000000 {
  compatible = "arm,armv7-timer-mem";
  #address-cells = <1>;
  #size-cells = <1>;
  ranges = <0 0xf0001000 0x1000>;
  reg = <0xf0000000 0x1000>;
  clock-frequency = <50000000>;

  frame@0 {
    frame-number = <0>;
    interrupts = <0 13 0x8>,
           <0 14 0x8>;
    reg = <0x0000 0x1000>,
          <0x1000 0x1000>;
  };

  frame@2000 {
    frame-number = <1>;
    interrupts = <0 15 0x8>;
    reg = <0x2000 0x1000>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

ARMv7M System Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/arm,armv7m-systick.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexandre Torgue <alexandre.torgue@foss.st.com>", "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"

ARMv7-M includes a system timer, known as SysTick.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "arm,armv7m-systick"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "clocks"

Rule 2 #

Required in this object (required): "clock-frequency"

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) #

timer@e000e010 {
    compatible = "arm,armv7m-systick";
    reg = <0xe000e010 0x10>;
    clocks = <&clk_systick>;
};
timer@e000e010 {
    compatible = "arm,armv7m-systick";
    reg = <0xe000e010 0x10>;
    clock-frequency = <90000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ARM Global Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/arm,global_timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stuart Menefy <stuart.menefy@st.com>"

Cortex-A9 are often associated with a per-core Global timer.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "arm,cortex-a5-global-timer", "arm,cortex-a9-global-timer"

driver supports versions r2p0 and above.

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@2c000600 {
  compatible = "arm,cortex-a9-global-timer";
  reg = <0x2c000600 0x20>;
  interrupts = <1 13 0xf01>;
  clocks = <&arm_periph_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

ARM MPS2 timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/arm,mps2-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vladimir Murzin <vladimir.murzin@arm.com>"

The MPS2 platform has simple general-purpose 32 bits timers.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "arm,mps2-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Rate in Hz of the timer input clock

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "clocks"

Rule 2 #

Required in this object (required): "clock-frequency"

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@40000000 {
    compatible = "arm,mps2-timer";
    reg = <0x40000000 0x1000>;
    interrupts = <8>;
    clocks = <&sysclk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ARM sp804 Dual Timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/arm,sp804.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Haojian Zhuang <haojian.zhuang@linaro.org>"

The Arm SP804 IP implements two independent timers, configurable for 16 or 32 bit operation and capable of running in one-shot, periodic, or free-running mode. The input clock is shared, but can be gated and prescaled independently for each timer.

There is a viriant of Arm SP804: Hisilicon 64-bit SP804 timer. Some Hisilicon SoCs, such as Hi1212, should use the dedicated compatible: "hisilicon,sp804".

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "arm,sp804", "hisilicon,sp804"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "arm,sp804", "hisilicon,sp804"

Item 2

Exact value (const): "arm,primecell"

interrupts — required here #

If two interrupts are listed, those are the interrupts for timer 1 and 2, respectively. If there is only a single interrupt, it is either a combined interrupt or the sole interrupt of one timer, as specified by the "arm,sp804-has-irq" property.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg — required here #

The physical base address of the SP804 IP.

Maximum number of items (maxItems): 1

clocks — required here #

Clocks driving the dual timer hardware. This list should be 1 or 3 clocks. With 3 clocks, the order is timer0 clock, timer1 clock, apb_pclk. A single clock can also be specified if the same clock is used for all clock inputs.

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

clock for timer 1

Item 2

clock for timer 2

Item 3

bus clock

Rule 2

Array item rules (items)

Item 1

unified clock for both timers and the bus

clock-names — not listed as required here #

true — No constraints added by this property rule.

arm,sp804-has-irq — not listed as required here #

If only one interrupt line is connected to the interrupt controller, this property specifies which timer is connected to this line.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 2

Required in this object (required): "compatible", "interrupts", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer0: timer@fc800000 {
    compatible = "arm,sp804", "arm,primecell";
    reg = <0xfc800000 0x1000>;
    interrupts = <0 0 4>, <0 1 4>;
    clocks = <&timclk1>, <&timclk2>, <&pclk>;
    clock-names = "timer1", "timer2", "apb_pclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 21: Need a custom select here or 'arm,primecell' will match on lots of nodes

Line 68: The original binding did not specify any clock names, and there is no

Line 69: consistent naming used in the existing DTs. The primecell binding

Line 70: requires the "apb_pclk" name, so we need this property.

Line 71: Use "timer0clk", "timer1clk", "apb_pclk" for new DTs.

ARM Timer-Watchdog Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/arm,twd-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

ARM 11MP, Cortex-A5 and Cortex-A9 are often associated with a per-core Timer-Watchdog (aka TWD), which provides both a per-cpu local timer and watchdog. The TWD is usually attached to a GIC to deliver its two per-processor interrupts.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "arm,cortex-a9-twd-timer", "arm,cortex-a5-twd-timer", "arm,arm11mp-twd-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

always-on — not listed as required here #

If present, the timer is powered through an always-on power domain, therefore it never loses context.

Required in this object (required): "compatible", "reg", "interrupts"

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>

timer@2c000600 {
    compatible = "arm,arm11mp-twd-timer";
    reg = <0x2c000600 0x20>;
    interrupts = <GIC_PPI 13 0xf01>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

BCM2835 System Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/brcm,bcm2835-system-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stefan Wahren <wahrenst@gmx.net>", "Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>"

The System Timer peripheral provides four 32-bit timer channels and a single 64-bit free running counter. Each channel has an output compare register, which is compared against the 32 least significant bits of the free running counter values, and generates an interrupt.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm2835-system-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

System Timer Compare 0 match (used by VideoCore GPU)

Item 2

System Timer Compare 1 match (usable for ARM core)

Item 3

System Timer Compare 2 match (used by VideoCore GPU)

Item 4

System Timer Compare 3 match (usable for ARM core)

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@7e003000 {
  compatible = "brcm,bcm2835-system-timer";
  reg = <0x7e003000 0x1000>;
  interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
  clock-frequency = <1000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Broadcom Broadband SoC timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/brcm,bcmbca-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "brcm,bcm6345-timer"

An old block with 3 timers. It can be found in BCM6345, BCM6838 and BCM63268.

Rule 2

Exact value (const): "brcm,bcm63138-timer"

Updated block with 4 timers and control regs at the beginning. It can be found in newer SoCs, e.g. BCM63138, BCM63148, BCM63381, BCM68360, BCM6848, BCM6858, BCM4908.

reg — required here #

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "reg"

Examples (examples) #

timer@fffe0200 {
  compatible = "brcm,bcm6345-timer";
  reg = <0xfffe0200 0x1c>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Broadcom Kona family timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/brcm,kona-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,kona-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "clocks"

Rule 2 #

Required in this object (required): "clock-frequency"

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/bcm281xx.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

timer@35006000 {
    compatible = "brcm,kona-timer";
    reg = <0x35006000 0x1000>;
    interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Cadence TTC - Triple Timer Counter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/cdns,ttc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cdns,ttc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 3

A list of 3 interrupts; one per timer channel.

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

timer-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bit width of the timer, necessary if not 16.

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Required in this object (required): "#pwm-cells"

When the condition matches (then) #

Required in this object (required): "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

ttc0: ttc0@f8001000 {
    interrupt-parent = <&intc>;
    interrupts = <0 10 4>, <0 11 4>, <0 12 4>;
    compatible = "cdns,ttc";
    reg = <0xF8001000 0x1000>;
    clocks = <&cpu_clk 3>;
    timer-width = <32>;
};
pwm: pwm@f8002000 {
    compatible = "cdns,ttc";
    reg = <0xf8002000 0x1000>;
    clocks = <&cpu_clk 3>;
    timer-width = <32>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Cirrus Logic CLPS711X Timer Counter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/cirrus,clps711x-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Shiyan <shc_work@mail.ru>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "cirrus,ep7312-timer"

Item 2

Exact value (const): "cirrus,ep7209-timer"

Rule 2

Exact value (const): "cirrus,ep7209-timer"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@80000300 {
    compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer";
    reg = <0x80000300 0x4>;
    interrupts = <8>;
    clocks = <&clks 5>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Cirrus Logic EP93xx timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/cirrus,ep9301-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "cirrus,ep9301-timer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "cirrus,ep9302-timer", "cirrus,ep9307-timer", "cirrus,ep9312-timer", "cirrus,ep9315-timer"

Item 2

Exact value (const): "cirrus,ep9301-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@80810000 {
  compatible = "cirrus,ep9301-timer";
  reg = <0x80810000 0x100>;
  interrupt-parent = <&vic1>;
  interrupts = <19>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Conexant Digicolor SoCs Timer Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/cnxt,cx92755-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Baruch Siach <baruch@tkos.co.il>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cnxt,cx92755-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Contains 8 interrupts, one for each timer

Array item rules (items) #

Item 1

interrupt for timer 0

Item 2

interrupt for timer 1

Item 3

interrupt for timer 2

Item 4

interrupt for timer 3

Item 5

interrupt for timer 4

Item 6

interrupt for timer 5

Item 7

interrupt for timer 6

Item 8

interrupt for timer 7

clocks — required here #

Maximum number of items (maxItems): 1

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) #

timer@f0000fc0 {
  compatible = "cnxt,cx92755-timer";
  reg = <0xf0000fc0 0x40>;
  interrupts = <19>, <31>, <34>, <35>, <52>, <53>, <54>, <55>;
  clocks = <&main_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

gx6605s SOC Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/csky,gx6605s-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Guo Ren <guoren@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "csky,gx6605s-timer"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@20a000 {
    compatible = "csky,gx6605s-timer";
    reg = <0x0020a000 0x400>;
    clocks = <&dummy_apb_clk>;
    interrupts = <10>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

C-SKY Multi-processors Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/csky,mptimer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Flavio Suligoi <f.suligoi@asem.it>", "Guo Ren <guoren@kernel.org>"

C-SKY multi-processors timer is designed for C-SKY SMP system and the regs are accessed by cpu co-processor 4 registers with mtcr/mfcr.

- PTIM_CTLR "cr<0, 14>" Control reg to start reset timer. - PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg. - PTIM_CCVR "cr<3, 14>" Current counter value reg. - PTIM_LVR "cr<6, 14>" Window value reg to trigger next event.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "csky,mptimer"

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer {
    compatible = "csky,mptimer";
    clocks = <&dummy_apb_clk>;
    interrupts = <16>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

EcoNet EN751221 High Precision Timer (HPT)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/econet,en751221-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Caleb James DeLisle <cjd@cjdns.fr>"

The EcoNet High Precision Timer (HPT) is a timer peripheral found in various EcoNet SoCs, including the EN751221 and EN751627 families. It provides per-VPE count/compare registers and a per-CPU control register, with a single interrupt line using a percpu-devid interrupt mechanism.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "econet,en751221-timer"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "econet,en751627-timer"

Item 2

Exact value (const): "econet,en751221-timer"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — required here #

Maximum number of items (maxItems): 1

A percpu-devid timer interrupt shared across CPUs.

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "econet,en751627-timer"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

VPE timers 0 and 1

Item 2

VPE timers 2 and 3

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

VPE timers 0 and 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@1fbf0400 {
    compatible = "econet,en751627-timer", "econet,en751221-timer";
    reg = <0x1fbf0400 0x100>, <0x1fbe0000 0x100>;
    interrupt-parent = <&intc>;
    interrupts = <30>;
    clocks = <&hpt_clock>;
};
timer@1fbf0400 {
    compatible = "econet,en751221-timer";
    reg = <0x1fbe0400 0x100>;
    interrupt-parent = <&intc>;
    interrupts = <30>;
    clocks = <&hpt_clock>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

EZChip NPS400 Timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/ezchip,nps400-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Noam Camus <noamca@mellanox.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ezchip,nps400-timer0", "ezchip,nps400-timer1"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ezchip,nps400-timer0"

When the condition matches (then) #

Required in this object (required): "interrupts"

Examples (examples) #

timer {
    compatible = "ezchip,nps400-timer0";
    interrupts = <3>;
    clocks = <&sysclk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Faraday FTTMR010 timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/faraday,fttmr010.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>", "Linus Walleij <linusw@kernel.org>"

This timer is a generic IP block from Faraday Technology, embedded in the Cortina Systems Gemini SoCs and other designs.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "moxa,moxart-timer"

Item 2

Exact value (const): "faraday,fttmr010"

Rule 2

Allowed values (enum): "aspeed,ast2400-timer", "aspeed,ast2500-timer", "aspeed,ast2600-timer", "cortina,gemini-timer", "faraday,fttmr010"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

One interrupt per timer

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Peripheral clock

Item 2

External tick clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "PCLK"

Item 2

Exact value (const): "EXTCLK"

resets — not listed as required here #

Maximum number of items (maxItems): 1

syscon — not listed as required here #

System controller phandle for Gemini systems

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Required in this object (required): "compatible", "reg", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "cortina,gemini-timer"

When the condition matches (then) #

Required in this object (required): "syscon"

When the condition does not match (else) #

Properties and child nodes (properties)

syscon — not listed as required here

false — Not permitted by this property rule.

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>

timer@43000000 {
    compatible = "faraday,fttmr010";
    reg = <0x43000000 0x1000>;
    interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
                <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
                <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
    clocks = <&pclk>, <&extclk>;
    clock-names = "PCLK", "EXTCLK";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale FlexTimer Module (FTM) Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/fsl,ftm-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,ftm-timer"

reg — required here #

Array item rules (items) #

Item 1

clock event device

Item 2

clock source device

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

The clocks provided by the SoC to drive the timer, must contain an entry for each entry in clock-names.

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ftm-evt"

Item 2

Exact value (const): "ftm-src"

Item 3

Exact value (const): "ftm-evt-counter-en"

Item 4

Exact value (const): "ftm-src-counter-en"

big-endian — not listed as required here #

true — No constraints added by this property rule.

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/clock/vf610-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>

ftm@400b8000 {
    compatible = "fsl,ftm-timer";
    reg = <0x400b8000 0x1000>,
          <0x400b9000 0x1000>;
    interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>;
    clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en";
    clocks = <&clks VF610_CLK_FTM2>, <&clks VF610_CLK_FTM3>,
        <&clks VF610_CLK_FTM2_EXT_FIX_EN>, <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
    big-endian;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale General-purpose Timers Module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/fsl,gtm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8308-gtm", "fsl,mpc8313-gtm", "fsl,mpc8315-gtm", "fsl,mpc8360-gtm"

Item 2

Exact value (const): "fsl,gtm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8360-qe-gtm", "fsl,mpc8569-qe-gtm"

Item 2

Exact value (const): "fsl,qe-gtm"

Item 3

Exact value (const): "fsl,gtm"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,cpm2-gtm"

Item 2

Exact value (const): "fsl,gtm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Interrupt for timer 1 (e.g. GTM1 or GTM5)

Item 2

Interrupt for timer 2 (e.g. GTM2 or GTM6)

Item 3

Interrupt for timer 3 (e.g. GTM3 or GTM7)

Item 4

Interrupt for timer 4 (e.g. GTM4 or GTM8)

clock-frequency — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "clock-frequency"

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>

timer@500 {
    compatible = "fsl,mpc8360-gtm", "fsl,gtm";
    reg = <0x500 0x40>;
    interrupts = <90 IRQ_TYPE_LEVEL_LOW>,
                 <78 IRQ_TYPE_LEVEL_LOW>,
                 <84 IRQ_TYPE_LEVEL_LOW>,
                 <72 IRQ_TYPE_LEVEL_LOW>;
    /* filled by u-boot */
    clock-frequency = <0>;
};
timer@440 {
    compatible = "fsl,mpc8360-qe-gtm", "fsl,qe-gtm", "fsl,gtm";
    reg = <0x440 0x40>;
    interrupts = <12>, <13>, <14>, <15>;
    /* filled by u-boot */
    clock-frequency = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 15: for SoC GTMs

Line 24: for QE GTMs

Line 32: for CPM2 GTMs (no known examples)

Line 34: - enum:

Line 35: - fsl,<chip>-cpm2-gtm

Freescale i.MX General Purpose Timer (GPT)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/fsl,imxgpt.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx1-gpt"

Rule 2

Exact value (const): "fsl,imx21-gpt"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,imx27-gpt"

Item 2

Exact value (const): "fsl,imx21-gpt"

Rule 4

Exact value (const): "fsl,imx31-gpt"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-gpt", "fsl,imx35-gpt", "fsl,imx50-gpt", "fsl,imx51-gpt", "fsl,imx53-gpt", "fsl,imx6q-gpt"

Item 2

Exact value (const): "fsl,imx31-gpt"

Rule 6

Exact value (const): "fsl,imx6dl-gpt"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sl-gpt", "fsl,imx6sx-gpt", "fsl,imx7d-gpt", "fsl,imx8mp-gpt", "fsl,imxrt1050-gpt", "fsl,imxrt1170-gpt"

Item 2

Exact value (const): "fsl,imx6dl-gpt"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6ul-gpt"

Item 2

Exact value (const): "fsl,imx6sx-gpt"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

SoC GPT ipg clock

Item 2

SoC GPT per clock

Item 3

SoC GPT osc per clock

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "per"

Item 3

Exact value (const): "osc_per"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx6dl-gpt", "fsl,imx6q-gpt"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx27-clock.h>

timer@10003000 {
    compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
    reg = <0x10003000 0x1000>;
    interrupts = <26>;
    clocks = <&clks IMX27_CLK_GPT1_IPG_GATE>,
             <&clks IMX27_CLK_PER1_GATE>;
    clock-names = "ipg", "per";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale MXS Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/fsl,timrot.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,imx23-timrot", "fsl,imx28-timrot"

Item 2

Exact value (const): "fsl,timrot"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

irq for timer0

Item 2

irq for timer1

Item 3

irq for timer2

Item 4

irq for timer3

clocks — required here #

Maximum number of items (maxItems): 1

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) #

timer: timer@80068000 {
    compatible = "fsl,imx28-timrot", "fsl,timrot";
    reg = <0x80068000 0x2000>;
    interrupts = <48>, <49>, <50>, <51>;
    clocks = <&clks 26>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale Periodic Interrupt Timer (PIT)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/fsl,vf610-pit.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

The PIT module is an array of timers that can be used to raise interrupts and trigger DMA channels.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,vf610-pit", "nxp,s32g2-pit"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nxp,s32g3-pit"

Item 2

Exact value (const): "nxp,s32g2-pit"

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 #

Array item rules (items) #

Item 1

Exact value (const): "pit"

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/clock/vf610-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>

timer@40037000 {
    compatible = "fsl,vf610-pit";
    reg = <0x40037000 0x1000>;
    interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks VF610_CLK_PIT>;
    clock-names = "pit";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

HPE GXP Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/hpe,gxp-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nick Hawkins <nick.hawkins@hpe.com>", "Jean-Marie Verdun <verdun@hpe.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "hpe,gxp-timer"

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): "iop"

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) #

timer@c0000000 {
    compatible = "hpe,gxp-timer";
    reg = <0x80 0x16>;
    interrupts = <0>;
    interrupt-parent = <&vic0>;
    clocks = <&iopclk>;
    clock-names = "iop";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Pistachio general-purpose timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/img,pistachio-gptimer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ezequiel Garcia <ezequiel.garcia@imgtec.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "img,pistachio-gptimer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Timer0 interrupt

Item 2

Timer1 interrupt

Item 3

Timer2 interrupt

Item 4

Timer3 interrupt

clocks — required here #

Array item rules (items) #

Item 1

Fast counter clock

Item 2

Slow counter clock

Item 3

Interface clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fast"

Item 2

Exact value (const): "slow"

Item 3

Exact value (const): "sys"

img,cr-periph — required here #

Peripheral control syscon phandle

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "img,cr-periph"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/clock/pistachio-clk.h>

timer@18102000 {
    compatible = "img,pistachio-gptimer";
    reg = <0x18102000 0x100>;
    interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
             <&clk_periph PERIPH_CLK_COUNTER_SLOW>,
             <&cr_periph SYS_CLK_TIMER>;
    clock-names = "fast", "slow", "sys";
    img,cr-periph = <&cr_periph>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

SYSOST in Ingenic XBurst family SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/ingenic,sysost.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>"

The SYSOST in an Ingenic SoC provides one 64bit timer for clocksource and one or more 32bit timers for clockevent.

Properties and child nodes (properties) #

#clock-cells — required here #

Exact value (const): 1

compatible — required here #

Allowed values (enum): "ingenic,x1000-ost", "ingenic,x2000-ost"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "ost"

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "#clock-cells", "compatible", "reg", "clocks", "clock-names", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,x1000-cgu.h>

ost: timer@12000000 {
    compatible = "ingenic,x1000-ost";
    reg = <0x12000000 0x3c>;

    #clock-cells = <1>;

    clocks = <&cgu X1000_CLK_OST>;
    clock-names = "ost";

    interrupt-parent = <&cpuintc>;
    interrupts = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Ingenic SoCs Timer/Counter Unit (TCU)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/ingenic,tcu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

For a description of the TCU hardware and drivers, have a look at Documentation/arch/mips/ingenic-tcu.rst.

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "ingenic,jz4740-tcu", "ingenic,jz4725b-tcu", "ingenic,jz4760-tcu", "ingenic,jz4760b-tcu", "ingenic,jz4770-tcu", "ingenic,jz4780-tcu", "ingenic,x1000-tcu"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^timer@[0-9a-f]+$"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 1

#clock-cells — required here #

Exact value (const): 1

#interrupt-cells — required here #

Exact value (const): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

ranges — not listed as required here #

true — No constraints added by this property rule.

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4740-tcu", "ingenic,jz4725b-tcu", "ingenic,jz4760-tcu", "ingenic,x1000-tcu"

Item 2

Exact value (const): "simple-mfd"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4780-tcu", "ingenic,jz4770-tcu", "ingenic,jz4760b-tcu"

Item 2

Exact value (const): "ingenic,jz4760-tcu"

Item 3

Exact value (const): "simple-mfd"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

RTC clock

Item 2

EXT clock

Item 3

PCLK clock

Item 4

TCU clock

Minimum number of items (minItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rtc"

Item 2

Exact value (const): "ext"

Item 3

Exact value (const): "pclk"

Item 4

Exact value (const): "tcu"

Minimum number of items (minItems): 3

interrupts — required here #

Array item rules (items) #

Item 1

TCU0 interrupt

Item 2

TCU1 interrupt

Item 3

TCU2 interrupt

Minimum number of items (minItems): 1

assigned-clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

assigned-clock-parents — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

assigned-clock-rates — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

ingenic,pwm-channels-mask — not listed as required here #

Bitmask of TCU channels reserved for PWM use.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 255

Default value (default): 252

Properties matching a name pattern (patternProperties) #

^watchdog@[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/watchdog/watchdog.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exactly one of these rules must match (oneOf)

Rule 1

Allowed values (enum): "ingenic,jz4740-watchdog", "ingenic,jz4780-watchdog"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4770-watchdog", "ingenic,jz4760b-watchdog", "ingenic,jz4760-watchdog", "ingenic,jz4725b-watchdog"

Item 2

Exact value (const): "ingenic,jz4740-watchdog"

reg — required here

Maximum number of items (maxItems): 1

clocks — required here

Maximum number of items (maxItems): 1

clock-names — required here

Exact value (const): "wdt"

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

^pwm@[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/pwm/pwm.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exactly one of these rules must match (oneOf)

Rule 1

Allowed values (enum): "ingenic,jz4740-pwm", "ingenic,jz4725b-pwm", "ingenic,x1000-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4760-pwm", "ingenic,jz4760b-pwm", "ingenic,jz4770-pwm", "ingenic,jz4780-pwm"

Item 2

Exact value (const): "ingenic,jz4740-pwm"

reg — required here

Maximum number of items (maxItems): 1

clocks — required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 8

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "timer0"

Item 2

Exact value (const): "timer1"

Item 3

Exact value (const): "timer2"

Item 4

Exact value (const): "timer3"

Item 5

Exact value (const): "timer4"

Item 6

Exact value (const): "timer5"

Item 7

Exact value (const): "timer6"

Item 8

Exact value (const): "timer7"

Minimum number of items (minItems): 6

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

^timer@[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exactly one of these rules must match (oneOf)

Rule 1

Allowed values (enum): "ingenic,jz4725b-ost", "ingenic,jz4760b-ost"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ingenic,jz4760-ost"

Item 2

Exact value (const): "ingenic,jz4725b-ost"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4780-ost", "ingenic,jz4770-ost"

Item 2

Exact value (const): "ingenic,jz4760b-ost"

reg — required here

Maximum number of items (maxItems): 1

clocks — required here

Maximum number of items (maxItems): 1

clock-names — required here

Exact value (const): "ost"

interrupts — required here

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "#clock-cells", "#interrupt-cells", "interrupt-controller", "compatible", "reg", "clocks", "clock-names", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4770-cgu.h>
#include <dt-bindings/clock/ingenic,tcu.h>
tcu: timer@10002000 {
  compatible = "ingenic,jz4770-tcu", "ingenic,jz4760-tcu", "simple-mfd";
  reg = <0x10002000 0x1000>;
  #address-cells = <1>;
  #size-cells = <1>;
  ranges = <0x0 0x10002000 0x1000>;

  #clock-cells = <1>;

  clocks = <&cgu JZ4770_CLK_RTC>,
           <&cgu JZ4770_CLK_EXT>,
           <&cgu JZ4770_CLK_PCLK>;
  clock-names = "rtc", "ext", "pclk";

  interrupt-controller;
  #interrupt-cells = <1>;

  interrupt-parent = <&intc>;
  interrupts = <27 26 25>;

  watchdog: watchdog@0 {
    compatible = "ingenic,jz4770-watchdog", "ingenic,jz4740-watchdog";
    reg = <0x0 0xc>;

    clocks = <&tcu TCU_CLK_WDT>;
    clock-names = "wdt";
  };

  pwm: pwm@40 {
    compatible = "ingenic,jz4770-pwm", "ingenic,jz4740-pwm";
    reg = <0x40 0x80>;

    #pwm-cells = <3>;

    clocks = <&tcu TCU_CLK_TIMER0>,
             <&tcu TCU_CLK_TIMER1>,
             <&tcu TCU_CLK_TIMER2>,
             <&tcu TCU_CLK_TIMER3>,
             <&tcu TCU_CLK_TIMER4>,
             <&tcu TCU_CLK_TIMER5>,
             <&tcu TCU_CLK_TIMER6>,
             <&tcu TCU_CLK_TIMER7>;
    clock-names = "timer0", "timer1", "timer2", "timer3",
            "timer4", "timer5", "timer6", "timer7";
  };

  ost: timer@e0 {
    compatible = "ingenic,jz4770-ost", "ingenic,jz4760b-ost";
    reg = <0xe0 0x20>;

    clocks = <&tcu TCU_CLK_OST>;
    clock-names = "ost";

    interrupts = <15>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Intel IXP4xx XScale Networking Processors Timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/intel,ixp4xx-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

This timer is found in the Intel IXP4xx processors.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "intel,ixp4xx-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Timer 1 interrupt

Item 2

Timer 2 interrupt

Required in this object (required): "compatible", "reg", "interrupts"

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>
timer@c8005000 {
    compatible = "intel,ixp4xx-timer";
    reg = <0xc8005000 0x100>;
    interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2018 Linaro Ltd.

J-Core Programmable Interval Timer and Clocksource

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/jcore,pit.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rich Felker <dalias@libc.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "jcore,pit"

reg — required here #

Memory region(s) for timer/clocksource registers. For SMP, there should be one region per cpu, indexed by the sequential, zero-based hardware cpu number.

interrupts — required here #

An interrupt to assign for the timer. The actual pit core is integrated with the aic and allows the timer interrupt assignment to be programmed by software, but this property is required in order to reserve an interrupt number that doesn't conflict with other devices.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@200 {
    compatible = "jcore,pit";
    reg = <0x200 0x30 0x500 0x30>;
    interrupts = <0x48>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Loongson-1 PWM timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/loongson,ls1x-pwmtimer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"

Loongson-1 PWM timer can be used for system clock source and clock event timers.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "loongson,ls1b-pwmtimer"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/loongson,ls1x-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>
clocksource: timer@1fe5c030 {
    compatible = "loongson,ls1b-pwmtimer";
    reg = <0x1fe5c030 0x10>;

    clocks = <&clkc LS1X_CLKID_APB>;
    interrupt-parent = <&intc0>;
    interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TI-NSPIRE timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/lsi,zevio-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Tang <dt.tangr@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "lsi,zevio-timer"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Timer registers

Item 2

Interrupt acknowledgement registers (optional)

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Required in this object (required): "interrupts"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@900d0000 {
    compatible = "lsi,zevio-timer";
    reg = <0x900D0000 0x1000>, <0x900A0020 0x8>;
    interrupts = <19>;
    clocks = <&timer_clk>;
};
timer@900d0000 {
    compatible = "lsi,zevio-timer";
    reg = <0x900D0000 0x1000>;
    clocks = <&timer_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell Armada 370, 375, 380 and XP Timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/marvell,armada-370-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory Clement <gregory.clement@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "marvell,armada-380-timer"

Item 2

Exact value (const): "marvell,armada-xp-timer"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "marvell,armada-375-timer"

Item 2

Exact value (const): "marvell,armada-370-timer"

Rule 3

Allowed values (enum): "marvell,armada-370-timer", "marvell,armada-xp-timer"

reg — required here #

Array item rules (items) #

Item 1

Global timer registers

Item 2

Local/private timer registers

interrupts — required here #

Array item rules (items) #

Item 1

Global timer interrupt 0

Item 2

Global timer interrupt 1

Item 3

Global timer interrupt 2

Item 4

Global timer interrupt 3

Item 5

First private timer interrupt

Item 6

Second private timer interrupt

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "nbclk"

Item 2

Exact value (const): "fixed"

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.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "marvell,armada-375-timer", "marvell,armada-xp-timer"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — required here

Minimum number of items (minItems): 2

Required in this object (required): "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Maximum number of items (maxItems): 1

Examples (examples) #

timer@20300 {
    compatible = "marvell,armada-xp-timer";
    reg = <0x20300 0x30>, <0x21040 0x30>;
    interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
    clocks = <&coreclk 2>, <&refclk>;
    clock-names = "nbclk", "fixed";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell Orion SoC timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/marvell,orion-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory Clement <gregory.clement@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "marvell,orion-timer"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Timer0 interrupt

Item 2

Timer1 interrupt

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) #

timer@20300 {
    compatible = "marvell,orion-timer";
    reg = <0x20300 0x20>;
    interrupts = <1>, <2>;
    clocks = <&core_clk 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

MediaTek SoC timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/mediatek,timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Matthias Brugger <matthias.bgg@gmail.com>"

MediaTek SoCs have different timers on different platforms, CPUX (ARM/ARM64 System Timer), GPT (General Purpose Timer) and SYST (System Timer).

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6577-timer", "mediatek,mt6765-timer", "mediatek,mt6795-systimer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt2701-timer", "mediatek,mt6572-timer", "mediatek,mt6580-timer", "mediatek,mt6582-timer", "mediatek,mt6589-timer", "mediatek,mt6795-timer", "mediatek,mt7623-timer", "mediatek,mt8127-timer", "mediatek,mt8135-timer", "mediatek,mt8173-timer", "mediatek,mt8516-timer"

Item 2

Exact value (const): "mediatek,mt6577-timer"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7629-timer", "mediatek,mt8183-timer", "mediatek,mt8186-timer", "mediatek,mt8188-timer", "mediatek,mt8192-timer", "mediatek,mt8195-timer", "mediatek,mt8196-timer", "mediatek,mt8365-systimer"

Item 2

Exact value (const): "mediatek,mt6765-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Timer clock

Item 2

RTC or bus clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

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) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@10008000 {
  compatible = "mediatek,mt6577-timer";
  reg = <0x10008000 0x80>;
  interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
  clocks = <&system_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 25: GPT Timers

Line 40: SYST Timers

Marvell MMP Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/mrvl,mmp-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Lezcano <daniel.lezcano@linaro.org>", "Thomas Gleixner <tglx@kernel.org>", "Rob Herring <robh@kernel.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^timer@[a-f0-9]+$"

compatible — required here #

Exact value (const): "mrvl,mmp-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@d4014000 {
    compatible = "mrvl,mmp-timer";
    reg = <0xd4014000 0x100>;
    interrupts = <13>;
    clocks = <&coreclk 2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Mstar MSC313e Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/mstar,msc313e-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Palmer <daniel@0x0f.com>", "Romain Perier <romain.perier@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mstar,msc313e-timer", "sstar,ssd20xd-timer"

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

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) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@6040 {
    compatible = "mstar,msc313e-timer";
    reg = <0x6040 0x40>;
    clocks = <&xtal_div2>;
    interrupts-extended = <&intc_fiq GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Nuvoton NPCM7xx timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nuvoton,npcm7xx-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jonathan Neuschäfer <j.neuschaefer@gmx.net>", "Tomer Maimon <tmaimon77@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,wpcm450-timer", "nuvoton,npcm750-timer", "nuvoton,npcm845-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

The timer interrupt of timer 0

clocks — required here #

Array item rules (items) #

Item 1

The reference clock for timer 0

Item 2

The reference clock for timer 1

Item 3

The reference clock for timer 2

Item 4

The reference clock for timer 3

Item 5

The reference clock for timer 4

Minimum number of items (minItems): 1

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) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
timer@f0008000 {
    compatible = "nuvoton,npcm750-timer";
    interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
    reg = <0xf0008000 0x50>;
    clocks = <&clk NPCM7XX_CLK_TIMER>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 16: for Hermon WPCM450

Line 17: for Poleg NPCM750

Line 18: for Arbel NPCM845

NVIDIA Tegra timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nvidia,tegra-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stephen Warren <swarren@nvidia.com>"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra210-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 14

A list of 14 interrupts; one per each timer channels 0 through 13

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra114-timer", "nvidia,tegra124-timer", "nvidia,tegra132-timer"

Item 2

Exact value (const): "nvidia,tegra30-timer"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra30-timer"

Item 2

Exact value (const): "nvidia,tegra20-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 6

A list of 6 interrupts; one per each of timer channels 1 through 5, and one for the shared interrupt for the remaining channels.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "nvidia,tegra20-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

A list of 4 interrupts; one per timer channel.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra210-timer"

The Tegra210 timer provides fourteen 29-bit timer counters and one 32-bit timestamp counter. The TMRs run at either a fixed 1 MHz clock rate derived from the oscillator clock (TMR0-TMR9) or directly at the oscillator clock (TMR10-TMR13). Each TMR can be programmed to generate one-shot, periodic, or watchdog interrupts.

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra114-timer", "nvidia,tegra124-timer", "nvidia,tegra132-timer"

Item 2

Exact value (const): "nvidia,tegra30-timer"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra30-timer"

Item 2

Exact value (const): "nvidia,tegra20-timer"

The Tegra30 timer provides ten 29-bit timer channels, a single 32-bit free running counter, and 5 watchdog modules. The first two channels may also trigger a legacy watchdog reset.

Rule 4

Exact value (const): "nvidia,tegra20-timer"

The Tegra20 timer provides four 29-bit timer channels and a single 32-bit free running counter. The first two channels may also trigger a watchdog reset.

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "timer"

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) #

#include <dt-bindings/interrupt-controller/irq.h>
timer@60005000 {
    compatible = "nvidia,tegra30-timer", "nvidia,tegra20-timer";
    reg = <0x60005000 0x400>;
    interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
                 <0 1 IRQ_TYPE_LEVEL_HIGH>,
                 <0 41 IRQ_TYPE_LEVEL_HIGH>,
                 <0 42 IRQ_TYPE_LEVEL_HIGH>,
                 <0 121 IRQ_TYPE_LEVEL_HIGH>,
                 <0 122 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&tegra_car 214>;
};
#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

timer@60005000 {
    compatible = "nvidia,tegra210-timer";
    reg = <0x60005000 0x400>;
    interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&tegra_car TEGRA210_CLK_TIMER>;
    clock-names = "timer";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Line 21: Either a single combined interrupt or up to 14 individual interrupts

Line 43: Either a single combined interrupt or up to 6 individual interrupts

Line 57: Either a single combined interrupt or up to 4 individual interrupts

NVIDIA Tegra186 timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nvidia,tegra186-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>"

The Tegra timer provides 29-bit timer counters and a 32-bit timestamp counter. Each NV timer selects its timing reference signal from the 1 MHz reference generated by USEC, TSC or either clk_m or OSC. Each TMR can be programmed to generate one-shot, periodic, or watchdog interrupts.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nvidia,tegra186-timer"

The Tegra186 timer provides ten 29-bit timer counters.

Rule 2

Exact value (const): "nvidia,tegra234-timer"

The Tegra234 timer provides sixteen 29-bit timer counters.

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

true — No constraints added by this property rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra186-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 10

One per each timer channels 0 through 9.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra234-timer"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 16

One per each timer channels 0 through 15.

Required in this object (required): "compatible", "reg", "interrupts"

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/interrupt-controller/irq.h>

timer@3010000 {
    compatible = "nvidia,tegra186-timer";
    reg = <0x03010000 0x000e0000>;
    interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

timer@2080000 {
    compatible = "nvidia,tegra234-timer";
    reg = <0x02080000 0x00121000>;
    interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP LPC3220 timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nxp,lpc3220-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

The NXP LPC3220 timer is used on a wide range of NXP SoCs. This includes LPC32xx, LPC178x, LPC18xx and LPC43xx parts.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc3220-timer"

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): "timerclk"

resets — 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/clock/lpc32xx-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>

timer@4004c000 {
    compatible = "nxp,lpc3220-timer";
    reg = <0x4004c000 0x1000>;
    interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
    clocks = <&clk LPC32XX_CLK_TIMER1>;
    clock-names = "timerclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP System Timer Module (STM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nxp,s32g2-stm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Lezcano <daniel.lezcano@kernel.org>"

The System Timer Module supports commonly required system and application software timing functions. STM includes a 32-bit count-up timer and four 32-bit compare channels with a separate interrupt source for each channel. The timer is driven by the STM module clock divided by an 8-bit prescale value.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nxp,s32g2-stm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nxp,s32g3-stm"

Item 2

Exact value (const): "nxp,s32g2-stm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Counter clock

Item 2

Module clock

Item 3

Register clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "counter"

Item 2

Exact value (const): "module"

Item 3

Exact value (const): "register"

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>

timer@4011c000 {
    compatible = "nxp,s32g2-stm";
    reg = <0x4011c000 0x3000>;
    interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks 0x3b>, <&clks 0x3c>, <&clks 0x3c>;
    clock-names = "counter", "module", "register";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP System Counter Module(sys_ctr)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nxp,sysctr-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bai Ping <ping.bai@nxp.com>"

The system counter(sys_ctr) is a programmable system counter which provides a shared time base to Cortex A15, A7, A53, A73, etc. it is intended for use in applications where the counter is always powered and support multiple, unrelated clocks. The compare frame inside can be used for timer purpose.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nxp,imx95-sysctr-timer", "nxp,sysctr-timer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nxp,imx94-sysctr-timer"

Item 2

Exact value (const): "nxp,imx95-sysctr-timer"

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): "per"

nxp,no-divider — not listed as required here #

if present, means there is no internal base clk divider.

Value type (type): "boolean"

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>

timer@306a0000 {
    compatible = "nxp,sysctr-timer";
    reg = <0x306a0000 0x20000>;
    clocks = <&clk_8m>;
    clock-names = "per";
    interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
 };

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP Low Power Timer/Pulse Width Modulation Module (TPM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"

The Timer/PWM Module (TPM) supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. The counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. TPM can support global counter bus where one TPM drives the counter bus for the others, provided bit width is the same.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx7ulp-tpm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,imx8ulp-tpm"

Item 2

Exact value (const): "fsl,imx7ulp-tpm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

SoC TPM ipg clock

Item 2

SoC TPM per clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "per"

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/clock/imx7ulp-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@40260000 {
    compatible = "fsl,imx7ulp-tpm";
    reg = <0x40260000 0x1000>;
    interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
             <&pcc2 IMX7ULP_CLK_LPTPM5>;
    clock-names = "ipg", "per";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

System tick counter present in Ralink family SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/ralink,cevt-systick.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ralink,cevt-systick"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

systick@d00 {
    compatible = "ralink,cevt-systick";
    reg = <0xd00 0x10>;

    interrupt-parent = <&cpuintc>;
    interrupts = <7>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Timer present in Ralink family SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/ralink,rt2880-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ralink,rt2880-timer"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@100 {
    compatible = "ralink,rt2880-timer";
    reg = <0x100 0x20>;

    clocks = <&sysc 3>;

    interrupt-parent = <&intc>;
    interrupts = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

RDA Micro RDA8810PL Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/rda,8810pl-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rda,8810pl-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hwtimer"

Item 2

Exact value (const): "ostimer"

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-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/irq.h>

timer@20910000 {
  compatible = "rda,8810pl-timer";
  reg = <0x20910000 0x1000>;
  interrupts = <16 IRQ_TYPE_LEVEL_HIGH>,
               <17 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "hwtimer", "ostimer";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Realtek Otto SoCs Timer/Counter

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/realtek,otto-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Realtek SoCs support a number of timers/counters. These are used as a per CPU clock event generator and an overall CPU clocksource.

Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^timer@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "realtek,rtl9302-timer"

Item 2

Exact value (const): "realtek,otto-timer"

reg — required here #

Array item rules (items) #

Item 1

timer0 registers

Item 2

timer1 registers

Item 3

timer2 registers

Item 4

timer3 registers

Item 5

timer4 registers

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

timer0 interrupt

Item 2

timer1 interrupt

Item 3

timer2 interrupt

Item 4

timer3 interrupt

Item 5

timer4 interrupt

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@3200 {
  compatible = "realtek,rtl9302-timer", "realtek,otto-timer";
  reg = <0x3200 0x10>, <0x3210 0x10>, <0x3220 0x10>,
        <0x3230 0x10>, <0x3240 0x10>;

  interrupt-parent = <&intc>;
  interrupts = <7>, <8>, <9>, <10>, <11>;
  clocks = <&lx_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Realtek System Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/realtek,rtd1625-systimer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Hao-Wen Ting <haowen.ting@realtek.com>"

The Realtek SYSTIMER (System Timer) is a 64-bit global hardware counter operating at a fixed 1MHz frequency. Thanks to its compare match interrupt capability, the timer natively supports oneshot mode for tick broadcast functionality.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "realtek,rtd1625-systimer"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "realtek,rtd1635-systimer"

Item 2

Exact value (const): "realtek,rtd1625-systimer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

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>

timer@89420 {
    compatible = "realtek,rtd1635-systimer",
                 "realtek,rtd1625-systimer";
    reg = <0x89420 0x18>;
    interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Renesas Compare Match Timer (CMT)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,cmt.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"

The CMT is a multi-channel 16/32/48-bit timer/counter with configurable clock inputs and programmable compare match. Channels share hardware resources but their counter and compare match values are independent. A particular CMT instance can implement only a subset of the channels supported by the CMT model. Channel indices represent the hardware position of the channel in the CMT and don't match the channel numbers in the datasheets.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a7740-cmt0", "renesas,r8a7740-cmt1", "renesas,r8a7740-cmt2", "renesas,r8a7740-cmt3", "renesas,r8a7740-cmt4", "renesas,sh73a0-cmt0", "renesas,sh73a0-cmt1", "renesas,sh73a0-cmt2", "renesas,sh73a0-cmt3", "renesas,sh73a0-cmt4"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a73a4-cmt0", "renesas,r8a7742-cmt0", "renesas,r8a7743-cmt0", "renesas,r8a7744-cmt0", "renesas,r8a7745-cmt0", "renesas,r8a77470-cmt0", "renesas,r8a7790-cmt0", "renesas,r8a7791-cmt0", "renesas,r8a7792-cmt0", "renesas,r8a7793-cmt0", "renesas,r8a7794-cmt0"

Item 2

Exact value (const): "renesas,rcar-gen2-cmt0"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a73a4-cmt1", "renesas,r8a7742-cmt1", "renesas,r8a7743-cmt1", "renesas,r8a7744-cmt1", "renesas,r8a7745-cmt1", "renesas,r8a77470-cmt1", "renesas,r8a7790-cmt1", "renesas,r8a7791-cmt1", "renesas,r8a7792-cmt1", "renesas,r8a7793-cmt1", "renesas,r8a7794-cmt1"

Item 2

Exact value (const): "renesas,rcar-gen2-cmt1"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a774a1-cmt0", "renesas,r8a774b1-cmt0", "renesas,r8a774c0-cmt0", "renesas,r8a774e1-cmt0", "renesas,r8a7795-cmt0", "renesas,r8a7796-cmt0", "renesas,r8a77961-cmt0", "renesas,r8a77965-cmt0", "renesas,r8a77970-cmt0", "renesas,r8a77980-cmt0", "renesas,r8a77990-cmt0", "renesas,r8a77995-cmt0"

Item 2

Exact value (const): "renesas,rcar-gen3-cmt0"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a774a1-cmt1", "renesas,r8a774b1-cmt1", "renesas,r8a774c0-cmt1", "renesas,r8a774e1-cmt1", "renesas,r8a7795-cmt1", "renesas,r8a7796-cmt1", "renesas,r8a77961-cmt1", "renesas,r8a77965-cmt1", "renesas,r8a77970-cmt1", "renesas,r8a77980-cmt1", "renesas,r8a77990-cmt1", "renesas,r8a77995-cmt1"

Item 2

Exact value (const): "renesas,rcar-gen3-cmt1"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a779a0-cmt0", "renesas,r8a779f0-cmt0", "renesas,r8a779g0-cmt0", "renesas,r8a779h0-cmt0"

Item 2

Exact value (const): "renesas,rcar-gen4-cmt0"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a779a0-cmt1", "renesas,r8a779f0-cmt1", "renesas,r8a779g0-cmt1", "renesas,r8a779h0-cmt1"

Item 2

Exact value (const): "renesas,rcar-gen4-cmt1"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "fck"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen2-cmt0", "renesas,rcar-gen3-cmt0", "renesas,rcar-gen4-cmt0"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen2-cmt1", "renesas,rcar-gen3-cmt1", "renesas,rcar-gen4-cmt1"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
cmt0: timer@ffca0000 {
    compatible = "renesas,r8a7790-cmt0", "renesas,rcar-gen2-cmt0";
    reg = <0xffca0000 0x1004>;
    interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 124>;
    clock-names = "fck";
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 124>;
};

cmt1: timer@e6130000 {
    compatible = "renesas,r8a7790-cmt1", "renesas,rcar-gen2-cmt1";
    reg = <0xe6130000 0x1004>;
    interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 329>;
    clock-names = "fck";
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 329>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 28: 32-bit CMT0 on R-Mobile A1

Line 29: 48-bit CMT1 on R-Mobile A1

Line 30: 32-bit CMT2 on R-Mobile A1

Line 31: 32-bit CMT3 on R-Mobile A1

Line 32: 32-bit CMT4 on R-Mobile A1

Line 33: 32-bit CMT0 on SH-Mobile AG5

Line 34: 48-bit CMT1 on SH-Mobile AG5

Line 35: 32-bit CMT2 on SH-Mobile AG5

Line 36: 32-bit CMT3 on SH-Mobile AG5

Line 37: 32-bit CMT4 on SH-Mobile AG5

Line 41: 32-bit CMT0 on R-Mobile APE6

Line 42: 32-bit CMT0 on RZ/G1H

Line 43: 32-bit CMT0 on RZ/G1M

Line 44: 32-bit CMT0 on RZ/G1N

Line 45: 32-bit CMT0 on RZ/G1E

Line 46: 32-bit CMT0 on RZ/G1C

Line 47: 32-bit CMT0 on R-Car H2

Line 48: 32-bit CMT0 on R-Car M2-W

Line 49: 32-bit CMT0 on R-Car V2H

Line 50: 32-bit CMT0 on R-Car M2-N

Line 51: 32-bit CMT0 on R-Car E2

Line 52: 32-bit CMT0 on R-Mobile APE6, R-Car Gen2 and RZ/G1

Line 56: 48-bit CMT1 on R-Mobile APE6

Line 57: 48-bit CMT1 on RZ/G1H

Line 58: 48-bit CMT1 on RZ/G1M

Line 59: 48-bit CMT1 on RZ/G1N

Line 60: 48-bit CMT1 on RZ/G1E

Line 61: 48-bit CMT1 on RZ/G1C

Line 62: 48-bit CMT1 on R-Car H2

Line 63: 48-bit CMT1 on R-Car M2-W

Line 64: 48-bit CMT1 on R-Car V2H

Line 65: 48-bit CMT1 on R-Car M2-N

Line 66: 48-bit CMT1 on R-Car E2

Line 67: 48-bit CMT1 on R-Mobile APE6, R-Car Gen2 and RZ/G1

Line 71: 32-bit CMT0 on RZ/G2M

Line 72: 32-bit CMT0 on RZ/G2N

Line 73: 32-bit CMT0 on RZ/G2E

Line 74: 32-bit CMT0 on RZ/G2H

Line 75: 32-bit CMT0 on R-Car H3

Line 76: 32-bit CMT0 on R-Car M3-W

Line 77: 32-bit CMT0 on R-Car M3-W+

Line 78: 32-bit CMT0 on R-Car M3-N

Line 79: 32-bit CMT0 on R-Car V3M

Line 80: 32-bit CMT0 on R-Car V3H

Line 81: 32-bit CMT0 on R-Car E3

Line 82: 32-bit CMT0 on R-Car D3

Line 83: 32-bit CMT0 on R-Car Gen3 and RZ/G2

Line 87: 48-bit CMT on RZ/G2M

Line 88: 48-bit CMT on RZ/G2N

Line 89: 48-bit CMT on RZ/G2E

Line 90: 48-bit CMT on RZ/G2H

Line 91: 48-bit CMT on R-Car H3

Line 92: 48-bit CMT on R-Car M3-W

Line 93: 48-bit CMT on R-Car M3-W+

Line 94: 48-bit CMT on R-Car M3-N

Line 95: 48-bit CMT on R-Car V3M

Line 96: 48-bit CMT on R-Car V3H

Line 97: 48-bit CMT on R-Car E3

Line 98: 48-bit CMT on R-Car D3

Line 99: 48-bit CMT on R-Car Gen3 and RZ/G2

Line 103: 32-bit CMT0 on R-Car V3U

Line 104: 32-bit CMT0 on R-Car S4-8

Line 105: 32-bit CMT0 on R-Car V4H

Line 106: 32-bit CMT0 on R-Car V4M

Line 107: 32-bit CMT0 on R-Car Gen4

Line 111: 48-bit CMT on R-Car V3U

Line 112: 48-bit CMT on R-Car S4-8

Line 113: 48-bit CMT on R-Car V4H

Line 114: 48-bit CMT on R-Car V4M

Line 115: 48-bit CMT on R-Car Gen4

Renesas EMMA Mobile System Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,em-sti.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Magnus Damm <magnus.damm@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "renesas,em-sti"

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): "sclk"

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>
timer@e0180000 {
    compatible = "renesas,em-sti";
    reg = <0xe0180000 0x54>;
    interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&sti_sclk>;
    clock-names = "sclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Renesas Multi-Function Timer Pulse Unit 2 (MTU2)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,mtu2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"

The MTU2 is a multi-purpose, multi-channel timer/counter with configurable clock inputs and programmable compare match. Channels share hardware resources but their counter and compare match value are independent. The MTU2 hardware supports five channels indexed from 0 to 4.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,mtu2-r7s72100"

Item 2

Exact value (const): "renesas,mtu2"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

One entry for each enabled channel.

interrupt-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "tgi0a"

Item 2

Exact value (const): "tgi1a"

Item 3

Exact value (const): "tgi2a"

Item 4

Exact value (const): "tgi3a"

Item 5

Exact value (const): "tgi4a"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "fck"

power-domains — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r7s72100-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mtu2: timer@fcff0000 {
    compatible = "renesas,mtu2-r7s72100", "renesas,mtu2";
    reg = <0xfcff0000 0x400>;
    interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "tgi0a";
    clocks = <&mstp3_clks R7S72100_CLK_MTU2>;
    clock-names = "fck";
    power-domains = <&cpg_clocks>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 24: RZ/A1H

Renesas OS Timer (OSTM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,ostm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chris Brandt <chris.brandt@renesas.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"

The OSTM is a multi-channel 32-bit timer/counter with fixed clock source that can operate in either interval count down timer or free-running compare match mode. Channels are independent from each other.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r7s72100-ostm", "renesas,r7s9210-ostm", "renesas,r9a07g043-ostm", "renesas,r9a07g044-ostm", "renesas,r9a07g054-ostm", "renesas,r9a09g056-ostm", "renesas,r9a09g057-ostm"

Item 2

Exact value (const): "renesas,ostm"

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

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

This rule must not match (not)

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r7s72100-ostm", "renesas,r7s9210-ostm"

When the condition matches (then) #

Required in this object (required): "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r7s72100-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ostm0: timer@fcfec000 {
    compatible = "renesas,r7s72100-ostm", "renesas,ostm";
    reg = <0xfcfec000 0x30>;
    interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>;
    clocks = <&mstp5_clks R7S72100_CLK_OSTM0>;
    power-domains = <&cpg_clocks>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 24: RZ/A1H

Line 25: RZ/A2M

Line 26: RZ/G2UL and RZ/Five

Line 27: RZ/G2{L,LC}

Line 28: RZ/V2L

Line 29: RZ/V2N

Line 30: RZ/V2H(P)

Line 31: Generic

Renesas RZ/G2L Multi-Function Timer Pulse Unit 3 (MTU3a)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,rz-mtu3.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"

This hardware block consists of eight 16-bit timer channels and one
32-bit timer channel. It supports the following specifications:
  - Pulse input/output: 28 lines max
  - Pulse input 3 lines
  - Count clock 11 clocks for each channel (14 clocks for MTU0, 12 clocks
    for MTU2, and 10 clocks for MTU5, four clocks for MTU1-MTU2 combination
    (when LWA = 1))
  - Operating frequency Up to 100 MHz
  - Available operations [MTU0 to MTU4, MTU6, MTU7, and MTU8]
      - Waveform output on compare match
      - Input capture function (noise filter setting available)
      - Counter-clearing operation
      - Simultaneous writing to multiple timer counters (TCNT)
        (excluding MTU8)
      - Simultaneous clearing on compare match or input capture
        (excluding MTU8)
      - Simultaneous input and output to registers in synchronization with
        counter operations (excluding MTU8)
      - Up to 12-phase PWM output in combination with synchronous operation
        (excluding MTU8)
  - [MTU0 MTU3, MTU4, MTU6, MTU7, and MTU8]
      - Buffer operation specifiable
  - [MTU1, MTU2]
      - Phase counting mode can be specified independently
      - 32-bit phase counting mode can be specified for interlocked operation
        of MTU1 and MTU2 (when TMDR3.LWA = 1)
      - Cascade connection operation available
  - [MTU3, MTU4, MTU6, and MTU7]
      - Through interlocked operation of MTU3/4 and MTU6/7, the positive and
        negative signals in six phases (12 phases in total) can be output in
        complementary PWM and reset-synchronized PWM operation
      - In complementary PWM mode, values can be transferred from buffer
        registers to temporary registers at crests and troughs of the timer-
        counter values or when the buffer registers (TGRD registers in MTU4
        and MTU7) are written to
      - Double-buffering selectable in complementary PWM mode
  - [MTU3 and MTU4]
      - Through interlocking with MTU0, a mode for driving AC synchronous
        motors (brushless DC motors) by using complementary PWM output and
        reset-synchronized PWM output is settable and allows the selection
        of two types of waveform output (chopping or level)
  - [MTU5]
      - Capable of operation as a dead-time compensation counter
  - [MTU0/MTU5, MTU1, MTU2, and MTU8]
      - 32-bit phase counting mode specifiable by combining MTU1 and MTU2 and
        through interlocked operation with MTU0/MTU5 and MTU8
  - Interrupt-skipping function
      - In complementary PWM mode, interrupts on crests and troughs of counter
        values and triggers to start conversion by the A/D converter can be
        skipped
  - Interrupt sources: 43 sources.
  - Buffer operation:
      - Automatic transfer of register data (transfer from the buffer
        register to the timer register).
  - Trigger generation
      - A/D converter start triggers can be generated
      - A/D converter start request delaying function enables A/D converter
        to be started with any desired timing and to be synchronized with
        PWM output
  - Low power consumption function
      - The MTU3a can be placed in the module-stop state
  There are two phase counting modes. 16-bit phase counting mode in which
  MTU1 and MTU2 operate independently, and cascade connection 32-bit phase
  counting mode in which MTU1 and MTU2 are cascaded.
  In phase counting mode, the phase difference between two external input
  clocks is detected and the corresponding TCNT is incremented or
  decremented.
  The below counters are supported
    count0 - MTU1 16-bit phase counting
    count1 - MTU2 16-bit phase counting
    count2 - MTU1+ MTU2 32-bit phase counting
  The module supports PWM mode{1,2}, Reset-synchronized PWM mode and
  complementary PWM mode{1,2,3}.
  In complementary PWM mode, six positive-phase and six negative-phase PWM
  waveforms (12 phases in total) with dead time can be output by
  combining MTU{3,4} and MTU{6,7}.
  The below pwm channels are supported in pwm mode 1.
    pwm0  - MTU0.MTIOC0A PWM mode 1
    pwm1  - MTU0.MTIOC0C PWM mode 1
    pwm2  - MTU1.MTIOC1A PWM mode 1
    pwm3  - MTU2.MTIOC2A PWM mode 1
    pwm4  - MTU3.MTIOC3A PWM mode 1
    pwm5  - MTU3.MTIOC3C PWM mode 1
    pwm6  - MTU4.MTIOC4A PWM mode 1
    pwm7  - MTU4.MTIOC4C PWM mode 1
    pwm8  - MTU6.MTIOC6A PWM mode 1
    pwm9  - MTU6.MTIOC6C PWM mode 1
    pwm10 - MTU7.MTIOC7A PWM mode 1
    pwm11 - MTU7.MTIOC7C PWM mode 1

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r9a07g043-mtu3", "renesas,r9a07g044-mtu3", "renesas,r9a07g054-mtu3"

Item 2

Exact value (const): "renesas,rz-mtu3"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

MTU0.TGRA input capture/compare match

Item 2

MTU0.TGRB input capture/compare match

Item 3

MTU0.TGRC input capture/compare match

Item 4

MTU0.TGRD input capture/compare match

Item 5

MTU0.TCNT overflow

Item 6

MTU0.TGRE compare match

Item 7

MTU0.TGRF compare match

Item 8

MTU1.TGRA input capture/compare match

Item 9

MTU1.TGRB input capture/compare match

Item 10

MTU1.TCNT overflow

Item 11

MTU1.TCNT underflow

Item 12

MTU2.TGRA input capture/compare match

Item 13

MTU2.TGRB input capture/compare match

Item 14

MTU2.TCNT overflow

Item 15

MTU2.TCNT underflow

Item 16

MTU3.TGRA input capture/compare match

Item 17

MTU3.TGRB input capture/compare match

Item 18

MTU3.TGRC input capture/compare match

Item 19

MTU3.TGRD input capture/compare match

Item 20

MTU3.TCNT overflow

Item 21

MTU4.TGRA input capture/compare match

Item 22

MTU4.TGRB input capture/compare match

Item 23

MTU4.TGRC input capture/compare match

Item 24

MTU4.TGRD input capture/compare match

Item 25

MTU4.TCNT overflow/underflow

Item 26

MTU5.TGRU input capture/compare match

Item 27

MTU5.TGRV input capture/compare match

Item 28

MTU5.TGRW input capture/compare match

Item 29

MTU6.TGRA input capture/compare match

Item 30

MTU6.TGRB input capture/compare match

Item 31

MTU6.TGRC input capture/compare match

Item 32

MTU6.TGRD input capture/compare match

Item 33

MTU6.TCNT overflow

Item 34

MTU7.TGRA input capture/compare match

Item 35

MTU7.TGRB input capture/compare match

Item 36

MTU7.TGRC input capture/compare match

Item 37

MTU7.TGRD input capture/compare match

Item 38

MTU7.TCNT overflow/underflow

Item 39

MTU8.TGRA input capture/compare match

Item 40

MTU8.TGRB input capture/compare match

Item 41

MTU8.TGRC input capture/compare match

Item 42

MTU8.TGRD input capture/compare match

Item 43

MTU8.TCNT overflow

Item 44

MTU8.TCNT underflow

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tgia0"

Item 2

Exact value (const): "tgib0"

Item 3

Exact value (const): "tgic0"

Item 4

Exact value (const): "tgid0"

Item 5

Exact value (const): "tciv0"

Item 6

Exact value (const): "tgie0"

Item 7

Exact value (const): "tgif0"

Item 8

Exact value (const): "tgia1"

Item 9

Exact value (const): "tgib1"

Item 10

Exact value (const): "tciv1"

Item 11

Exact value (const): "tciu1"

Item 12

Exact value (const): "tgia2"

Item 13

Exact value (const): "tgib2"

Item 14

Exact value (const): "tciv2"

Item 15

Exact value (const): "tciu2"

Item 16

Exact value (const): "tgia3"

Item 17

Exact value (const): "tgib3"

Item 18

Exact value (const): "tgic3"

Item 19

Exact value (const): "tgid3"

Item 20

Exact value (const): "tciv3"

Item 21

Exact value (const): "tgia4"

Item 22

Exact value (const): "tgib4"

Item 23

Exact value (const): "tgic4"

Item 24

Exact value (const): "tgid4"

Item 25

Exact value (const): "tciv4"

Item 26

Exact value (const): "tgiu5"

Item 27

Exact value (const): "tgiv5"

Item 28

Exact value (const): "tgiw5"

Item 29

Exact value (const): "tgia6"

Item 30

Exact value (const): "tgib6"

Item 31

Exact value (const): "tgic6"

Item 32

Exact value (const): "tgid6"

Item 33

Exact value (const): "tciv6"

Item 34

Exact value (const): "tgia7"

Item 35

Exact value (const): "tgib7"

Item 36

Exact value (const): "tgic7"

Item 37

Exact value (const): "tgid7"

Item 38

Exact value (const): "tciv7"

Item 39

Exact value (const): "tgia8"

Item 40

Exact value (const): "tgib8"

Item 41

Exact value (const): "tgic8"

Item 42

Exact value (const): "tgid8"

Item 43

Exact value (const): "tciv8"

Item 44

Exact value (const): "tciu8"

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): 2

Deprecated (deprecated): true

Rule 2

Exact value (const): 3

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "power-domains", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r9a07g044-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

mtu3: timer@10001200 {
  compatible = "renesas,r9a07g044-mtu3", "renesas,rz-mtu3";
  reg = <0x10001200 0xb00>;
  interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 171 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 172 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 173 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 174 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 175 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 176 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 177 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 178 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 179 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 180 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 181 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 182 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 183 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 184 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 185 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 186 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 187 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 188 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 192 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 194 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 200 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 201 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 202 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 204 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 206 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 207 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 211 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 212 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 213 IRQ_TYPE_EDGE_RISING>;
  interrupt-names = "tgia0", "tgib0", "tgic0", "tgid0", "tciv0", "tgie0",
                    "tgif0",
                    "tgia1", "tgib1", "tciv1", "tciu1",
                    "tgia2", "tgib2", "tciv2", "tciu2",
                    "tgia3", "tgib3", "tgic3", "tgid3", "tciv3",
                    "tgia4", "tgib4", "tgic4", "tgid4", "tciv4",
                    "tgiu5", "tgiv5", "tgiw5",
                    "tgia6", "tgib6", "tgic6", "tgid6", "tciv6",
                    "tgia7", "tgib7", "tgic7", "tgid7", "tciv7",
                    "tgia8", "tgib8", "tgic8", "tgid8", "tciv8", "tciu8";
  clocks = <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>;
  power-domains = <&cpg>;
  resets = <&cpg R9A07G044_MTU_X_PRESET_MTU3>;
  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 112: RZ/{G2UL,Five}

Line 113: RZ/G2{L,LC}

Line 114: RZ/V2L

Renesas R-Mobile/R-Car Timer Unit (TMU)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,tmu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"

The TMU is a 32-bit timer/counter with configurable clock inputs and programmable compare match. Channels share hardware resources but their counter and compare match value are independent. The TMU hardware supports up to three channels.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,tmu-r8a73a4", "renesas,tmu-r8a7740", "renesas,tmu-r8a7742", "renesas,tmu-r8a7743", "renesas,tmu-r8a7744", "renesas,tmu-r8a7745", "renesas,tmu-r8a77470", "renesas,tmu-r8a774a1", "renesas,tmu-r8a774b1", "renesas,tmu-r8a774c0", "renesas,tmu-r8a774e1", "renesas,tmu-r8a7778", "renesas,tmu-r8a7779", "renesas,tmu-r8a7790", "renesas,tmu-r8a7791", "renesas,tmu-r8a7792", "renesas,tmu-r8a7793", "renesas,tmu-r8a7794", "renesas,tmu-r8a7795", "renesas,tmu-r8a7796", "renesas,tmu-r8a77961", "renesas,tmu-r8a77965", "renesas,tmu-r8a77970", "renesas,tmu-r8a77980", "renesas,tmu-r8a77990", "renesas,tmu-r8a77995", "renesas,tmu-r8a779a0", "renesas,tmu-r8a779f0", "renesas,tmu-r8a779g0", "renesas,tmu-r8a779h0"

Item 2

Exact value (const): "renesas,tmu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Underflow interrupt, channel 0

Item 2

Underflow interrupt, channel 1

Item 3

Underflow interrupt, channel 2

Item 4

Input capture interrupt, channel 2

interrupt-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "tuni0"

Item 2

Exact value (const): "tuni1"

Item 3

Exact value (const): "tuni2"

Item 4

Exact value (const): "ticpi2"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "fck"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

#renesas,channels — not listed as required here #

Number of channels implemented by the timer.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 2, 3

Default value (default): 3

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains"

Condition (if) #

This rule must not match (not) #

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,tmu-r8a73a4", "renesas,tmu-r8a7740", "renesas,tmu-r8a7778", "renesas,tmu-r8a7779"

When the condition matches (then) #

Required in this object (required): "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7779-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7779-sysc.h>
tmu0: timer@ffd80000 {
    compatible = "renesas,tmu-r8a7779", "renesas,tmu";
    reg = <0xffd80000 0x30>;
    interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2";
    clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
    clock-names = "fck";
    power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
    #renesas,channels = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 24: R-Mobile APE6

Line 25: R-Mobile A1

Line 26: RZ/G1H

Line 27: RZ/G1M

Line 28: RZ/G1N

Line 29: RZ/G1E

Line 30: RZ/G1C

Line 31: RZ/G2M

Line 32: RZ/G2N

Line 33: RZ/G2E

Line 34: RZ/G2H

Line 35: R-Car M1A

Line 36: R-Car H1

Line 37: R-Car H2

Line 38: R-Car M2-W

Line 39: R-Car V2H

Line 40: R-Car M2-N

Line 41: R-Car E2

Line 42: R-Car H3

Line 43: R-Car M3-W

Line 44: R-Car M3-W+

Line 45: R-Car M3-N

Line 46: R-Car V3M

Line 47: R-Car V3H

Line 48: R-Car E3

Line 49: R-Car D3

Line 50: R-Car V3U

Line 51: R-Car S4-8

Line 52: R-Car V4H

Line 53: R-Car V4M

RISC-V timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/riscv,timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Anup Patel <anup@brainfault.org>"

RISC-V platforms always have a RISC-V timer device for the supervisor-mode based on the time CSR defined by the RISC-V privileged specification. The timer interrupts of this device are configured using the RISC-V SBI Time extension or the RISC-V Sstc extension.

The clock frequency of RISC-V timer device is specified via the "timebase-frequency" DT property of "/cpus" DT node which is described in Documentation/devicetree/bindings/riscv/cpus.yaml

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "riscv,timer"

interrupts-extended — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4096

riscv,timer-cannot-wake-cpu — not listed as required here #

Value type (type): "boolean"

If present, the timer interrupt cannot wake up the CPU from one or more suspend/idle states.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "interrupts-extended"

Examples (examples) #

timer {
  compatible = "riscv,timer";
  interrupts-extended = <&cpu1intc 5>,
                        <&cpu2intc 5>,
                        <&cpu3intc 5>,
                        <&cpu4intc 5>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 29: Should be enough?

Rockchip Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Lezcano <daniel.lezcano@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3288-timer"

Rule 2

Exact value (const): "rockchip,rk3399-timer"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rv1108-timer", "rockchip,rv1126-timer", "rockchip,rk3036-timer", "rockchip,rk3128-timer", "rockchip,rk3188-timer", "rockchip,rk3228-timer", "rockchip,rk3229-timer", "rockchip,rk3368-timer", "rockchip,rk3576-timer", "rockchip,rk3588-timer", "rockchip,px30-timer"

Item 2

Exact value (const): "rockchip,rk3288-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "timer"

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/clock/rk3288-cru.h>

timer: timer@ff810000 {
    compatible = "rockchip,rk3288-timer";
    reg = <0xff810000 0x20>;
    interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cru PCLK_TIMER>, <&xin24m>;
    clock-names = "pclk", "timer";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Samsung Exynos SoC Multi Core Timer (MCT)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/samsung,exynos4210-mct.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

The Samsung's Multi Core Timer (MCT) module includes two main blocks, the global timer and CPU local timers. The global timer is a 64-bit free running up-counter and can generate 4 interrupts when the counter reaches one of the four preset counter values. The CPU local timers are 32-bit free running down-counters and generate an interrupt when the counter expires. There is one CPU local timer instantiated in MCT for every CPU in the system.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "samsung,exynos4210-mct", "samsung,exynos4412-mct"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "axis,artpec8-mct", "axis,artpec9-mct", "google,gs101-mct", "samsung,exynos2200-mct-peris", "samsung,exynos3250-mct", "samsung,exynos5250-mct", "samsung,exynos5260-mct", "samsung,exynos5420-mct", "samsung,exynos5433-mct", "samsung,exynos850-mct", "samsung,exynos8895-mct", "samsung,exynos990-mct", "tesla,fsd-mct"

Item 2

Exact value (const): "samsung,exynos4210-mct"

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "mct"

reg — required here #

Maximum number of items (maxItems): 1

samsung,frc-shared — not listed as required here #

Value type (type): "boolean"

Indicates that the hardware requires that this processor share the free-running counter with a different (main) processor.

samsung,local-timers — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

List of indices of local timers usable from this processor.

interrupts — required here #

Interrupts should be put in specific order. This is, the local timer interrupts should be specified after the four global timer interrupts have been specified: 0: Global Timer Interrupt 0 1: Global Timer Interrupt 1 2: Global Timer Interrupt 2 3: Global Timer Interrupt 3 4: Local Timer Interrupt 0 5: Local Timer Interrupt 1 6: .. 7: .. i: Local Timer Interrupt n For MCT block that uses a per-processor interrupt for local timers, such as ones compatible with "samsung,exynos4412-mct", only one local timer interrupt might be specified, meaning that all local timers use the same per processor interrupt.

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 20

Required in this object (required): "compatible", "clock-names", "clocks", "interrupts", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "axis,artpec8-mct"

When the condition matches (then) #

Properties and child nodes (properties)

samsung,local-timers — not listed as required here

false — Not permitted by this property rule.

samsung,frc-shared — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos3250-mct"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5250-mct"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "axis,artpec8-mct", "axis,artpec9-mct", "google,gs101-mct", "samsung,exynos2200-mct-peris", "samsung,exynos5260-mct", "samsung,exynos5420-mct", "samsung,exynos5433-mct", "samsung,exynos850-mct", "samsung,exynos8895-mct", "samsung,exynos990-mct"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 12

Maximum number of items (maxItems): 12

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "tesla,fsd-mct"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 16

Maximum number of items (maxItems): 16

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

// In this example, the IP contains two local timers, using separate
// interrupts, so two local timer interrupts have been specified,
// in addition to four global timer interrupts.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@10050000 {
    compatible = "samsung,exynos4210-mct";
    reg = <0x10050000 0x800>;
    clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
    clock-names = "fin_pll", "mct";

    interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
};
// In this example, the timer interrupts are connected to two separate
// interrupt controllers. Hence, an interrupts-extended is needed.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@101c0000 {
    compatible = "samsung,exynos4210-mct";
    reg = <0x101C0000 0x800>;
    clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
    clock-names = "fin_pll", "mct";

    interrupts-extended = <&gic GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
                          <&gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
                          <&combiner 12 6>,
                          <&combiner 12 7>,
                          <&gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
                          <&gic GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
};
// In this example, the IP contains four local timers, but using
// a per-processor interrupt to handle them. Only one first local
// interrupt is specified.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@10050000 {
    compatible = "samsung,exynos4412-mct";
    reg = <0x10050000 0x800>;
    clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
    clock-names = "fin_pll", "mct";

    interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_PPI 42 IRQ_TYPE_LEVEL_HIGH>;
};
// In this example, the IP contains four local timers, but using
// a per-processor interrupt to handle them. All the local timer
// interrupts are specified.
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@10050000 {
    compatible = "samsung,exynos4412-mct";
    reg = <0x10050000 0x800>;
    clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>;
    clock-names = "fin_pll", "mct";

    interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_PPI 42 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_PPI 42 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_PPI 42 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_PPI 42 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 85: 4 Global + 1 local

Line 86: 4 Global + 16 local

SiFive Core Local Interruptor

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/sifive,clint.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Palmer Dabbelt <palmer@dabbelt.com>", "Anup Patel <anup.patel@wdc.com>"

SiFive (and other RISC-V) SOCs include an implementation of the SiFive Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor interrupts. It directly connects to the timer and inter-processor interrupt lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local interrupt controller is the parent interrupt controller for CLINT device. The clock frequency of CLINT is specified via "timebase-frequency" DT property of "/cpus" DT node. The "timebase-frequency" DT property is described in Documentation/devicetree/bindings/riscv/cpus.yaml T-Head C906/C910 CPU cores include an implementation of CLINT too, however their implementation lacks a memory-mapped MTIME register, thus not compatible with SiFive ones.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "canaan,k210-clint", "eswin,eic7700-clint", "sifive,fu540-c000-clint", "spacemit,k1-clint", "spacemit,k3-clint", "starfive,jh7100-clint", "starfive,jh7110-clint", "starfive,jh8100-clint", "tenstorrent,blackhole-clint"

Item 2

Exact value (const): "sifive,clint0"

Rule 2

Array item rules (items)

Item 1

This rule adds no constraints.

Item 2

Exact value (const): "sifive,clint2"

SiFive CLINT v2 is the HRT that supports the Zicntr. The control of sifive,clint2 differs from that of sifive,clint0, making them incompatible.

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun20i-d1-clint", "sophgo,cv1800b-clint", "sophgo,cv1812h-clint", "sophgo,sg2002-clint", "thead,th1520-clint"

Item 2

Exact value (const): "thead,c900-clint"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "sifive,clint0"

Item 2

Exact value (const): "riscv,clint0"

Deprecated (deprecated): true

For the QEMU virt machine only

Should be "<vendor>,<chip>-clint", followed by "sifive,clint<version>" when compatible with a SiFive CLINT. Please refer to sifive-blocks-ip-versioning.txt for details regarding the latter.

reg — required here #

Maximum number of items (maxItems): 1

interrupts-extended — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4095

sifive,fine-ctr-bits — not listed as required here #

Maximum value (maximum): 15

The width in bits of the fine counter.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "sifive,clint2"

When the condition matches (then) #

Required in this object (required): "sifive,fine-ctr-bits"

When the condition does not match (else) #

Properties and child nodes (properties) #

sifive,fine-ctr-bits — not listed as required here #

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts-extended"

Examples (examples) #

timer@2000000 {
  compatible = "sifive,fu540-c000-clint", "sifive,clint0";
  interrupts-extended = <&cpu1intc 3>, <&cpu1intc 7>,
                        <&cpu2intc 3>, <&cpu2intc 7>,
                        <&cpu3intc 3>, <&cpu3intc 7>,
                        <&cpu4intc 3>, <&cpu4intc 7>;
  reg = <0x2000000 0x10000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 32: Canaan Kendryte K210

Line 33: ESWIN EIC7700

Line 34: SiFive FU540

Line 35: SpacemiT K1

Line 36: SpacemiT K3

Line 37: StarFive JH7100

Line 38: StarFive JH7110

Line 39: StarFive JH8100

Line 40: Tenstorrent Blackhole

Line 41: SiFive CLINT v0 IP block

Line 44: SiFive CLINT v2 IP block

Synopsys ARC Local Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/snps,arc-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vineet Gupta <vgupta@synopsys.com>"

Synopsys ARC Local Timer with Interrupt Capabilities

  - Found on all ARC CPUs (ARC700/ARCHS)
  - Can be optionally programmed to interrupt on Limit
  - Two identical copies TIMER0 and TIMER1 exist in ARC cores and historically
    TIMER0 used as clockevent provider (true for all ARC cores)
    TIMER1 used for clocksource (mandatory for ARC700, optional for ARC HS)

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "snps,arc-timer"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

A single timer interrupt going into the parent interrupt controller. Use <16> for ARCHS cores, <3> for ARC700 cores.

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer0 {
    compatible = "snps,arc-timer";
    interrupts = <3>;
    clocks = <&core_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Synopsys ARC Free Running 64-bit Global Timer for ARC HS CPUs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/snps,archs-gfrc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vineet Gupta <vgupta@synopsys.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "snps,archs-gfrc"

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer {
    compatible = "snps,archs-gfrc";
    clocks = <&core_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Synopsys ARC Free Running 64-bit Local Timer for ARC HS CPUs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/snps,archs-rtc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vineet Gupta <vgupta@synopsys.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "snps,archs-rtc"

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rtc {
  compatible = "snps,archs-rtc";
  clocks = <&core_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Synopsys DesignWare APB Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Lezcano <daniel.lezcano@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "snps,dw-apb-timer"

Rule 2

Allowed values (enum): "snps,dw-apb-timer-sp", "snps,dw-apb-timer-osc"

Deprecated (deprecated): true

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Timer ticks reference clock source

Item 2

APB interface clock source

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "timer"

Item 2

Exact value (const): "pclk"

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "clocks", "clock-names"

Rule 2 #

Required in this object (required): "clock-frequency"

Rule 3 #

Required in this object (required): "clock-freq"

Examples (examples) #

timer@ffe00000 {
  compatible = "snps,dw-apb-timer";
  interrupts = <0 170 4>;
  reg = <0xffe00000 0x1000>;
  clocks = <&timer_clk>, <&timer_pclk>;
  clock-names = "timer", "pclk";
};
timer@ffe00000 {
  compatible = "snps,dw-apb-timer";
  interrupts = <0 170 4>;
  reg = <0xffe00000 0x1000>;
  clocks = <&timer_clk>;
  clock-names = "timer";
};
timer@ffe00000 {
  compatible = "snps,dw-apb-timer";
  interrupts = <0 170 4>;
  reg = <0xffe00000 0x1000>;
  clock-frequency = <25000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Milbeaut SoCs Timer Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/socionext,milbeaut-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sugaya Taichi <sugaya.taichi@socionext.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,milbeaut-timer"

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

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) #

timer@1e000050 {
    compatible = "socionext,milbeaut-timer";
    reg = <0x1e000050 0x20>;
    interrupts = <0 91 4>;
    clocks = <&clk 4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Spreadtrum SC9860 timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/sprd,sc9860-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

The Spreadtrum SC9860 platform provides 3 general-purpose timers. These timers can support 32bit or 64bit counter, as well as supporting period mode or one-shot mode, and they can be a wakeup source during deep sleep.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sprd,sc9860-timer", "sprd,sc9860-suspend-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "sprd,sc9860-timer"

When the condition matches (then) #

Required in this object (required): "interrupts"

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/interrupt-controller/irq.h>

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

  timer@40050000 {
    compatible = "sprd,sc9860-timer";
    reg = <0 0x40050000 0 0x20>;
    interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ext_32k>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

ST Microelectronics Nomadik Multi-Timer Unit MTU Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/st,nomadik-mtu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

This timer is found in the ST Microelectronics Nomadik SoCs STn8800, STn8810 and STn8815 as well as in ST-Ericsson DB8500.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "st,nomadik-mtu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

The first clock named TIMCLK clocks the actual timers and the second clock clocks the digital interface to the interconnect.

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "timclk"

Item 2

Exact value (const): "apb_pclk"

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/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/mfd/dbx500-prcmu.h>
timer@a03c6000 {
  compatible = "st,nomadik-mtu";
  reg = <0xa03c6000 0x1000>;
  interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;

  clocks = <&prcmu_clk PRCMU_TIMCLK>, <&prcc_pclk 6 6>;
  clock-names = "timclk", "apb_pclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2022 Linaro Ltd.

SPEAr ARM Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/st,spear-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Viresh Kumar <vireshk@kernel.org>", "Shiraz Hashim <shiraz.linux.kernel@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,spear-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@f0000000 {
    compatible = "st,spear-timer";
    reg = <0xf0000000 0x400>;
    interrupts = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

STMicroelectronics STM32 general-purpose 16 and 32 bits timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/st,stm32-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>", "Patrice Chotard <patrice.chotard@foss.st.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,stm32-timer"

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

resets — not listed as required here #

Maximum number of items (maxItems): 1

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) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
timer: timer@40000c00 {
    compatible = "st,stm32-timer";
    reg = <0x40000c00 0x400>;
    interrupts = <50>;
    clocks = <&clk_pmtr1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ACLINT Machine-level Timer Device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/thead,c900-aclint-mtimer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Inochi Amaoto <inochiama@outlook.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "sophgo,sg2042-aclint-mtimer", "sophgo,sg2044-aclint-mtimer"

Item 2

Exact value (const): "thead,c900-aclint-mtimer"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "anlogic,dr1v90-aclint-mtimer"

Item 2

Exact value (const): "nuclei,ux900-aclint-mtimer"

reg — required here #

Array item rules (items) #

Item 1

MTIMECMP Registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mtimecmp"

interrupts-extended — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4095

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "reg-names", "interrupts-extended"

Examples (examples) #

timer@ac000000 {
  compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer";
  interrupts-extended = <&cpu1intc 7>,
                        <&cpu2intc 7>,
                        <&cpu3intc 7>,
                        <&cpu4intc 7>;
  reg = <0xac000000 0x00010000>;
  reg-names = "mtimecmp";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TI DaVinci Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/ti,da830-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kousik Sanagavarapu <five231003@gmail.com>"

This is a 64-bit timer found on TI's DaVinci architecture devices. The timer can be configured as a general-purpose 64-bit timer, dual general-purpose 32-bit timers. When configured as dual 32-bit timers, each half can operate in conjunction (chain mode) or independently (unchained mode) of each other.

The timer is a free running up-counter and can generate interrupts when the counter reaches preset counter values.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,da830-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 10

interrupt-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "tint12"

Item 2

Exact value (const): "tint34"

Item 3

Exact value (const): "cmpint0"

Item 4

Exact value (const): "cmpint1"

Item 5

Exact value (const): "cmpint2"

Item 6

Exact value (const): "cmpint3"

Item 7

Exact value (const): "cmpint4"

Item 8

Exact value (const): "cmpint5"

Item 9

Exact value (const): "cmpint6"

Item 10

Exact value (const): "cmpint7"

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@20000 {
    compatible = "ti,da830-timer";
    reg = <0x20000 0x1000>;
    interrupts = <21>, <22>;
    interrupt-names = "tint12", "tint34";
    clocks = <&pll0_auxclk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TI Keystone timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/ti,keystone-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander A. Klimov <grandmaster@al2klimov.de>", "Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>"

A 64-bit timer in the KeyStone architecture devices. The timer can be configured as a general-purpose 64-bit timer, dual general-purpose 32-bit timers. When configured as dual 32-bit timers, each half can operate in conjunction (chain mode) or independently (unchained mode) of each other. It is global timer is a free running up-counter and can generate interrupt when the counter reaches preset counter values. Documentation: https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,keystone-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "irq"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "timer"

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) #

#include <dt-bindings/interrupt-controller/irq.h>

timer@22f0000 {
    compatible = "ti,keystone-timer";
    reg = <0x022f0000 0x80>;
    interrupts = <110 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clktimer15>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TI dual-mode timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/ti,timer-dm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"

The TI dual-mode timer is a general purpose timer with PWM capabilities.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,am335x-timer", "ti,am335x-timer-1ms", "ti,am654-timer", "ti,dm814-timer", "ti,dm816-timer", "ti,omap2420-timer", "ti,omap3430-timer", "ti,omap4430-timer", "ti,omap5430-timer"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ti,am4372-timer"

Item 2

Exact value (const): "ti,am335x-timer"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "ti,am4372-timer-1ms"

Item 2

Exact value (const): "ti,am335x-timer-1ms"

reg — required here #

Array item rules (items) #

Item 1

IO address

Item 2

L3 to L4 mapping for omap4/5 L4 ABE

Minimum number of items (minItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Functional clock

Item 2

System clock for omap4/5 and dra7

Minimum number of items (minItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "timer_sys_ck"

Minimum number of items (minItems): 1

power-domains — not listed as required here #

Power domain if available

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Interrupt if available. The timer PWM features may be usable in a limited way even without interrupts.

Maximum number of items (maxItems): 1

ti,timer-alwon — not listed as required here #

Timer is always enabled when the SoC is powered. Note that some SoCs like am335x can suspend to PM coprocessor RTC only mode and in that case the SoC power is cut including timers.

Value type (type): "boolean"

ti,timer-dsp — not listed as required here #

Timer is routable to the DSP in addition to the operating system.

Value type (type): "boolean"

ti,timer-pwm — not listed as required here #

Timer has been wired for PWM capability.

Value type (type): "boolean"

ti,timer-secure — not listed as required here #

Timer access has been limited to secure mode only.

Value type (type): "boolean"

ti,hwmods — not listed as required here #

Name of the HWMOD associated with timer. This is for legacy omap2/3 platforms only.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Deprecated (deprecated): true

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,am654-timer"

When the condition matches (then) #

Required in this object (required): "power-domains"

When the condition does not match (else) #

Required in this object (required): "interrupts"

Rule 2 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,omap3430-timer", "ti,omap4430-timer", "ti,omap5430-timer"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Maximum number of items (maxItems): 1

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,dm814-timer", "ti,dm816-timer", "ti,omap2420-timer", "ti,omap3430-timer"

When the condition matches (then) #

Properties and child nodes (properties)

ti,hwmods — not listed as required here

Array item rules (items)

Item 1

String pattern (pattern): "^timer([1-9]|1[0-2])$"

When the condition does not match (else) #

Properties and child nodes (properties)

ti,hwmods — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

timer1: timer@0 {
  compatible = "ti,am335x-timer-1ms";
  reg = <0x0 0x400>;
  interrupts = <67>;
  ti,timer-alwon;
  clocks = <&timer1_fck>;
  clock-names = "fck";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

VIA/Wondermedia VT8500 Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/via,vt8500-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This is the timer block that is a standalone part of the system power management controller on VIA/WonderMedia SoCs (VIA VT8500 and alike). The hardware has a single 32-bit counter running at 3 MHz and four match registers, each of which is associated with a dedicated match interrupt, and the first of which can also serve as the system watchdog (if the watchdog function is enabled, it will reset the system upon match instead of triggering its respective interrupt)

Maintainers (maintainers): "Alexey Charkov <alchark@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "via,vt8500-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Channel 0 match. Note that if the watchdog function is enabled, this interrupt will not fire and the system will reboot instead once the counter reaches match register 0 value

Item 2

Channel 1 match

Item 3

Channel 2 match

Item 4

Channel 3 match

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@d8130100 {
    compatible = "via,vt8500-timer";
    reg = <0xd8130100 0x28>;
    interrupts = <36>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Xilinx LogiCORE IP AXI Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

Schema identifier ($id): "http://devicetree.org/schemas/timer/xlnx,xps-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sean Anderson <sean.anderson@seco.com>"

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains) #

Exact value (const): "xlnx,xps-timer-1.00.a"

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "s_axi_aclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

true — No constraints added by this property rule.

xlnx,count-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 8, 16, 32

Default value (default): 32

The width of the counter(s), in bits.

xlnx,one-timer-only — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Whether only one timer is present in this block.

Required in this object (required): "compatible", "reg", "xlnx,one-timer-only"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Required in this object (required): "#pwm-cells"

When the condition matches (then) #

All of these rules must match (allOf)

Rule 1

Required in this object (required): "clocks"

Rule 2

Properties and child nodes (properties)

xlnx,one-timer-only — not listed as required here

Exact value (const): 0

When the condition does not match (else) #

Required in this object (required): "interrupts"

Rule 2 #

Condition (if) #

Required in this object (required): "clocks"

When the condition matches (then) #

Required in this object (required): "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

timer@800e0000 {
    clock-names = "s_axi_aclk";
    clocks = <&zynqmp_clk 71>;
    compatible = "xlnx,xps-timer-1.00.a";
    reg = <0x800e0000 0x10000>;
    interrupts = <0 39 2>;
    xlnx,count-width = <16>;
    xlnx,one-timer-only = <0x0>;
};

timer@800f0000 {
    #pwm-cells = <0>;
    clock-names = "s_axi_aclk";
    clocks = <&zynqmp_clk 71>;
    compatible = "xlnx,xps-timer-1.00.a";
    reg = <0x800e0000 0x10000>;
    xlnx,count-width = <32>;
    xlnx,one-timer-only = <0x0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

STMicroelectronics Low Power Controller (LPC) - Clocksource

Peios Kernel / Hardware and drivers / Device-tree binding reference / Timer bindings

LPC currently supports Watchdog OR Real Time Clock OR Clocksource functionality.

[See: ../watchdog/st_lpc_wdt.txt for Watchdog options] [See: ../rtc/rtc-st-lpc.txt for RTC options]

Required properties

  • compatible : Must be: "st,stih407-lpc"
  • reg : LPC registers base address + size
  • interrupts : LPC interrupt line number and associated flags
  • clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
  • st,lpc-mode : The LPC can run either one of three modes: ST_LPC_MODE_RTC [0] ST_LPC_MODE_WDT [1] ST_LPC_MODE_CLKSRC [2] One (and only one) mode must be selected.

Example: #

       lpc@fde05000 {
               compatible      = "st,stih407-lpc";
               reg             = <0xfde05000 0x1000>;
               clocks          = <&clk_s_d3_flexgen CLK_LPC_0>;
               st,lpc-mode     = <ST_LPC_MODE_CLKSRC>;
       };

Peios Learn — documentation for Peios software.

Built with Trail.