From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756030AbcFTSFG (ORCPT ); Mon, 20 Jun 2016 14:05:06 -0400 Received: from mail-ob0-f195.google.com ([209.85.214.195]:36106 "EHLO mail-ob0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752283AbcFTSFC (ORCPT ); Mon, 20 Jun 2016 14:05:02 -0400 Date: Mon, 20 Jun 2016 13:04:58 -0500 From: Rob Herring To: Raveendra Padasalagi Cc: Jonathan Cameron , Peter Meerwald-Stadler , Russell King , Arnd Bergmann , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Jonathan Richardson , Jon Mason , Florian Fainelli , Anup Patel , Ray Jui , Scott Branden , Pramod Kumar , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH v2 1/3] Documentation: DT: Add iproc-static-adc binding Message-ID: <20160620180458.GA10171@rob-hp-laptop> References: <1466330790-2820-1-git-send-email-raveendra.padasalagi@broadcom.com> <1466330790-2820-2-git-send-email-raveendra.padasalagi@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466330790-2820-2-git-send-email-raveendra.padasalagi@broadcom.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 19, 2016 at 03:36:28PM +0530, Raveendra Padasalagi wrote: > 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. Why are these needed? What child nodes can you have? > + > +- 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"; > + }; > -- > 1.9.1 >