From patchwork Sun Jun 19 10:06:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raveendra Padasalagi X-Patchwork-Id: 9186101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1CD01601C0 for ; Sun, 19 Jun 2016 10:09:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A83625E13 for ; Sun, 19 Jun 2016 10:09:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F34FC2714B; Sun, 19 Jun 2016 10:09:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AA72C25E13 for ; Sun, 19 Jun 2016 10:09:46 +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 1bEZcv-0002W2-58; Sun, 19 Jun 2016 10:06:49 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bEZcr-0002U1-9M for linux-arm-kernel@lists.infradead.org; Sun, 19 Jun 2016 10:06:46 +0000 Received: by mail-pa0-x236.google.com with SMTP id wo6so5292832pac.3 for ; Sun, 19 Jun 2016 03:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V58aqrUREd56mLr6e3FFbEfPKatGHpI5NWzup1oCUQ4=; b=fgXQc+b1Q/6pyyPEW7zCRmmI5eUBwdoch4Yg0atpVA9tjanuBZ76Bv2TTTUFV2hQjg QWG8ydjnmjNER+SqZeeOEGrDHywhK4+r65iuUDQhbwl/GiRvUX3qopDT0S64XLzRwgca 10rUI94nKFjNBYjI9Z3o86JFQIiZ4FpL1AJc0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V58aqrUREd56mLr6e3FFbEfPKatGHpI5NWzup1oCUQ4=; b=TiPbcnIvXcMrS+kRtwZvLwSd8KEPtlod5dZzfWavqHGGAZB615eA4stlRJU67+efJI OciyMmJB4eQJ9A92cewDsw+RY2insf2TgG+ffIO+BPdDhk7YiTsR6CZMSCreZfFr2tSl dXk+St/KMA0ZKk466EikSWIDn1dz5mUcgLMuJMaHNYtufed00Pma/giuJD02xmZUniKi Gp4SZ5ohawKtgmtrmWsFebPN+tBYs1eNeRx7hcOGDJzyTmWCSZjNhSHG00Ubr5Xmaf2b vMATFaKWYHmoAkHeYVwYX2jOM92sQQF0z9xh6YG6Ajpl/r+g1peaeOOh7h1WH2rJuLuj aEOg== X-Gm-Message-State: ALyK8tINIEPrsAWOvV1s8PuSmmUygBfOScFf5uFucCfZ2VCrM4KtXDqIk9LeWaizQ7mfJfvi X-Received: by 10.66.145.195 with SMTP id sw3mr14466244pab.36.1466330784345; Sun, 19 Jun 2016 03:06:24 -0700 (PDT) Received: from rpadasal-OptiPlex-7010.ban.broadcom.com ([202.140.36.35]) by smtp.gmail.com with ESMTPSA id fn3sm80295442pab.20.2016.06.19.03.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Jun 2016 03:06:23 -0700 (PDT) From: Raveendra Padasalagi To: Jonathan Cameron , Peter Meerwald-Stadler , Rob Herring , Russell King , Arnd Bergmann , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/3] Documentation: DT: Add iproc-static-adc binding Date: Sun, 19 Jun 2016 15:36:28 +0530 Message-Id: <1466330790-2820-2-git-send-email-raveendra.padasalagi@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466330790-2820-1-git-send-email-raveendra.padasalagi@broadcom.com> References: <1466330790-2820-1-git-send-email-raveendra.padasalagi@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160619_030645_438461_93657CD7 X-CRM114-Status: GOOD ( 13.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Pramod Kumar , Florian Fainelli , Anup Patel , Pawel Moll , Ian Campbell , Jon Mason , Ray Jui , Scott Branden , linux-kernel@vger.kernel.org, Jonathan Richardson , bcm-kernel-feedback-list@broadcom.com, Kumar Gala , Raveendra Padasalagi MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch adds devicetree binding document for broadcom's iproc-static-adc controller driver. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/iio/adc/brcm,iproc-static-adc.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/brcm,iproc-static-adc.txt diff --git a/Documentation/devicetree/bindings/iio/adc/brcm,iproc-static-adc.txt b/Documentation/devicetree/bindings/iio/adc/brcm,iproc-static-adc.txt new file mode 100644 index 0000000..1de0dfa --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/brcm,iproc-static-adc.txt @@ -0,0 +1,43 @@ +* Broadcom's IPROC Static ADC controller + +Required properties: + +- compatible: Must be "brcm,iproc-static-adc" + +- #address-cells: Specify the number of u32 entries needed in child nodes. + Should set to 1. + +- #size-cells: Specify number of u32 entries needed to specify child nodes size + in reg property. Should set to 1. + +- adc-syscon: Handler of syscon node defining physical base address of the + controller and length of memory mapped region. + +- #io-channel-cells = <1>; As ADC has multiple outputs + refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details. + +- clocks: Clock used for this block. + +- clock-names: Clock name should be given as tsc_clk. + +- interrupts: interrupt line number. + +For example: + + ts_adc_syscon: ts_adc_syscon@180a6000 { + compatible = "brcm,iproc-ts-adc-syscon","syscon"; + reg = <0x180a6000 0xc30>; + }; + + adc: adc@180a6000 { + compatible = "brcm,iproc-static-adc"; + #address-cells = <1>; + #size-cells = <1>; + adc-syscon = <&ts_adc_syscon>; + #io-channel-cells = <1>; + io-channel-ranges; + clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>; + clock-names = "tsc_clk"; + interrupts = ; + status = "disabled"; + };