xref: /freebsd/sys/contrib/device-tree/Bindings/timer/mediatek,mtk-timer.txt (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1MediaTek Timers
2---------------
3
4MediaTek SoCs have different timers on different platforms,
5- CPUX (ARM/ARM64 System Timer)
6- GPT (General Purpose Timer)
7- SYST (System Timer)
8
9The proper timer will be selected automatically by driver.
10
11Required properties:
12- compatible should contain:
13	For those SoCs that use GPT
14	* "mediatek,mt2701-timer" for MT2701 compatible timers (GPT)
15	* "mediatek,mt6580-timer" for MT6580 compatible timers (GPT)
16	* "mediatek,mt6582-timer" for MT6582 compatible timers (GPT)
17	* "mediatek,mt6589-timer" for MT6589 compatible timers (GPT)
18	* "mediatek,mt7623-timer" for MT7623 compatible timers (GPT)
19	* "mediatek,mt8127-timer" for MT8127 compatible timers (GPT)
20	* "mediatek,mt8135-timer" for MT8135 compatible timers (GPT)
21	* "mediatek,mt8173-timer" for MT8173 compatible timers (GPT)
22	* "mediatek,mt8516-timer" for MT8516 compatible timers (GPT)
23	* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
24
25	For those SoCs that use SYST
26	* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
27	* "mediatek,mt8186-timer" for MT8186 compatible timers (SYST)
28	* "mediatek,mt8188-timer" for MT8188 compatible timers (SYST)
29	* "mediatek,mt8192-timer" for MT8192 compatible timers (SYST)
30	* "mediatek,mt8195-timer" for MT8195 compatible timers (SYST)
31	* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
32	* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
33
34	For those SoCs that use CPUX
35	* "mediatek,mt6795-systimer" for MT6795 compatible timers (CPUX)
36	* "mediatek,mt8365-systimer" for MT8365 compatible timers (CPUX)
37
38- reg: Should contain location and length for timer register.
39- clocks: Should contain system clock.
40
41Examples:
42
43	timer@10008000 {
44		compatible = "mediatek,mt6577-timer";
45		reg = <0x10008000 0x80>;
46		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
47		clocks = <&system_clk>;
48	};
49