From patchwork Tue Mar 11 07:54:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3809141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9923CBF549 for ; Tue, 11 Mar 2014 07:57:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C158F2021F for ; Tue, 11 Mar 2014 07:57:00 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 919D920221 for ; Tue, 11 Mar 2014 07:56:59 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNHXg-00067x-7H; Tue, 11 Mar 2014 07:56:04 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNHXT-0002rE-6d; Tue, 11 Mar 2014 07:55:51 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNHX6-0002oS-EO for linux-arm-kernel@lists.infradead.org; Tue, 11 Mar 2014 07:55:30 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2900DB9HZP4UD0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 11 Mar 2014 16:55:01 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 5E.2C.14803.551CE135; Tue, 11 Mar 2014 16:55:01 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-65-531ec1557f3e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 24.85.29263.551CE135; Tue, 11 Mar 2014 16:55:01 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.75.48]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N29004OTHZOIV80@mmp1.samsung.com>; Tue, 11 Mar 2014 16:55:01 +0900 (KST) From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com Subject: [PATCH 1/5] ARM: dts: exynos4x12: Add ADC's dt data to read raw data Date: Tue, 11 Mar 2014 16:54:50 +0900 Message-id: <1394524494-30641-2-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1394524494-30641-1-git-send-email-cw00.choi@samsung.com> References: <1394524494-30641-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsWyRsSkUDf0oFywQfcleYvrX56zWsw/co7V 4tyrlYwWvQuuslmcbXrDbrHp8TVWi8u75rBZzDi/j8ni9mVei6XXLzJZTJi+lsXi8IoDTBav DraxWKyf8ZrFgc9jzbw1jB4tzT1sHgs+X2H3WLn8C5vH5iX1Hn1bVjF6fN4k57FxbmgARxSX TUpqTmZZapG+XQJXxv5X/awF7VwV7a/WMjcwzuLoYuTkkBAwkTiwoYMNwhaTuHBvPZDNxSEk sJRR4tXeCywwRVentjFBJBYxSjx7uZkZwmlkklh36xgjSBWbgJbE/hc3wEaJCOhKTJl5hxWk iFngPpPEj+OrwBLCAr4SVzfNZAexWQRUJZbunAdm8wq4SqzrusEEsU5O4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rrsw9xCjBwawkwuu0FijEm5JYWZValB9fVJqTWnyI MRnoqonMUqLJ+cAUklcSb2hsYmZkaWRuaGFkbE6asJI474FW60AhgfTEktTs1NSC1CKYLUwc nFINjAxZifsFf34uKc89tvr67nDfif8Zmh/PS9jfwbdOqCM2SDXicPpsrdvWMX9PijacvPDL 7/VKtxvdD7IavvRnK+1fNLemjEvR/ke+9odF2Zvfu0+vq+55IhXQdF7kBV8c40e7uHnKjSJc m+Zce/rTeMnjLboL9BYt2aO0LOOsV8qJxzFNDCenaSixFGckGmoxFxUnAgBYNk4zFwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140311_035528_741083_7F477B5B X-CRM114-Status: UNSURE ( 8.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, rob.herring@calxeda.com, Chanwoo Choi , kyungmin.park@samsung.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 This patch add ADC(Analog to Digital Converter)'s dt data to get raw data with IIO subsystem. Usually, ADC is used to check temperature, jack type, and so on. Register map - <0x126C0000 0x100> : ADC register's base address - <0x10020718 0x4> : ADC_PHY_CONTROL, TS-ADC control register address Clock - <&clock 326> : ADC clock (clock name :'tsadc') Interrupt - INTG10[3] : ADC for General ADC Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- arch/arm/boot/dts/exynos4x12.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos4x12.dtsi b/arch/arm/boot/dts/exynos4x12.dtsi index 5c412aa..5a3e551 100644 --- a/arch/arm/boot/dts/exynos4x12.dtsi +++ b/arch/arm/boot/dts/exynos4x12.dtsi @@ -80,6 +80,18 @@ }; }; + adc: adc@126C0000 { + compatible = "samsung,exynos-adc-v1"; + reg = <0x126C0000 0x100>, <0x10020718 0x4>; + interrupt-parent = <&combiner>; + interrupts = <10 3>; + clocks = <&clock 326>; + clock-names = "adc"; + #io-channel-cells = <1>; + io-channel-ranges; + status = "disabled"; + }; + pinctrl_2: pinctrl@03860000 { compatible = "samsung,exynos4x12-pinctrl"; reg = <0x03860000 0x1000>;