12e876b5dSRyder LeeMediaTek Timers
259311b19SStanley Chu---------------
359311b19SStanley Chu
413b917a5SAngeloGioacchino Del RegnoMediaTek SoCs have different timers on different platforms,
513b917a5SAngeloGioacchino Del Regno- CPUX (ARM/ARM64 System Timer)
659311b19SStanley Chu- GPT (General Purpose Timer)
759311b19SStanley Chu- SYST (System Timer)
859311b19SStanley Chu
959311b19SStanley ChuThe proper timer will be selected automatically by driver.
1098c6bf2aSMatthias Brugger
1198c6bf2aSMatthias BruggerRequired properties:
1269a462b9SMars Cheng- compatible should contain:
132e876b5dSRyder Lee	For those SoCs that use GPT
1459311b19SStanley Chu	* "mediatek,mt2701-timer" for MT2701 compatible timers (GPT)
1559311b19SStanley Chu	* "mediatek,mt6580-timer" for MT6580 compatible timers (GPT)
16506ca49aSMaxim Kutnij	* "mediatek,mt6582-timer" for MT6582 compatible timers (GPT)
1759311b19SStanley Chu	* "mediatek,mt6589-timer" for MT6589 compatible timers (GPT)
1859311b19SStanley Chu	* "mediatek,mt7623-timer" for MT7623 compatible timers (GPT)
1959311b19SStanley Chu	* "mediatek,mt8127-timer" for MT8127 compatible timers (GPT)
2059311b19SStanley Chu	* "mediatek,mt8135-timer" for MT8135 compatible timers (GPT)
2159311b19SStanley Chu	* "mediatek,mt8173-timer" for MT8173 compatible timers (GPT)
22ef038a55SFabien Parent	* "mediatek,mt8516-timer" for MT8516 compatible timers (GPT)
2359311b19SStanley Chu	* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
242e876b5dSRyder Lee
252e876b5dSRyder Lee	For those SoCs that use SYST
26d14e0fe3SDehui Sun	* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
27b8b1ab13SAllen-KH Cheng	* "mediatek,mt8186-timer" for MT8186 compatible timers (SYST)
28b830774cSJohnson Wang	* "mediatek,mt8188-timer" for MT8188 compatible timers (SYST)
29377c0d7eSSeiya Wang	* "mediatek,mt8192-timer" for MT8192 compatible timers (SYST)
30ac75c32eSSeiya Wang	* "mediatek,mt8195-timer" for MT8195 compatible timers (SYST)
312e876b5dSRyder Lee	* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
322e876b5dSRyder Lee	* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
332e876b5dSRyder Lee
3413b917a5SAngeloGioacchino Del Regno	For those SoCs that use CPUX
3513b917a5SAngeloGioacchino Del Regno	* "mediatek,mt6795-systimer" for MT6795 compatible timers (CPUX)
36*27788e01SBernhard Rosenkränzer	* "mediatek,mt8365-systimer" for MT8365 compatible timers (CPUX)
3713b917a5SAngeloGioacchino Del Regno
3859311b19SStanley Chu- reg: Should contain location and length for timer register.
3959311b19SStanley Chu- clocks: Should contain system clock.
4098c6bf2aSMatthias Brugger
4198c6bf2aSMatthias BruggerExamples:
4298c6bf2aSMatthias Brugger
4398c6bf2aSMatthias Brugger	timer@10008000 {
4498c6bf2aSMatthias Brugger		compatible = "mediatek,mt6577-timer";
4598c6bf2aSMatthias Brugger		reg = <0x10008000 0x80>;
4698c6bf2aSMatthias Brugger		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
4759311b19SStanley Chu		clocks = <&system_clk>;
4898c6bf2aSMatthias Brugger	};
49