From patchwork Thu Apr 2 11:03:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6146921 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8B0A09F1BE for ; Thu, 2 Apr 2015 11:03:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A08D02038F for ; Thu, 2 Apr 2015 11:03:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 98DA72038C for ; Thu, 2 Apr 2015 11:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbbDBLD3 (ORCPT ); Thu, 2 Apr 2015 07:03:29 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:43245 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbbDBLD1 (ORCPT ); Thu, 2 Apr 2015 07:03:27 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NM600KGHEW8VU70@mailout4.w1.samsung.com>; Thu, 02 Apr 2015 12:07:21 +0100 (BST) X-AuditID: cbfec7f4-b7f126d000001e9a-dd-551d214f36ce Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DB.BA.07834.F412D155; Thu, 02 Apr 2015 12:00:31 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NM600LD0EPKAI70@eusync3.samsung.com>; Thu, 02 Apr 2015 12:03:23 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Markus Reichl , Krzysztof Kozlowski Subject: [PATCH 2/2] ARM: dts: Enable S3C RTC on Trats2, Odroid-U3 and Arndale Octa Date: Thu, 02 Apr 2015 13:03:08 +0200 Message-id: <1427972588-6573-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1427972588-6573-1-git-send-email-k.kozlowski@samsung.com> References: <1427972588-6573-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNJMWRmVeSWpSXmKPExsVy+t/xq7r+irKhBp33zS3mHznHanH0d4HF 6xeGFv2PXzNbbHp8jdXi8q45bBYzzu9jsnh55AejA4fH3+fXWTxu3an32LSqk81j85J6j74t qxg9Pm+SC2CL4rJJSc3JLEst0rdL4Mq49T+kYKpMxfGp95gbGDeLdzFyckgImEicXNLNDmGL SVy4t56ti5GLQ0hgKaNE97LFrBBOH5PEtUcbmECq2ASMJTYvX8IGYosIrGCUuNhkCVLELDCT UaJt13IWkISwQKjE41c/wGwWAVWJqf/bwRp4Bdwk1v69ywaxTk7i5LHJrCA2p4C7xPO715m7 GDmAtrlJTPvhMYGRdwEjwypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkAD7soNx8TGrQ4wC HIxKPLw3PkmHCrEmlhVX5h5ilOBgVhLh/SMuGyrEm5JYWZValB9fVJqTWnyIkYmDU6qB0TDI 4VzC9wuNa6eZaW9u2sp8kP/yD6G7Xxh7b774fU/yl+9i9/Wp5ZXM/KZLE9V+i2kwrOIt5+Op TdnR8/v34QuLulk3bCv612DRXqYzpTNIiqEmuo6p+NSkCXpn9Qr0vkV8PrBGPdKybbuE9o5M Tk+ZO9Xl3BNun5IXjThU/rj9UapJ8HUfJZbijERDLeai4kQAIIzX6Q4CAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Extend the S3C RTC node with rtc_src clock so it could be operational. The rtc_src clock is provided by MAX77686 (Trats2 and Odroid-U3) or S2MPS11 (Arndale Octa). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas --- Patch depends on new file "dt-bindings/clock/samsung,s2mps11.h" from: 1. ARM: dts: Add bindings for 32kHz clocks from s2mps11 http://www.spinics.net/lists/linux-samsung-soc/msg43345.html --- arch/arm/boot/dts/exynos4.dtsi | 2 +- arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 +++++++ arch/arm/boot/dts/exynos4412-trats2.dts | 9 ++++++++- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 11 +++++++---- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 8ea2e374acaf..95efdf805f20 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -266,7 +266,7 @@ status = "disabled"; }; - rtc@10070000 { + rtc: rtc@10070000 { compatible = "samsung,s3c6410-rtc"; reg = <0x10070000 0x100>; interrupt-parent = <&pmu_system_controller>; diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index 44684e57ead1..2bf7447d02ef 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -13,6 +13,7 @@ /dts-v1/; #include "exynos4412-odroid-common.dtsi" +#include / { model = "Hardkernel ODROID-U3 board based on Exynos4412"; @@ -61,3 +62,9 @@ "Speakers", "SPKL", "Speakers", "SPKR"; }; + +&rtc { + status = "okay"; + clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>; + clock-names = "rtc", "rtc_src"; +}; diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 173ffa479ad3..c032cde11d5c 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -16,6 +16,7 @@ #include "exynos4412.dtsi" #include #include +#include / { model = "Samsung Trats 2 based on Exynos4412"; @@ -214,7 +215,7 @@ pinctrl-names = "default"; status = "okay"; - max77686_pmic@09 { + max77686: max77686_pmic@09 { compatible = "maxim,max77686"; interrupt-parent = <&gpx0>; interrupts = <7 0>; @@ -1304,3 +1305,9 @@ PIN_SLP(gpv4-0, INPUT, DOWN); }; }; + +&rtc { + status = "okay"; + clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>; + clock-names = "rtc", "rtc_src"; +}; diff --git a/arch/arm/boot/dts/exynos5420-arndale-octa.dts b/arch/arm/boot/dts/exynos5420-arndale-octa.dts index b82b6fa15f48..d78fcd997ce6 100644 --- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts +++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts @@ -13,6 +13,7 @@ #include "exynos5420.dtsi" #include #include +#include / { model = "Insignal Arndale Octa evaluation board based on EXYNOS5420"; @@ -38,10 +39,6 @@ }; }; - rtc@101E0000 { - status = "okay"; - }; - codec@11000000 { samsung,mfc-r = <0x43000000 0x800000>; samsung,mfc-l = <0x51000000 0x800000>; @@ -376,3 +373,9 @@ &cci { status = "disabled"; }; + +&rtc { + status = "okay"; + clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>; + clock-names = "rtc", "rtc_src"; +};