From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DCA4C43612 for ; Sat, 22 Dec 2018 17:59:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D12A820866 for ; Sat, 22 Dec 2018 17:59:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545501541; bh=lAAZCFw4DlnkOCCuYcVStPQclYyVqywrQNY1Kx+RIvY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=vYsJlPS3T51dyd77HSvuzW7q2pl4xSyzRj0qF7Cdqk5Q6dbduUn14dzZ1dNBbONMs udqPwRxpxo4wdlPEv5N+ES/NW2yyISqzsQF3AxkXJiLrAi6MB/kM+/Cq8gG+DSO24C GyWOmhQXclBhUxsQQpuZVTJmFS4L24XviRa090Rc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387590AbeLVR7B (ORCPT ); Sat, 22 Dec 2018 12:59:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:38518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeLVR7A (ORCPT ); Sat, 22 Dec 2018 12:59:00 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5ADCA2080D; Sat, 22 Dec 2018 17:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545501539; bh=lAAZCFw4DlnkOCCuYcVStPQclYyVqywrQNY1Kx+RIvY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fVSFDARWngKHtX3bGSqp89xTJMdyMYffYOoJw1AP8FDHo47OgeBBaNDi7PMTVysIe GGxC9obf7YslJilYG25OZwJi6S+BMg8meB30Po1uhcmZ2uqYbVc4edlaPKjjr7wQ3A 2/KX8qJI3qPNmhYdvhI672eBjtyuq20pGTR4Bl68= Date: Sat, 22 Dec 2018 17:58:52 +0000 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , Subject: Re: [PATCH v2 6/6] dt-bindings: iio: adc: Add docs for AD7606 ADC Message-ID: <20181222175852.52ff83f7@archlinux> In-Reply-To: <1545049420-16484-7-git-send-email-stefan.popa@analog.com> References: <1545049420-16484-1-git-send-email-stefan.popa@analog.com> <1545049420-16484-7-git-send-email-stefan.popa@analog.com> X-Mailer: Claws Mail 3.17.2 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Dec 2018 14:23:40 +0200 Stefan Popa wrote: > Document support for AD7606 Analog to Digital Converter. >=20 > Signed-off-by: Stefan Popa > Reviewed-by: Rob Herring Applied to the togreg branch of iio.git and pushed out as testing for this to be mostly ignored. Thanks, Jonathan > --- > .../devicetree/bindings/iio/adc/adi,ad7606.txt | 65 ++++++++++++++++= ++++++ > MAINTAINERS | 1 + > 2 files changed, 66 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7606.= txt >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt b/D= ocumentation/devicetree/bindings/iio/adc/adi,ad7606.txt > new file mode 100644 > index 0000000..d7b6241 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt > @@ -0,0 +1,65 @@ > +Analog Devices AD7606 Simultaneous Sampling ADC > + > +Required properties for the AD7606: > + > +- compatible: Must be one of > + * "adi,ad7605-4" > + * "adi,ad7606-8" > + * "adi,ad7606-6" > + * "adi,ad7606-4" > +- reg: SPI chip select number for the device > +- spi-max-frequency: Max SPI frequency to use > + see: Documentation/devicetree/bindings/spi/spi-bus.txt > +- spi-cpha: See Documentation/devicetree/bindings/spi/spi-bus.txt > +- avcc-supply: phandle to the Avcc power supply > +- interrupts: IRQ line for the ADC > + see: Documentation/devicetree/bindings/interrupt-controller/interrupts.= txt > +- adi,conversion-start-gpios: must be the device tree identifier of the = CONVST pin. > + This logic input is used to initiate conversions on the analog > + input channels. As the line is active high, it should be marked > + GPIO_ACTIVE_HIGH. > + > +Optional properties: > + > +- reset-gpios: must be the device tree identifier of the RESET pin. If s= pecified, > + it will be asserted during driver probe. As the line is active h= igh, > + it should be marked GPIO_ACTIVE_HIGH. > +- standby-gpios: must be the device tree identifier of the STBY pin. Thi= s pin is used > + to place the AD7606 into one of two power-down modes, Standby mode or > + Shutdown mode. As the line is active low, it should be marked > + GPIO_ACTIVE_LOW. > +- adi,first-data-gpios: must be the device tree identifier of the FRSTDA= TA pin. > + The FRSTDATA output indicates when the first channel, V1, is > + being read back on either the parallel, byte or serial interface. > + As the line is active high, it should be marked GPIO_ACTIVE_HIGH. > +- adi,range-gpios: must be the device tree identifier of the RANGE pin. = The polarity on > + this pin determines the input range of the analog input channels.= If > + this pin is tied to a logic high, the analog input range is =C2= =B110V for > + all channels. If this pin is tied to a logic low, the analog inpu= t range > + is =C2=B15V for all channels. As the line is active high, it shou= ld be marked > + GPIO_ACTIVE_HIGH. > +- adi,oversampling-ratio-gpios: must be the device tree identifier of th= e over-sampling > + mode pins. As the line is active high, it should be marked > + GPIO_ACTIVE_HIGH. > + > +Example: > + > + adc@0 { > + compatible =3D "adi,ad7606-8"; > + reg =3D <0>; > + spi-max-frequency =3D <1000000>; > + spi-cpol; > + > + avcc-supply =3D <&adc_vref>; > + > + interrupts =3D <25 IRQ_TYPE_EDGE_FALLING>; > + interrupt-parent =3D <&gpio>; > + > + adi,conversion-start-gpios =3D <&gpio 17 GPIO_ACTIVE_HIGH>; > + reset-gpios =3D <&gpio 27 GPIO_ACTIVE_HIGH>; > + adi,first-data-gpios =3D <&gpio 22 GPIO_ACTIVE_HIGH>; > + adi,oversampling-ratio-gpios =3D <&gpio 18 GPIO_ACTIVE_HIGH > + &gpio 23 GPIO_ACTIVE_HIGH > + &gpio 26 GPIO_ACTIVE_HIGH>; > + standby-gpios =3D <&gpio 24 GPIO_ACTIVE_LOW>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index bc9f816..d039f66 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -860,6 +860,7 @@ L: linux-iio@vger.kernel.org > W: http://ez.analog.com/community/linux-device-drivers > S: Supported > F: drivers/iio/adc/ad7606.c > +F: Documentation/devicetree/bindings/iio/adc/ad7606.txt > =20 > ANALOG DEVICES INC AD9389B DRIVER > M: Hans Verkuil