From patchwork Fri Jul 11 09:06:28 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: 4531951 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 5E0D4BEEAA for ; Fri, 11 Jul 2014 09:13:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EE66201EC for ; Fri, 11 Jul 2014 09:13:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CDD5A20204 for ; Fri, 11 Jul 2014 09:13:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751285AbaGKJLk (ORCPT ); Fri, 11 Jul 2014 05:11:40 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:27452 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752242AbaGKJKm (ORCPT ); Fri, 11 Jul 2014 05:10:42 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8J00L4NITS1Q60@mailout4.samsung.com>; Fri, 11 Jul 2014 18:10:40 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id FC.F1.13369.F0AAFB35; Fri, 11 Jul 2014 18:10:39 +0900 (KST) X-AuditID: cbfee690-b7fb56d000003439-2b-53bfaa0f978b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8D.CF.04943.9F9AFB35; Fri, 11 Jul 2014 18:10:17 +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 <0N8J004T1ISA9210@mmp2.samsung.com>; Fri, 11 Jul 2014 18:10:17 +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 Subject: [PATCH 3/4] Documentation: dt-bindings: update exynos-adc.txt with syscon handle Date: Fri, 11 Jul 2014 14:36:28 +0530 Message-id: <1405069589-10388-4-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1405069589-10388-1-git-send-email-ch.naveen@samsung.com> References: <1405069589-10388-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeLIzCtJLcpLzFFi42JZI2JSq8u/an+wwYfJ1hYvD2laXP/ynNVi /pFzrBbNi9ezWbw68oPJYsnk+awW8468Y7G4vGsOm8WM8/uYLBZt+8/swOUxu+Eii8fOWXfZ PfbPXcPuseTNIVaPvi2rGD0+b5ILYIvisklJzcksSy3St0vgyrgzuZu9YK14xatDa1gbGN8I dTFyckgImEj0Pn/FBGGLSVy4t56ti5GLQ0hgKaPE64bLzDBFr7deYYRITGeUOHXqIguE088k 0b3oIDtIFZuAmcTBRavBbBGBOIkPl/vZQYqYBdYySrRtuwqWEBaIlvh3ahPYWBYBVYl/258A jeXg4BVwlbj41wnElBBQkJgzyQakglPATeLbv0awaiGgii23usH2SgjsYpc4dWEfO8QYAYlv kw+xQPTKSmw6AHW0pMTBFTdYJjAKL2BkWMUomlqQXFCclF5kolecmFtcmp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9nUvu5wd1/yb/fTgs59TQz8GPeZd+OqgZ6plqUz7zmezrdQ+v1we Irp71k0vu39hhkwTrf++KTrV6pzGuDj39o/lXZs6Cr+nPCmUrTXuExFfLC5m9OJtSOG7OycX NRtsVmIpzkg01GIuKk4EAM+CbNDLAgAA 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=-7.5 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 --- .../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 b87749a..808bbfa 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