Actions Semi Owl timer

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

Edit this page