1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: NXP Low Power Timer/Pulse Width Modulation Module (TPM) 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Dong Aisheng <aisheng.dong@nxp.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: | 13c66ec88fSEmmanuel Vadot The Timer/PWM Module (TPM) supports input capture, output compare, 14c66ec88fSEmmanuel Vadot and the generation of PWM signals to control electric motor and power 15c66ec88fSEmmanuel Vadot management applications. The counter, compare and capture registers 16c66ec88fSEmmanuel Vadot are clocked by an asynchronous clock that can remain enabled in low 17c66ec88fSEmmanuel Vadot power modes. TPM can support global counter bus where one TPM drives 18c66ec88fSEmmanuel Vadot the counter bus for the others, provided bit width is the same. 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadotproperties: 21c66ec88fSEmmanuel Vadot compatible: 22*e67e8565SEmmanuel Vadot oneOf: 23*e67e8565SEmmanuel Vadot - const: fsl,imx7ulp-tpm 24*e67e8565SEmmanuel Vadot - items: 25*e67e8565SEmmanuel Vadot - const: fsl,imx8ulp-tpm 26*e67e8565SEmmanuel Vadot - const: fsl,imx7ulp-tpm 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot reg: 29c66ec88fSEmmanuel Vadot maxItems: 1 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot interrupts: 32c66ec88fSEmmanuel Vadot maxItems: 1 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot clocks: 35c66ec88fSEmmanuel Vadot items: 36c66ec88fSEmmanuel Vadot - description: SoC TPM ipg clock 37c66ec88fSEmmanuel Vadot - description: SoC TPM per clock 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot clock-names: 40c66ec88fSEmmanuel Vadot items: 41c66ec88fSEmmanuel Vadot - const: ipg 42c66ec88fSEmmanuel Vadot - const: per 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadotrequired: 45c66ec88fSEmmanuel Vadot - compatible 46c66ec88fSEmmanuel Vadot - reg 47c66ec88fSEmmanuel Vadot - interrupts 48c66ec88fSEmmanuel Vadot - clocks 49c66ec88fSEmmanuel Vadot - clock-names 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel VadotadditionalProperties: false 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadotexamples: 54c66ec88fSEmmanuel Vadot - | 55c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/imx7ulp-clock.h> 56c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot timer@40260000 { 59c66ec88fSEmmanuel Vadot compatible = "fsl,imx7ulp-tpm"; 60c66ec88fSEmmanuel Vadot reg = <0x40260000 0x1000>; 61c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; 62c66ec88fSEmmanuel Vadot clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, 63c66ec88fSEmmanuel Vadot <&pcc2 IMX7ULP_CLK_LPTPM5>; 64c66ec88fSEmmanuel Vadot clock-names = "ipg", "per"; 65c66ec88fSEmmanuel Vadot }; 66