EcoNet EN751221 High Precision Timer (HPT)

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)

Edit this page