# \[PATCH v2 2/4\] DT: marvell,mmp2: add clock to the timer

- From: Lubomir Rintel \<lkundrak@v3.sk\>
- Date: 2018-09-18 20:55:19 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2018/09/5384474
- Thread: https://ratatoskr.run/linux-arm-kernel/2018/09/5384473/t.md

```text
The timer needs the timer clock to be enabled, otherwise it stops
ticking.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 arch/arm/boot/dts/mmp2.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi
index 766bbb8495b6..58e0098a007d 100644
--- a/arch/arm/boot/dts/mmp2.dtsi
+++ b/arch/arm/boot/dts/mmp2.dtsi
@@ -130,6 +130,7 @@
 				compatible = "mrvl,mmp-timer";
 				reg = <0xd4014000 0x100>;
 				interrupts = <13>;
+				clocks = <&soc_clocks MMP2_CLK_TIMER>;
 			};
 
 			uart1: uart@d4030000 {
-- 
2.17.1
```
