1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*ae5de77eSEmmanuel Vadot%YAML 1.2 3*ae5de77eSEmmanuel Vadot--- 4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/fsl,gtm.yaml# 5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*ae5de77eSEmmanuel Vadot 7*ae5de77eSEmmanuel Vadottitle: Freescale General-purpose Timers Module 8*ae5de77eSEmmanuel Vadot 9*ae5de77eSEmmanuel Vadotmaintainers: 10*ae5de77eSEmmanuel Vadot - J. Neuschäfer <j.ne@posteo.net> 11*ae5de77eSEmmanuel Vadot 12*ae5de77eSEmmanuel Vadotproperties: 13*ae5de77eSEmmanuel Vadot compatible: 14*ae5de77eSEmmanuel Vadot oneOf: 15*ae5de77eSEmmanuel Vadot # for SoC GTMs 16*ae5de77eSEmmanuel Vadot - items: 17*ae5de77eSEmmanuel Vadot - enum: 18*ae5de77eSEmmanuel Vadot - fsl,mpc8308-gtm 19*ae5de77eSEmmanuel Vadot - fsl,mpc8313-gtm 20*ae5de77eSEmmanuel Vadot - fsl,mpc8315-gtm 21*ae5de77eSEmmanuel Vadot - fsl,mpc8360-gtm 22*ae5de77eSEmmanuel Vadot - const: fsl,gtm 23*ae5de77eSEmmanuel Vadot 24*ae5de77eSEmmanuel Vadot # for QE GTMs 25*ae5de77eSEmmanuel Vadot - items: 26*ae5de77eSEmmanuel Vadot - enum: 27*ae5de77eSEmmanuel Vadot - fsl,mpc8360-qe-gtm 28*ae5de77eSEmmanuel Vadot - fsl,mpc8569-qe-gtm 29*ae5de77eSEmmanuel Vadot - const: fsl,qe-gtm 30*ae5de77eSEmmanuel Vadot - const: fsl,gtm 31*ae5de77eSEmmanuel Vadot 32*ae5de77eSEmmanuel Vadot # for CPM2 GTMs (no known examples) 33*ae5de77eSEmmanuel Vadot - items: 34*ae5de77eSEmmanuel Vadot # - enum: 35*ae5de77eSEmmanuel Vadot # - fsl,<chip>-cpm2-gtm 36*ae5de77eSEmmanuel Vadot - const: fsl,cpm2-gtm 37*ae5de77eSEmmanuel Vadot - const: fsl,gtm 38*ae5de77eSEmmanuel Vadot 39*ae5de77eSEmmanuel Vadot reg: 40*ae5de77eSEmmanuel Vadot maxItems: 1 41*ae5de77eSEmmanuel Vadot 42*ae5de77eSEmmanuel Vadot interrupts: 43*ae5de77eSEmmanuel Vadot items: 44*ae5de77eSEmmanuel Vadot - description: Interrupt for timer 1 (e.g. GTM1 or GTM5) 45*ae5de77eSEmmanuel Vadot - description: Interrupt for timer 2 (e.g. GTM2 or GTM6) 46*ae5de77eSEmmanuel Vadot - description: Interrupt for timer 3 (e.g. GTM3 or GTM7) 47*ae5de77eSEmmanuel Vadot - description: Interrupt for timer 4 (e.g. GTM4 or GTM8) 48*ae5de77eSEmmanuel Vadot 49*ae5de77eSEmmanuel Vadot clock-frequency: true 50*ae5de77eSEmmanuel Vadot 51*ae5de77eSEmmanuel Vadotrequired: 52*ae5de77eSEmmanuel Vadot - compatible 53*ae5de77eSEmmanuel Vadot - reg 54*ae5de77eSEmmanuel Vadot - interrupts 55*ae5de77eSEmmanuel Vadot - clock-frequency 56*ae5de77eSEmmanuel Vadot 57*ae5de77eSEmmanuel VadotadditionalProperties: false 58*ae5de77eSEmmanuel Vadot 59*ae5de77eSEmmanuel Vadotexamples: 60*ae5de77eSEmmanuel Vadot - | 61*ae5de77eSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 62*ae5de77eSEmmanuel Vadot 63*ae5de77eSEmmanuel Vadot timer@500 { 64*ae5de77eSEmmanuel Vadot compatible = "fsl,mpc8360-gtm", "fsl,gtm"; 65*ae5de77eSEmmanuel Vadot reg = <0x500 0x40>; 66*ae5de77eSEmmanuel Vadot interrupts = <90 IRQ_TYPE_LEVEL_LOW>, 67*ae5de77eSEmmanuel Vadot <78 IRQ_TYPE_LEVEL_LOW>, 68*ae5de77eSEmmanuel Vadot <84 IRQ_TYPE_LEVEL_LOW>, 69*ae5de77eSEmmanuel Vadot <72 IRQ_TYPE_LEVEL_LOW>; 70*ae5de77eSEmmanuel Vadot /* filled by u-boot */ 71*ae5de77eSEmmanuel Vadot clock-frequency = <0>; 72*ae5de77eSEmmanuel Vadot }; 73*ae5de77eSEmmanuel Vadot 74*ae5de77eSEmmanuel Vadot - | 75*ae5de77eSEmmanuel Vadot timer@440 { 76*ae5de77eSEmmanuel Vadot compatible = "fsl,mpc8360-qe-gtm", "fsl,qe-gtm", "fsl,gtm"; 77*ae5de77eSEmmanuel Vadot reg = <0x440 0x40>; 78*ae5de77eSEmmanuel Vadot interrupts = <12>, <13>, <14>, <15>; 79*ae5de77eSEmmanuel Vadot /* filled by u-boot */ 80*ae5de77eSEmmanuel Vadot clock-frequency = <0>; 81*ae5de77eSEmmanuel Vadot }; 82*ae5de77eSEmmanuel Vadot 83*ae5de77eSEmmanuel Vadot... 84