diff mbox

arm: dts: genmai: Enable rtc and rtc_x1 clock

Message ID 1491235398-26549-1-git-send-email-jacopo+renesas@jmondi.org (mailing list archive)
State Accepted
Commit e533a459f07c2b7bcc60121032b3b24d0c58133a
Delegated to: Simon Horman
Headers show

Commit Message

Jacopo Mondi April 3, 2017, 4:03 p.m. UTC
Enable the 32.768 kHz RTC_X1 clock by setting the frequency value to
non-zero and enable the realtime clock.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---

This patch depends on Chris Brandt's series
"rtc: Reuse rtc-sh driver to support RZ/A1"
Please queue this on top of that.

 arch/arm/boot/dts/r7s72100-genmai.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

--
2.7.4

Comments

Simon Horman April 4, 2017, 5:17 p.m. UTC | #1
On Mon, Apr 03, 2017 at 06:03:18PM +0200, Jacopo Mondi wrote:
> Enable the 32.768 kHz RTC_X1 clock by setting the frequency value to
> non-zero and enable the realtime clock.
> 
> Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
> ---
> 
> This patch depends on Chris Brandt's series
> "rtc: Reuse rtc-sh driver to support RZ/A1"
> Please queue this on top of that.

Thanks, done.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts
index 118a8e2..52a7b58 100644
--- a/arch/arm/boot/dts/r7s72100-genmai.dts
+++ b/arch/arm/boot/dts/r7s72100-genmai.dts
@@ -44,6 +44,10 @@ 
 	clock-frequency = <48000000>;
 };

+&rtc_x1_clk {
+	clock-frequency = <32768>;
+};
+
 &mtu2 {
 	status = "okay";
 };
@@ -59,6 +63,10 @@ 
 	};
 };

+&rtc {
+	status = "okay";
+};
+
 &scif2 {
 	status = "okay";
 };