From patchwork Mon Apr 14 09:07:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3978771 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 04C42BFF02 for ; Mon, 14 Apr 2014 09:09:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08699201B4 for ; Mon, 14 Apr 2014 09:09:51 +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 CFE34201BC for ; Mon, 14 Apr 2014 09:09:48 +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 1WZcrj-0001uP-34; Mon, 14 Apr 2014 09:07:47 +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 1WZcrY-0001Rx-TD for linux-arm-kernel@lists.infradead.org; Mon, 14 Apr 2014 09:07:38 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4000G4ZK028KB0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Apr 2014 18:07:14 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id CD.B8.09028.245AB435; Mon, 14 Apr 2014 18:07:14 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-bc-534ba54283e4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 64.14.29263.145AB435; Mon, 14 Apr 2014 18:07:13 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4000LL1JZV4Q60@mmp1.samsung.com>; Mon, 14 Apr 2014 18:07:13 +0900 (KST) From: Chanwoo Choi To: jic23@kernel.org, ch.naveen@samsung.com, kgene.kim@samsung.com Subject: [PATCHv2 2/2] iio: devicetree: Add DT binding documentation for Exynos3250 ADC Date: Mon, 14 Apr 2014 18:07:06 +0900 Message-id: <1397466426-13870-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397466426-13870-1-git-send-email-cw00.choi@samsung.com> References: <1397466426-13870-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsWyRsSkWNdpqXewwd4nnBZ3nx9mtLj+5Tmr xfwj51gt+t8sZLU492olo8WDplVMFr0LrrJZbHp8jdViYdsSFot5R96xWFzeNYfNYsb5fUwW S69fZLKYMH0ti8XbO9NZLFr3HmG3WD/jNYuDoMeaeWsYPS739TJ5rFz+hc1j8wotj02rOoGM JfUefVtWMXp83iQXwBHFZZOSmpNZllqkb5fAlfFp9inGgl3CFb3nJBsY+wS6GDk5JARMJO7N OMcIYYtJXLi3nq2LkYtDSGApo8TB19+AHA6wopWNjBDxRYwSb382sUI4TUwSq36fYwbpZhPQ ktj/4gYbiC0i4CTx89s9sEnMAp3MEv+674MVCQtESsx42cMKYrMIqErMPf4UzOYVcJVYN2Mf 1BlyEh/2PGIH2cwp4CZxoF0RJCwEVPLu6R92kJkSAj/ZJU78vQo1R0Di2+RDLBCXykpsOsA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TURGYp0eR8YHLJK4k3NDYxM7I0Mje0MDI2J01YSZz3QKt1 oJBAemJJanZqakFqEcwWJg5OqQZGj4rnExieRcR/WNctJsj9I/1E3N09B3RWniorrRHavUL6 mdMErmYJ/6PX6sKDXq1+5DvXbO2S3BfpK18sZHisq/nlM+t3taqr2vL7bpycmKx8I/LtC8Yp 2yq6wwvO3jmsPn9/SMZ2tYYr7U6n0xgenWhfcqzVjjN9f9XH/3+Xic7sKjz/e2+ZlhJLcUai oRZzUXEiAAfgM4ckAwAA 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-20140414_020737_099281_A4DF75F1 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.0 (------) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-iio@vger.kernel.org, t.figa@samsung.com, rdunlap@infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Chanwoo Choi , 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.9 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