Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2816444imu; Sun, 23 Dec 2018 08:25:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN695zJMA3oUejnEsM5a5CH7hozCjlTSDjgD8KOk+jyNu5OhpARYwtYvFv3ZAGO20Vw+imr3 X-Received: by 2002:a17:902:161:: with SMTP id 88mr10362836plb.306.1545582348334; Sun, 23 Dec 2018 08:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545582348; cv=none; d=google.com; s=arc-20160816; b=LGhGc+aMC3X/DbAI/LTBET2ikg5QIQgde1/m7dgHAqvrHkVtYBo34XMepof9pYOGaP sAvVKeKUC3+3G3+7mJaBPH5PDUvTfm45HvGhGt2ij05IpCb92uZPIFhVafSutHkzwEsW POqT2T0DBN3hKsQ8L5e3eTiIzyEVLQp8qPP08R7vCVNLV04M1jtwNCb9iKwjZY0cjmPW KaCzHw3vrdOSPfZU+/cFm4Jo8bdad960K5na6gdXhR79qxa9yYXmD95/BmoCpZ+EIg3F 5LMD3fTR1JAbiwMn2HYRSfEH6h3x2EQaFVM0Zh4O5UCC52a6PtvlR780R5LHGwagQbVt ykHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EE5JNQijoYH17QbOiqGZMFCFTeIceuzOR7hCRER0jIg=; b=ph1JFB09lpZ44KhSFhTDbSvoJPRXreTDzoRauTnUsk1+bVqTccxZ+UUlXzYfzhaWu6 8N/+H6iCONJOcZ8i1h9vHafq+t2usUY2FzM57cMXr/R8T4fhlY/kXKVO9JsX8v2RLaDQ fWwYzHVwFTVPzc7FAbZ3lnj1gzyCZ18xEhGxxoSD58S53NoFchXzibW44CaUOuXNtGfA FbkrExyJ5XKS0x11Ar3lPXVSQnp7viELB69/glYpe6TwCP18HwYWOHTD1M72GNnoqHcR /a9ToDTsGR+jVchsUMYAWCU2gKv9WD3ZuG3Y9IX7ez6scavdopAXHEa/3wmm2kay81vN 8g5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fVSFDARW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 133si7966060pfw.64.2018.12.23.08.25.32; Sun, 23 Dec 2018 08:25:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fVSFDARW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733220AbeLVR7B (ORCPT + 99 others); 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