diff mbox series

[5/5] arm64: dts: sprd: Add one suspend timer

Message ID daf81b1cc8dd6048a9fcb7682a5937b72eb46dfd.1531881619.git.baolin.wang@linaro.org
State Accepted
Commit b2d94b3ff0638441460ce1fb23258cbd3374fd8e
Headers show
Series [1/5] arm64: dts: sprd: Add SC27XX breathing light controller device | expand

Commit Message

(Exiting) Baolin Wang July 23, 2018, 6:10 a.m. UTC
On Spreadtrum platform, the current clocksource for timekeeping will be
stopped in suspend state, thus add one always-on timer to calculate the
suspend time.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

---
 arch/arm64/boot/dts/sprd/whale2.dtsi |    6 ++++++
 1 file changed, 6 insertions(+)

-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi
index e9db910..eb6be56 100644
--- a/arch/arm64/boot/dts/sprd/whale2.dtsi
+++ b/arch/arm64/boot/dts/sprd/whale2.dtsi
@@ -146,6 +146,12 @@ 
 				clocks = <&ext_32k>;
 			};
 
+			timer@40050020 {
+				compatible = "sprd,sc9860-suspend-timer";
+				reg = <0 0x40050020 0 0x20>;
+				clocks = <&ext_32k>;
+			};
+
 			hwlock: hwspinlock@40500000 {
 				compatible = "sprd,hwspinlock-r3p0";
 				reg = <0 0x40500000 0 0x1000>;