[PATCH 6/7] arm64: dts: mediatek: mt6795: Add general purpose timer node
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Fri May 13 10:16:16 PDT 2022
Add the timer node, enabling two GPTs, of which one will be used as
sched_clock.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
---
arch/arm64/boot/dts/mediatek/mt6795.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/arch/arm64/boot/dts/mediatek/mt6795.dtsi
index b6f7681cc151..217d99621558 100644
--- a/arch/arm64/boot/dts/mediatek/mt6795.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6795.dtsi
@@ -198,6 +198,14 @@ watchdog: watchdog at 10007000 {
timeout-sec = <20>;
};
+ timer: timer at 10008000 {
+ compatible = "mediatek,mt6795-timer",
+ "mediatek,mt6577-timer";
+ reg = <0 0x10008000 0 0x1000>;
+ interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
+ clocks = <&system_clk>, <&clk32k>;
+ };
+
sysirq: intpol-controller at 10200620 {
compatible = "mediatek,mt6795-sysirq",
"mediatek,mt6577-sysirq";
--
2.35.1
More information about the Linux-mediatek
mailing list