NVIDIA Tegra timer
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 hereRule 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 hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):14A 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 hereExactly 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 hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):6A 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 hereExact value (
const):"nvidia,tegra20-timer"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4A 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