xref: /freebsd/sys/contrib/device-tree/Bindings/timer/faraday,fttmr010.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotFaraday Technology timer
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis timer is a generic IP block from Faraday Technology, embedded in the
4*c66ec88fSEmmanuel VadotCortina Systems Gemini SoCs and other designs.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot- compatible : Must be one of
9*c66ec88fSEmmanuel Vadot  "faraday,fttmr010"
10*c66ec88fSEmmanuel Vadot  "cortina,gemini-timer", "faraday,fttmr010"
11*c66ec88fSEmmanuel Vadot  "moxa,moxart-timer", "faraday,fttmr010"
12*c66ec88fSEmmanuel Vadot  "aspeed,ast2400-timer"
13*c66ec88fSEmmanuel Vadot  "aspeed,ast2500-timer"
14*c66ec88fSEmmanuel Vadot  "aspeed,ast2600-timer"
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot- reg : Should contain registers location and length
17*c66ec88fSEmmanuel Vadot- interrupts : Should contain the three timer interrupts usually with
18*c66ec88fSEmmanuel Vadot  flags for falling edge
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotOptionally required properties:
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot- clocks : a clock to provide the tick rate for "faraday,fttmr010"
23*c66ec88fSEmmanuel Vadot- clock-names : should be "EXTCLK" and "PCLK" for the external tick timer
24*c66ec88fSEmmanuel Vadot  and peripheral clock respectively, for "faraday,fttmr010"
25*c66ec88fSEmmanuel Vadot- syscon : a phandle to the global Gemini system controller if the compatible
26*c66ec88fSEmmanuel Vadot  type is "cortina,gemini-timer"
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel VadotExample:
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadottimer@43000000 {
31*c66ec88fSEmmanuel Vadot	compatible = "faraday,fttmr010";
32*c66ec88fSEmmanuel Vadot	reg = <0x43000000 0x1000>;
33*c66ec88fSEmmanuel Vadot	interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
34*c66ec88fSEmmanuel Vadot		   <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
35*c66ec88fSEmmanuel Vadot		   <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
36*c66ec88fSEmmanuel Vadot	clocks = <&extclk>, <&pclk>;
37*c66ec88fSEmmanuel Vadot	clock-names = "EXTCLK", "PCLK";
38*c66ec88fSEmmanuel Vadot};
39