NXP Low Power Timer/Pulse Width Modulation Module (TPM)

Schema identifier ($id): "http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml#"

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

Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"

The Timer/PWM Module (TPM) supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. The counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. TPM can support global counter bus where one TPM drives the counter bus for the others, provided bit width is the same.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx7ulp-tpm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,imx8ulp-tpm"

Item 2

Exact value (const): "fsl,imx7ulp-tpm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

SoC TPM ipg clock

Item 2

SoC TPM per clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "per"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx7ulp-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

timer@40260000 {
    compatible = "fsl,imx7ulp-tpm";
    reg = <0x40260000 0x1000>;
    interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>,
             <&pcc2 IMX7ULP_CLK_LPTPM5>;
    clock-names = "ipg", "per";
};

Source notes #

Annotations retained from the schema source

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

Edit this page