159311b19SStanley ChuMediatek Timers 259311b19SStanley Chu--------------- 359311b19SStanley Chu 459311b19SStanley ChuMediatek 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: 1259311b19SStanley Chu * "mediatek,mt2701-timer" for MT2701 compatible timers (GPT) 1359311b19SStanley Chu * "mediatek,mt6580-timer" for MT6580 compatible timers (GPT) 1459311b19SStanley Chu * "mediatek,mt6589-timer" for MT6589 compatible timers (GPT) 1559311b19SStanley Chu * "mediatek,mt7623-timer" for MT7623 compatible timers (GPT) 1659311b19SStanley Chu * "mediatek,mt8127-timer" for MT8127 compatible timers (GPT) 1759311b19SStanley Chu * "mediatek,mt8135-timer" for MT8135 compatible timers (GPT) 1859311b19SStanley Chu * "mediatek,mt8173-timer" for MT8173 compatible timers (GPT) 1959311b19SStanley Chu * "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT) 2059311b19SStanley Chu * "mediatek,mt6765-timer" for MT6765 compatible timers (SYST) 2159311b19SStanley Chu- reg: Should contain location and length for timer register. 2259311b19SStanley Chu- clocks: Should contain system clock. 2398c6bf2aSMatthias Brugger 2498c6bf2aSMatthias BruggerExamples: 2598c6bf2aSMatthias Brugger 2698c6bf2aSMatthias Brugger timer@10008000 { 2798c6bf2aSMatthias Brugger compatible = "mediatek,mt6577-timer"; 2898c6bf2aSMatthias Brugger reg = <0x10008000 0x80>; 2998c6bf2aSMatthias Brugger interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>; 3059311b19SStanley Chu clocks = <&system_clk>; 3198c6bf2aSMatthias Brugger }; 32