From patchwork Wed Apr 16 10:11:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3999531 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 34A179F387 for ; Wed, 16 Apr 2014 10:14:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FF38201DE for ; Wed, 16 Apr 2014 10:14:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 758D4201BF for ; Wed, 16 Apr 2014 10:14:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaMpP-0001cr-SL; Wed, 16 Apr 2014 10:12:27 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaMpH-0001U0-LO for linux-arm-kernel@lists.infradead.org; Wed, 16 Apr 2014 10:12:20 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4400HOCCBX8190@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 16 Apr 2014 19:11:57 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 73.B0.10092.C675E435; Wed, 16 Apr 2014 19:11:57 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-bd-534e576c0760 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7A.3B.29263.C675E435; Wed, 16 Apr 2014 19:11:56 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N44007IGCBU7Q30@mmp2.samsung.com>; Wed, 16 Apr 2014 19:11:56 +0900 (KST) From: Chanwoo Choi To: jic23@kernel.org, ch.naveen@samsung.com, kgene.kim@samsung.com Subject: [PATCHv3 2/2] iio: devicetree: Add DT binding documentation for Exynos3250 ADC Date: Wed, 16 Apr 2014 19:11:58 +0900 Message-id: <1397643118-6934-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397643118-6934-1-git-send-email-cw00.choi@samsung.com> References: <1397643118-6934-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsWyRsSkWDc33C/YYFoDs8Xd54cZLa5/ec5q Mf/IOVaL/jcLWS3OvVrJaPGgaRWTRe+Cq2wWmx5fY7VY2LaExWLekXcsFpd3zWGzmHF+H5PF 0usXmSwmTF/LYvH2znQWi9a9R9gtTv7pZbRYP+M1i4OQx5p5axg9Lvf1MnmsXP6FzWPzCi2P Tas62TzuXNsD5C2p9+jbsorR4/MmuQDOKC6blNSczLLUIn27BK6MT7NPMRbsEq7oPSfZwNgn 0MXIySEhYCIxf80JFghbTOLCvfVsXYxcHEICSxklzvWtYIcperj5ChNEYjqjxOqpk1ggnCYm iVU3l4NVsQloSex/cYMNxBYRcJL4+e0e2ChmgUXMErNXnwNLCAtESqz7sIsVxGYRUJX4tGkm M4jNK+Ai8eDLbzaIdXISH/Y8AhvKKeAq0XDqJFi9EFDN+Yf/GEGGSgh0ckgsv/S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qDQntfgQYzLQVROZpUST84FJJ68k3tDYxMzI0sjc0MLI 2Jw0YSVx3gOt1oFCAumJJanZqakFqUUwW5g4OKUaGI9e/LIhVcX10I+TjatOZpyti5/sOyE1 /euEsCVGP2Sf8er2Pn/NUih9W0B1Jm/AMk7nF2q3Y9dztmzKXXGXo+DyyUnsR26ram6yX3tI 333B49R3FXkTmDYEbN+R6rPZcqPeqRCBUv7sGPsvd48+eZJaPJ3v/Dq56kr3aVVPH8Su3r5P KPSAc7oSS3FGoqEWc1FxIgC2fPlHMAMAAA== 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-20140416_031219_853620_1C9C6616 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.7 (-----) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Chanwoo Choi , pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, sachin.kamat@linaro.org, t.figa@samsung.com, rdunlap@infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, 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=-2.6 required=5.0 tests=BAYES_00,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 DT binding documentation for Exynos3250 ADC IP. Exynos3250 has special clock ('sclk_tsadc') for ADC which provide clock to internal ADC. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Randy Dunlap Cc: Kukjin Kim Cc: Naveen Krishna Chatradhi Cc: Tomasz Figa Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- .../devicetree/bindings/arm/samsung/exynos-adc.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt index 5d49f2b..7532ec3 100644 --- a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt @@ -14,6 +14,8 @@ Required properties: for exynos4412/5250 controllers. Must be "samsung,exynos-adc-v2" for future controllers. + Must be "samsung,exynos-adc-v3" for + for exynos3250 controllers. - reg: Contains ADC register address range (base address and length) and the address of the phy enable register. - interrupts: Contains the interrupt information for the timer. The @@ -21,7 +23,11 @@ Required properties: the Samsung device uses. - #io-channel-cells = <1>; As ADC has multiple outputs - clocks From common clock binding: handle to adc clock. + From common clock binding: handle to sclk_tsadc clock + if using Exynos3250. - clock-names From common clock binding: Shall be "adc". + From common clock binding: Shall be "sclk_tsadc" + if using Exynos3250. - vdd-supply VDD input supply. Note: child nodes can be added for auto probing from device tree. @@ -41,6 +47,20 @@ adc: adc@12D10000 { vdd-supply = <&buck5_reg>; }; +If Exynos3250 uses ADC, +adc: adc@126C0000 { + compatible = "samsung,exynos-adc-v3"; + reg = <0x126C0000 0x100>, <0x10020718 0x4>; + interrupts = <0 137 0>; + #io-channel-cells = <1>; + io-channel-ranges; + + clock-names = "adc", "sclk_tsadc"; + clocks = <&cmu CLK_TSADC>, <&cmu CLK_SCLK_TSADC>; + + vdd-supply = <&buck5_reg>; +}; + Example: Adding child nodes in dts file