12e876b5dSRyder LeeMediaTek Timers 259311b19SStanley Chu--------------- 359311b19SStanley Chu 4*13b917a5SAngeloGioacchino Del RegnoMediaTek SoCs have different timers on different platforms, 5*13b917a5SAngeloGioacchino 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) 28377c0d7eSSeiya Wang * "mediatek,mt8192-timer" for MT8192 compatible timers (SYST) 29ac75c32eSSeiya Wang * "mediatek,mt8195-timer" for MT8195 compatible timers (SYST) 302e876b5dSRyder Lee * "mediatek,mt7629-timer" for MT7629 compatible timers (SYST) 312e876b5dSRyder Lee * "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST) 322e876b5dSRyder Lee 33*13b917a5SAngeloGioacchino Del Regno For those SoCs that use CPUX 34*13b917a5SAngeloGioacchino Del Regno * "mediatek,mt6795-systimer" for MT6795 compatible timers (CPUX) 35*13b917a5SAngeloGioacchino Del Regno 3659311b19SStanley Chu- reg: Should contain location and length for timer register. 3759311b19SStanley Chu- clocks: Should contain system clock. 3898c6bf2aSMatthias Brugger 3998c6bf2aSMatthias BruggerExamples: 4098c6bf2aSMatthias Brugger 4198c6bf2aSMatthias Brugger timer@10008000 { 4298c6bf2aSMatthias Brugger compatible = "mediatek,mt6577-timer"; 4398c6bf2aSMatthias Brugger reg = <0x10008000 0x80>; 4498c6bf2aSMatthias Brugger interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>; 4559311b19SStanley Chu clocks = <&system_clk>; 4698c6bf2aSMatthias Brugger }; 47