Faraday FTTMR010 timer

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

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

Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>", "Linus Walleij <linusw@kernel.org>"

This timer is a generic IP block from Faraday Technology, embedded in the Cortina Systems Gemini SoCs and other designs.

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): "moxa,moxart-timer"

Item 2

Exact value (const): "faraday,fttmr010"

Rule 2

Allowed values (enum): "aspeed,ast2400-timer", "aspeed,ast2500-timer", "aspeed,ast2600-timer", "cortina,gemini-timer", "faraday,fttmr010"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

One interrupt per timer

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Peripheral clock

Item 2

External tick clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "PCLK"

Item 2

Exact value (const): "EXTCLK"

resets — not listed as required here #

Maximum number of items (maxItems): 1

syscon — not listed as required here #

System controller phandle for Gemini systems

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

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

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): "cortina,gemini-timer"

When the condition matches (then) #

Required in this object (required): "syscon"

When the condition does not match (else) #

Properties and child nodes (properties)

syscon — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

timer@43000000 {
    compatible = "faraday,fttmr010";
    reg = <0x43000000 0x1000>;
    interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
                <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
                <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
    clocks = <&pclk>, <&extclk>;
    clock-names = "PCLK", "EXTCLK";
};

Source notes #

Annotations retained from the schema source

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

Edit this page