Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752670AbbDBLDc (ORCPT ); Thu, 2 Apr 2015 07:03:32 -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 X-AuditID: cbfec7f4-b7f126d000001e9a-dd-551d214f36ce 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3729 Lines: 126 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 --- 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"; +}; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/