Cadence TTC - Triple Timer Counter

Schema identifier ($id): "http://devicetree.org/schemas/timer/cdns,ttc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cdns,ttc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 3

A list of 3 interrupts; one per timer channel.

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

timer-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bit width of the timer, necessary if not 16.

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Required in this object (required): "#pwm-cells"

When the condition matches (then) #

Required in this object (required): "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

ttc0: ttc0@f8001000 {
    interrupt-parent = <&intc>;
    interrupts = <0 10 4>, <0 11 4>, <0 12 4>;
    compatible = "cdns,ttc";
    reg = <0xF8001000 0x1000>;
    clocks = <&cpu_clk 3>;
    timer-width = <32>;
};
pwm: pwm@f8002000 {
    compatible = "cdns,ttc";
    reg = <0xf8002000 0x1000>;
    clocks = <&cpu_clk 3>;
    timer-width = <32>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page