summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/timer/fsl,ftm-timer.yaml
blob: 0e4a8ddc3de327b528827a2f75607dd6e8b578d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/timer/fsl,ftm-timer.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale FlexTimer Module (FTM) Timer

maintainers:
  - Animesh Agarwal <animeshagarwal28@gmail.com>

properties:
  compatible:
    const: fsl,ftm-timer

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    description: The clocks provided by the SoC to drive the timer, must
      contain an entry for each entry in clock-names.
    minItems: 4
    maxItems: 4

  clock-names:
    items:
      - const: ftm-evt
      - const: ftm-src
      - const: ftm-evt-counter-en
      - const: ftm-src-counter-en

  big-endian: true

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/vf610-clock.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    ftm@400b8000 {
        compatible = "fsl,ftm-timer";
        reg = <0x400b8000 0x1000>;
        interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>;
        clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en";
        clocks = <&clks VF610_CLK_FTM2>, <&clks VF610_CLK_FTM3>,
            <&clks VF610_CLK_FTM2_EXT_FIX_EN>, <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
        big-endian;
    };