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