From patchwork Thu Jul 17 11:19:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4574641 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AE9C2C0514 for ; Thu, 17 Jul 2014 11:24:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8EEC2017D for ; Thu, 17 Jul 2014 11:24:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2F5F20160 for ; Thu, 17 Jul 2014 11:24:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757246AbaGQLY1 (ORCPT ); Thu, 17 Jul 2014 07:24:27 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:26629 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757068AbaGQLXf (ORCPT ); Thu, 17 Jul 2014 07:23:35 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8U00HM2SZ93UB0@mailout1.samsung.com>; Thu, 17 Jul 2014 20:23:33 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 6A.7D.13369.532B7C35; Thu, 17 Jul 2014 20:23:33 +0900 (KST) X-AuditID: cbfee690-b7fb56d000003439-ec-53c7b2353526 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 95.23.05196.432B7C35; Thu, 17 Jul 2014 20:23:33 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8U00FH6SYTBU80@mmp2.samsung.com>; Thu, 17 Jul 2014 20:23:32 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-iio@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, cw00.choi@samsung.com, gregkh@linuxfoundation.org, naveenkrishna.ch@gmail.com, lars@metafoo.de, cpgs@samsung.com, grundler@chromium.org, jic23@kernel.org Subject: [PATCH 3/4 v2] Documentation: dt-bindings: update exynos-adc.txt with syscon handle Date: Thu, 17 Jul 2014 16:49:52 +0530 Message-id: <1405595993-16661-4-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1405595993-16661-1-git-send-email-ch.naveen@samsung.com> References: <1405595993-16661-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRmVeSWpSXmKPExsWyRsSkVtd00/Fgg/u3uC1eHtK0uP7lOavF /CPnWC2aF69ns3h15AeTxYOmVUwWSybPZ7WYd+Qdi8XlXXPYLGac38dksWjbf2YHbo/ZDRdZ PHbOusvusWlVJ5vH/rlr2D2WvDnE6tG3ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZHxYdYS54 KFHR0tXO0sDYKNLFyMkhIWAiMWP2AXYIW0ziwr31bF2MXBxCAksZJZ49uMwGU3Tm8E9miMR0 RonDR88yQjj9TBKbti9iBqliEzCTOLhoNdgoEYE4iQ+X+9lBipgF9jNKvH69HywhDJRoOn4F zGYRUJXYd+wjK4jNK+Aq8engRqCpHEDrFCTmTLIBCXMKuEmsWPOHDSQsBFRy40EeyEgJgWPs Ep/Wr2aCGCMg8W3yIRaIVlmJT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1+9yvQn9vR8yrrpo9kXPR +2aLKuHdi4KqPuWraPcm9b4+csF4wdfKh/N7a2x/sajLTs2pO3Dye9rimVpVry4axDzoEJD5 fFp2750FTjOY0k9t3j6bZaOa1Zn5iY6ZitKXnyhWrZn5pLvyxK3GDTUMhqnyAVlpf1bdF54Q Jtl56nDKjRd/E8WVWIozEg21mIuKEwFOIggf1QIAAA== 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 updates the DT bindings in exynos-adc.txt with the syscon phandle to the ADC nodes. Also removes the 2nd "reg" property, which used to carry the ADC_PHY regiser base from PMU. Signed-off-by: Naveen Krishna Chatradhi To: devicetree@vger.kernel.org --- Changes since v1: rebased on top of Changwoo's v5 ADC patches for exynos3250 iio: adc: exynos_adc: Support Exynos3250 ADC and code clean https://lkml.org/lkml/2014/6/27/16 .../devicetree/bindings/iio/adc/exynos-adc.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/exynos-adc.txt b/Documentation/devicetree/bindings/iio/adc/exynos-adc.txt index 0b0ed85..1634df3 100644 --- a/Documentation/devicetree/bindings/iio/adc/exynos-adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/exynos-adc.txt @@ -1,10 +1,11 @@ Samsung Exynos Analog to Digital Converter bindings The devicetree bindings are for the new ADC driver written for -Exynos4 and upward SoCs from Samsung. +Exynos4 and Exynos5 series SoCs from Samsung. +Now supports Exynos3250 too. New driver handles the following -1. Supports ADC IF found on EXYNOS4412/EXYNOS5250 +1. Supports ADC IF found on Exynos3250/EXYNOS4412/EXYNOS5 series and future SoCs from Samsung 2. Add ADC driver under iio/adc framework 3. Also adds the Documentation for device tree bindings @@ -18,7 +19,7 @@ Required properties: for controllers compatible with ADC of Exynos3250. - reg: Contains ADC register address range (base address and - length) and the address of the phy enable register. + length) - interrupts: Contains the interrupt information for the timer. The format is being dependent on which interrupt controller the Samsung device uses. @@ -31,6 +32,8 @@ Required properties: - "sclk_adc" : ADC special clock (only for Exynos3250 and compatible ADC block) - vdd-supply VDD input supply. +- samsung,syscon-phandle Contains the PMU system controller node + (To access the ADC_PHY register) Note: child nodes can be added for auto probing from device tree. @@ -38,7 +41,7 @@ Example: adding device info in dtsi file adc: adc@12D10000 { compatible = "samsung,exynos-adc-v1"; - reg = <0x12D10000 0x100>, <0x10040718 0x4>; + reg = <0x12D10000 0x100>; interrupts = <0 106 0>; #io-channel-cells = <1>; io-channel-ranges; @@ -47,13 +50,14 @@ adc: adc@12D10000 { clock-names = "adc"; vdd-supply = <&buck5_reg>; + samsung,syscon-phandle = <&pmu_system_controller>; }; Example: adding device info in dtsi file for Exynos3250 with additional sclk adc: adc@126C0000 { compatible = "samsung,exynos3250-adc-v2"; - reg = <0x126C0000 0x100>, <0x10020718 0x4>; + reg = <0x126C0000 0x100>; interrupts = <0 137 0>; #io-channel-cells = <1>; io-channel-ranges; @@ -62,6 +66,7 @@ adc: adc@126C0000 { clock-names = "adc", "sclk_adc"; vdd-supply = <&buck5_reg>; + samsung,syscon-phandle = <&pmu_system_controller>; }; Example: Adding child nodes in dts file