mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
13b917a585
Document the "CPUXGPT" CPU General Purpose Timer, used as ARM/ARM64 System Timer on MediaTek platforms and add the MT6795 compatible for it. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Link: https://lore.kernel.org/r/20220613133819.35318-2-angelogioacchino.delregno@collabora.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
MediaTek Timers
|
|
---------------
|
|
|
|
MediaTek SoCs have different timers on different platforms,
|
|
- CPUX (ARM/ARM64 System Timer)
|
|
- GPT (General Purpose Timer)
|
|
- SYST (System Timer)
|
|
|
|
The proper timer will be selected automatically by driver.
|
|
|
|
Required properties:
|
|
- compatible should contain:
|
|
For those SoCs that use GPT
|
|
* "mediatek,mt2701-timer" for MT2701 compatible timers (GPT)
|
|
* "mediatek,mt6580-timer" for MT6580 compatible timers (GPT)
|
|
* "mediatek,mt6582-timer" for MT6582 compatible timers (GPT)
|
|
* "mediatek,mt6589-timer" for MT6589 compatible timers (GPT)
|
|
* "mediatek,mt7623-timer" for MT7623 compatible timers (GPT)
|
|
* "mediatek,mt8127-timer" for MT8127 compatible timers (GPT)
|
|
* "mediatek,mt8135-timer" for MT8135 compatible timers (GPT)
|
|
* "mediatek,mt8173-timer" for MT8173 compatible timers (GPT)
|
|
* "mediatek,mt8516-timer" for MT8516 compatible timers (GPT)
|
|
* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
|
|
|
|
For those SoCs that use SYST
|
|
* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
|
|
* "mediatek,mt8186-timer" for MT8186 compatible timers (SYST)
|
|
* "mediatek,mt8192-timer" for MT8192 compatible timers (SYST)
|
|
* "mediatek,mt8195-timer" for MT8195 compatible timers (SYST)
|
|
* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
|
|
* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
|
|
|
|
For those SoCs that use CPUX
|
|
* "mediatek,mt6795-systimer" for MT6795 compatible timers (CPUX)
|
|
|
|
- reg: Should contain location and length for timer register.
|
|
- clocks: Should contain system clock.
|
|
|
|
Examples:
|
|
|
|
timer@10008000 {
|
|
compatible = "mediatek,mt6577-timer";
|
|
reg = <0x10008000 0x80>;
|
|
interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
|
|
clocks = <&system_clk>;
|
|
};
|