Freescale General-purpose Timers Module

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

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

Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8308-gtm", "fsl,mpc8313-gtm", "fsl,mpc8315-gtm", "fsl,mpc8360-gtm"

Item 2

Exact value (const): "fsl,gtm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8360-qe-gtm", "fsl,mpc8569-qe-gtm"

Item 2

Exact value (const): "fsl,qe-gtm"

Item 3

Exact value (const): "fsl,gtm"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,cpm2-gtm"

Item 2

Exact value (const): "fsl,gtm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Interrupt for timer 1 (e.g. GTM1 or GTM5)

Item 2

Interrupt for timer 2 (e.g. GTM2 or GTM6)

Item 3

Interrupt for timer 3 (e.g. GTM3 or GTM7)

Item 4

Interrupt for timer 4 (e.g. GTM4 or GTM8)

clock-frequency — required here #

true — No constraints added by this property rule.

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

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@500 {
    compatible = "fsl,mpc8360-gtm", "fsl,gtm";
    reg = <0x500 0x40>;
    interrupts = <90 IRQ_TYPE_LEVEL_LOW>,
                 <78 IRQ_TYPE_LEVEL_LOW>,
                 <84 IRQ_TYPE_LEVEL_LOW>,
                 <72 IRQ_TYPE_LEVEL_LOW>;
    /* filled by u-boot */
    clock-frequency = <0>;
};
timer@440 {
    compatible = "fsl,mpc8360-qe-gtm", "fsl,qe-gtm", "fsl,gtm";
    reg = <0x440 0x40>;
    interrupts = <12>, <13>, <14>, <15>;
    /* filled by u-boot */
    clock-frequency = <0>;
};

Source notes #

Annotations retained from the schema source

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

Line 15: for SoC GTMs

Line 24: for QE GTMs

Line 32: for CPM2 GTMs (no known examples)

Line 34: - enum:

Line 35: - fsl,<chip>-cpm2-gtm

Edit this page