Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1440324

[PATCH] arm64: dts: Fix RTC by providing rtc_src clock

From Krzysztof Kozlowski <k.kozlowski@samsung.com>
Newsgroups linux.kernel
Subject [PATCH] arm64: dts: Fix RTC by providing rtc_src clock
Date 2016-07-11 09:40 +0200
Message-ID <rTDYS-3YK-21@gated-at.bofh.it> (permalink)
References <rTDYS-3YK-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Alim Akhtar <alim.akhtar@samsung.com>

Add RTC source clock as Exynos7 needs source (32.768KHz) clock
for RTC block. Without this currently S3C RTC driver probe is broken
on this SoC.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts
index d8767b00862e..14cd3a14fb7c 100644
--- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts
+++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts
@@ -12,6 +12,7 @@
 /dts-v1/;
 #include "exynos7.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/clock/samsung,s2mps11.h>
 
 / {
 	model = "Samsung Exynos7 Espresso board based on EXYNOS7";
@@ -43,6 +44,8 @@
 
 &rtc {
 	status = "okay";
+	clocks = <&clock_ccore PCLK_RTC>, <&s2mps15_osc S2MPS11_CLK_AP>;
+	clock-names = "rtc", "rtc_src";
 };
 
 &watchdog {
-- 
1.9.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL/PATCH] Fix for current cycle - v4.7 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-07-11 09:40 +0200
  [PATCH] arm64: dts: Fix RTC by providing rtc_src clock Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-07-11 09:40 +0200
    Re: [PATCH] arm64: dts: Fix RTC by providing rtc_src clock Arnd Bergmann <arnd@arndb.de> - 2016-07-14 14:50 +0200

csiph-web