Marvell Armada 370, 375, 380 and XP Timers

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)

Edit this page