aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2017-06-14 23:04:10 -0400
committerWei Xu <xuwei5@hisilicon.com>2017-06-15 06:50:23 -0400
commit751963306757e2d90d0d3946862eec38cbadd75b (patch)
tree4fd38e33d1bd934951db8a5ef686e4679a0d504a
parent388104979b66099d9003eafe3da3fc54466b7be9 (diff)
arm64: dts: hi3660: add sp804 timer node
The Hi3660 SoC comes with the sp804 timer in addition to the architecture timers. These ones are shutdown when reaching a deep idle states and a backup timer is needed. The sp804 belongs to another power domain and can fulfill the purpose of replacing temporarily an architecture timer when the CPU is idle. Describe it in the device tree, so it can be enabled at boot time. Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Leo Yan <leo.yan@linaro.org> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
-rw-r--r--arch/arm64/boot/dts/hisilicon/hi3660.dtsi11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index a6b91f1cadcd..e138973024c5 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -186,6 +186,17 @@
186 #reset-cells = <2>; 186 #reset-cells = <2>;
187 }; 187 };
188 188
189 dual_timer0: timer@fff14000 {
190 compatible = "arm,sp804", "arm,primecell";
191 reg = <0x0 0xfff14000 0x0 0x1000>;
192 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
193 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
194 clocks = <&crg_ctrl HI3660_OSC32K>,
195 <&crg_ctrl HI3660_OSC32K>,
196 <&crg_ctrl HI3660_OSC32K>;
197 clock-names = "timer1", "timer2", "apb_pclk";
198 };
199
189 i2c0: i2c@ffd71000 { 200 i2c0: i2c@ffd71000 {
190 compatible = "snps,designware-i2c"; 201 compatible = "snps,designware-i2c";
191 reg = <0x0 0xffd71000 0x0 0x1000>; 202 reg = <0x0 0xffd71000 0x0 0x1000>;