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