xref: /freebsd/sys/contrib/device-tree/Bindings/timer/mediatek,mtk-timer.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMediaTek Timers
2*c66ec88fSEmmanuel Vadot---------------
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotMediaTek SoCs have two different timers on different platforms,
5*c66ec88fSEmmanuel Vadot- GPT (General Purpose Timer)
6*c66ec88fSEmmanuel Vadot- SYST (System Timer)
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotThe proper timer will be selected automatically by driver.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotRequired properties:
11*c66ec88fSEmmanuel Vadot- compatible should contain:
12*c66ec88fSEmmanuel Vadot	For those SoCs that use GPT
13*c66ec88fSEmmanuel Vadot	* "mediatek,mt2701-timer" for MT2701 compatible timers (GPT)
14*c66ec88fSEmmanuel Vadot	* "mediatek,mt6580-timer" for MT6580 compatible timers (GPT)
15*c66ec88fSEmmanuel Vadot	* "mediatek,mt6589-timer" for MT6589 compatible timers (GPT)
16*c66ec88fSEmmanuel Vadot	* "mediatek,mt7623-timer" for MT7623 compatible timers (GPT)
17*c66ec88fSEmmanuel Vadot	* "mediatek,mt8127-timer" for MT8127 compatible timers (GPT)
18*c66ec88fSEmmanuel Vadot	* "mediatek,mt8135-timer" for MT8135 compatible timers (GPT)
19*c66ec88fSEmmanuel Vadot	* "mediatek,mt8173-timer" for MT8173 compatible timers (GPT)
20*c66ec88fSEmmanuel Vadot	* "mediatek,mt8516-timer" for MT8516 compatible timers (GPT)
21*c66ec88fSEmmanuel Vadot	* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	For those SoCs that use SYST
24*c66ec88fSEmmanuel Vadot	* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
25*c66ec88fSEmmanuel Vadot	* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
26*c66ec88fSEmmanuel Vadot	* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot- reg: Should contain location and length for timer register.
29*c66ec88fSEmmanuel Vadot- clocks: Should contain system clock.
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel VadotExamples:
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot	timer@10008000 {
34*c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt6577-timer";
35*c66ec88fSEmmanuel Vadot		reg = <0x10008000 0x80>;
36*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
37*c66ec88fSEmmanuel Vadot		clocks = <&system_clk>;
38*c66ec88fSEmmanuel Vadot	};
39