TI dual-mode timer
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 hereRule for matching array elements (
contains)Exact value (
const):"ti,am654-timer"When the condition matches (
then) #When the condition does not match (
else) #
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule 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 hereMaximum number of items (
maxItems):1
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule 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 hereArray 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)