12e876b5dSRyder LeeMediaTek Timers 259311b19SStanley Chu--------------- 359311b19SStanley Chu 42e876b5dSRyder LeeMediaTek SoCs have two different timers on different platforms, 559311b19SStanley Chu- GPT (General Purpose Timer) 659311b19SStanley Chu- SYST (System Timer) 759311b19SStanley Chu 859311b19SStanley ChuThe proper timer will be selected automatically by driver. 998c6bf2aSMatthias Brugger 1098c6bf2aSMatthias BruggerRequired properties: 1169a462b9SMars Cheng- compatible should contain: 122e876b5dSRyder Lee For those SoCs that use GPT 1359311b19SStanley Chu * "mediatek,mt2701-timer" for MT2701 compatible timers (GPT) 1459311b19SStanley Chu * "mediatek,mt6580-timer" for MT6580 compatible timers (GPT) 15506ca49aSMaxim Kutnij * "mediatek,mt6582-timer" for MT6582 compatible timers (GPT) 1659311b19SStanley Chu * "mediatek,mt6589-timer" for MT6589 compatible timers (GPT) 1759311b19SStanley Chu * "mediatek,mt7623-timer" for MT7623 compatible timers (GPT) 1859311b19SStanley Chu * "mediatek,mt8127-timer" for MT8127 compatible timers (GPT) 1959311b19SStanley Chu * "mediatek,mt8135-timer" for MT8135 compatible timers (GPT) 2059311b19SStanley Chu * "mediatek,mt8173-timer" for MT8173 compatible timers (GPT) 21ef038a55SFabien Parent * "mediatek,mt8516-timer" for MT8516 compatible timers (GPT) 2259311b19SStanley Chu * "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT) 232e876b5dSRyder Lee 242e876b5dSRyder Lee For those SoCs that use SYST 25d14e0fe3SDehui Sun * "mediatek,mt8183-timer" for MT8183 compatible timers (SYST) 26*b8b1ab13SAllen-KH Cheng * "mediatek,mt8186-timer" for MT8186 compatible timers (SYST) 27377c0d7eSSeiya Wang * "mediatek,mt8192-timer" for MT8192 compatible timers (SYST) 28ac75c32eSSeiya Wang * "mediatek,mt8195-timer" for MT8195 compatible timers (SYST) 292e876b5dSRyder Lee * "mediatek,mt7629-timer" for MT7629 compatible timers (SYST) 302e876b5dSRyder Lee * "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST) 312e876b5dSRyder Lee 3259311b19SStanley Chu- reg: Should contain location and length for timer register. 3359311b19SStanley Chu- clocks: Should contain system clock. 3498c6bf2aSMatthias Brugger 3598c6bf2aSMatthias BruggerExamples: 3698c6bf2aSMatthias Brugger 3798c6bf2aSMatthias Brugger timer@10008000 { 3898c6bf2aSMatthias Brugger compatible = "mediatek,mt6577-timer"; 3998c6bf2aSMatthias Brugger reg = <0x10008000 0x80>; 4098c6bf2aSMatthias Brugger interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>; 4159311b19SStanley Chu clocks = <&system_clk>; 4298c6bf2aSMatthias Brugger }; 43