xref: /openbmc/linux/Documentation/devicetree/bindings/timer/fsl,ftm-timer.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*12e499d0SXiubo LiFreescale FlexTimer Module (FTM) Timer
2*12e499d0SXiubo Li
3*12e499d0SXiubo LiRequired properties:
4*12e499d0SXiubo Li
5*12e499d0SXiubo Li- compatible : should be "fsl,ftm-timer"
6*12e499d0SXiubo Li- reg : Specifies base physical address and size of the register sets for the
7*12e499d0SXiubo Li  clock event device and clock source device.
8*12e499d0SXiubo Li- interrupts : Should be the clock event device interrupt.
9*12e499d0SXiubo Li- clocks : The clocks provided by the SoC to drive the timer, must contain an
10*12e499d0SXiubo Li  entry for each entry in clock-names.
11*12e499d0SXiubo Li- clock-names : Must include the following entries:
12*12e499d0SXiubo Li  o "ftm-evt"
13*12e499d0SXiubo Li  o "ftm-src"
14*12e499d0SXiubo Li  o "ftm-evt-counter-en"
15*12e499d0SXiubo Li  o "ftm-src-counter-en"
16*12e499d0SXiubo Li- big-endian: One boolean property, the big endian mode will be in use if it is
17*12e499d0SXiubo Li  present, or the little endian mode will be in use for all the device registers.
18*12e499d0SXiubo Li
19*12e499d0SXiubo LiExample:
20*12e499d0SXiubo Liftm: ftm@400b8000 {
21*12e499d0SXiubo Li	compatible = "fsl,ftm-timer";
22*12e499d0SXiubo Li	reg = <0x400b8000 0x1000 0x400b9000 0x1000>;
23*12e499d0SXiubo Li	interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>;
24*12e499d0SXiubo Li	clock-names = "ftm-evt", "ftm-src",
25*12e499d0SXiubo Li		"ftm-evt-counter-en", "ftm-src-counter-en";
26*12e499d0SXiubo Li	clocks = <&clks VF610_CLK_FTM2>,
27*12e499d0SXiubo Li		<&clks VF610_CLK_FTM3>,
28*12e499d0SXiubo Li		<&clks VF610_CLK_FTM2_EXT_FIX_EN>,
29*12e499d0SXiubo Li		<&clks VF610_CLK_FTM3_EXT_FIX_EN>;
30*12e499d0SXiubo Li	big-endian;
31*12e499d0SXiubo Li};
32