1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/fsl,ftm-timer.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Freescale FlexTimer Module (FTM) Timer 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Animesh Agarwal <animeshagarwal28@gmail.com> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel Vadotproperties: 13*b2d2a78aSEmmanuel Vadot compatible: 14*b2d2a78aSEmmanuel Vadot const: fsl,ftm-timer 15*b2d2a78aSEmmanuel Vadot 16*b2d2a78aSEmmanuel Vadot reg: 17*b2d2a78aSEmmanuel Vadot maxItems: 1 18*b2d2a78aSEmmanuel Vadot 19*b2d2a78aSEmmanuel Vadot interrupts: 20*b2d2a78aSEmmanuel Vadot maxItems: 1 21*b2d2a78aSEmmanuel Vadot 22*b2d2a78aSEmmanuel Vadot clocks: 23*b2d2a78aSEmmanuel Vadot description: The clocks provided by the SoC to drive the timer, must 24*b2d2a78aSEmmanuel Vadot contain an entry for each entry in clock-names. 25*b2d2a78aSEmmanuel Vadot minItems: 4 26*b2d2a78aSEmmanuel Vadot maxItems: 4 27*b2d2a78aSEmmanuel Vadot 28*b2d2a78aSEmmanuel Vadot clock-names: 29*b2d2a78aSEmmanuel Vadot items: 30*b2d2a78aSEmmanuel Vadot - const: ftm-evt 31*b2d2a78aSEmmanuel Vadot - const: ftm-src 32*b2d2a78aSEmmanuel Vadot - const: ftm-evt-counter-en 33*b2d2a78aSEmmanuel Vadot - const: ftm-src-counter-en 34*b2d2a78aSEmmanuel Vadot 35*b2d2a78aSEmmanuel Vadot big-endian: true 36*b2d2a78aSEmmanuel Vadot 37*b2d2a78aSEmmanuel Vadotrequired: 38*b2d2a78aSEmmanuel Vadot - compatible 39*b2d2a78aSEmmanuel Vadot - reg 40*b2d2a78aSEmmanuel Vadot - interrupts 41*b2d2a78aSEmmanuel Vadot - clocks 42*b2d2a78aSEmmanuel Vadot - clock-names 43*b2d2a78aSEmmanuel Vadot 44*b2d2a78aSEmmanuel VadotadditionalProperties: false 45*b2d2a78aSEmmanuel Vadot 46*b2d2a78aSEmmanuel Vadotexamples: 47*b2d2a78aSEmmanuel Vadot - | 48*b2d2a78aSEmmanuel Vadot #include <dt-bindings/clock/vf610-clock.h> 49*b2d2a78aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 50*b2d2a78aSEmmanuel Vadot 51*b2d2a78aSEmmanuel Vadot ftm@400b8000 { 52*b2d2a78aSEmmanuel Vadot compatible = "fsl,ftm-timer"; 53*b2d2a78aSEmmanuel Vadot reg = <0x400b8000 0x1000>; 54*b2d2a78aSEmmanuel Vadot interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>; 55*b2d2a78aSEmmanuel Vadot clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en"; 56*b2d2a78aSEmmanuel Vadot clocks = <&clks VF610_CLK_FTM2>, <&clks VF610_CLK_FTM3>, 57*b2d2a78aSEmmanuel Vadot <&clks VF610_CLK_FTM2_EXT_FIX_EN>, <&clks VF610_CLK_FTM3_EXT_FIX_EN>; 58*b2d2a78aSEmmanuel Vadot big-endian; 59*b2d2a78aSEmmanuel Vadot }; 60