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