From patchwork Mon Mar 14 02:04:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 8575001 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80D07C0553 for ; Mon, 14 Mar 2016 02:07:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE59120154 for ; Mon, 14 Mar 2016 02:07:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E3AA20155 for ; Mon, 14 Mar 2016 02:07:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933372AbcCNCFp (ORCPT ); Sun, 13 Mar 2016 22:05:45 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:45187 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932693AbcCNCE3 (ORCPT ); Sun, 13 Mar 2016 22:04:29 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O4000WD3B3CR830@mailout3.samsung.com>; Mon, 14 Mar 2016 11:04:24 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 1A.43.04972.82C16E65; Mon, 14 Mar 2016 11:04:24 +0900 (KST) X-AuditID: cbfee68e-f793c6d00000136c-e4-56e61c28c3cc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id A1.B5.13906.82C16E65; Mon, 14 Mar 2016 11:04:24 +0900 (KST) Received: from chan.10.32.193.11 ([10.113.62.212]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O40004KGB3BRB50@mmp2.samsung.com>; Mon, 14 Mar 2016 11:04:24 +0900 (KST) From: Chanwoo Choi To: k.kozlowski@samsung.com, kgene@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com Cc: jh80.chung@samsung.com, andi.shyti@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, pankaj.dubey@samsung.com, cw00.choi@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 08/10] ARM: dts: Add rtc and adc dt node for exynos3250-artik5 module Date: Mon, 14 Mar 2016 11:04:14 +0900 Message-id: <1457921056-21257-10-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1457921056-21257-1-git-send-email-cw00.choi@samsung.com> References: <1457921056-21257-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDLMWRmVeSWpSXmKPExsWyRsSkQFdD5lmYwbWXMhbbjzxjtbj+5Tmr xfwj51gtJt2fwGJx41cbq8XrF4YW/Y9fM1tsenyN1eLyrjlsFjPO72OyWLT1C7vF4TftrBYz Jr9ks1i16w+jA5/Hzll32T02repk89i8pN6jb8sqRo/Pm+QCWKO4bFJSczLLUov07RK4Mu7/ X8pasI2zYn7PZZYGxpvsXYycHBICJhKH/zxhg7DFJC7cWw9kc3EICaxglLjx5TMbTNGmlftZ IBKzGCXaV+wA6xYS+MIo8WRDKojNJqAlsf/FDbAGEYE4iYkXIWxmgVlMEvPmF4LYwgLhEvtu T2EGsVkEVCW+/5oENodXwE3i7KsVTBDL5CQ+7HkEFucEiu868ooVYpcrUO8JRpAjJAROsUu0 9K6BGiQg8W3yIaDrOIASshKbDjBDzJGUO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SZz38f91YUIC6YklqdmpqQWpRTB9TBycUg2MDiavNGW0jh//yls1 V2/5g8+CydabFrevt7vfsG7ri6kPTf74bTVgsppUcL3plzxzedJqh/avb1StVZQEznH08v0y yt7BdqaLuYG5xZhXPm39S/YVy4/XxL//9+KKjlnvP/W3c8/sedB1PunJt7BZ7epJsyYdslzQ UyfbPVfkvLq77ow71qL5SizFGYmGWsxFxYkAB4VHPdwCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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, 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 This patch adds the RTC (Real Time Clock) and ADC (Analog Digital Converter) Device Tree node for exynos3250-artik5 module. The RTC is used for wakeup source and the ADC is used to read the analog data such as battery temperature. ADC need to connect the some H/W device such as battery. So, this patch just adds the default setting (clock, regulator). Signed-off-by: Chanwoo Choi --- arch/arm/boot/dts/exynos3250-artik5.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250-artik5.dtsi b/arch/arm/boot/dts/exynos3250-artik5.dtsi index 877e4827df83..673883fda480 100644 --- a/arch/arm/boot/dts/exynos3250-artik5.dtsi +++ b/arch/arm/boot/dts/exynos3250-artik5.dtsi @@ -48,6 +48,12 @@ }; }; +&adc { + vdd-supply = <&ldo7_reg>; + assigned-clocks = <&cmu CLK_SCLK_TSADC>; + assigned-clock-rates = <6000000>; +}; + &cpu0 { cpu0-supply = <&buck2_reg>; }; @@ -319,6 +325,12 @@ status = "okay"; }; +&rtc { + clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>; + clock-names = "rtc", "rtc_src"; + status = "okay"; +}; + &xusbxti { clock-frequency = <24000000>; };