Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1664883imu; Sun, 16 Dec 2018 06:09:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/XwZgyNizad6Z3/BIZHDr2sy0D+glDawz/JUPAPMJZcUd5yuUDVF6pN9qK5GQh6EsTE9VY8 X-Received: by 2002:a63:ea4f:: with SMTP id l15mr8918128pgk.102.1544969367524; Sun, 16 Dec 2018 06:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544969367; cv=none; d=google.com; s=arc-20160816; b=YfVczb1j9/fNU9QqwErIO8QQFj4G39T/ZGDrlVqr+/XtzUhJKCnriULhj9Qc+aGeZ7 3KVqx/4oKigU9vH8MeAM7pTITN25O8zRIjbtzMLjOoHw9Zl40K3pR0VA0qTV6m1ykMe7 0kN8aKWX8+Fa9wo4FMemxclFeVTgxC4uuOx4pPdjG2WFzPaWpYy9vH08hkZyhiE4q9gd dbcv91xtfsRKfx7/1TOI4H/XSzsaCvqYrIAqy/5itjCarIM3hFxQdp7pAnVusjJqT/xI vSGQ4AHqmbyHNsHuFa4Gswvn21KPyn5cPBBW0t9qdJN7o3myW4OoD/ebQADr97ARwOy7 idZA== 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=R/Zef8uHHmqvlesXa+IH8r7b8Gi2/zhySbF5Fy96eGQ=; b=sEKdxvj7JvMjWQymBcT7gwXjcgI/T8nFHEP7tMGRoaRfusnmC8HBdFsBy3YW9RrXnS rKyxBfIK2C+b5z8jt9v5mEkkg9G3mBNPZSSF4iMNhkiZPKZ0gleHdUhJXUostejNknin yzfUt37aB7tNJBvsH7wUAc8+s72zFHdJZuLCaBXXEd2uvAsKtLh4h6VRRwRh6EJc0SX/ AweHjEfEy0Igmmu66Xm6aG0BNRZayr20GwOof+ixTBVH+zzVQHHhdpQprWQLXssJyg5V RftS4411j5sbUXQsPkiWS2l+62xBuZh8KpBkqc7sXFAda9b7B82xMpoA6ta+oYPBUnu5 xtYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kDrMV9Nn; 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 18si8627246pgo.331.2018.12.16.06.09.11; Sun, 16 Dec 2018 06:09:27 -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=kDrMV9Nn; 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 S1730640AbeLPN6V (ORCPT + 99 others); Sun, 16 Dec 2018 08:58:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:35672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730382AbeLPN6U (ORCPT ); Sun, 16 Dec 2018 08:58:20 -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 42C51217FA; Sun, 16 Dec 2018 13:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544968699; bh=ebxWRIUNisKL5O5HUQrMw3kK3FhmsrwPNVmhvBKz1l8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kDrMV9NnAzmhNi7Ii5AA4YpEmAwE8ljTcZMPDkFcOm3+YbON7URmVpoo8REf4Zwdx Tz90/7UOFnXyndBb6+ErcO80I64kCK0J7M1HPV1uzVkcj8Q88bjYzfYn4ouRi8hwk9 cGgk2ZWnCRylatRQnosAut6l1/erdv6btlPr+eY8= Date: Sun, 16 Dec 2018 13:58:14 +0000 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , , Subject: Re: [PATCH 11/11] dt-bindings: iio: adc: Add docs for AD7606 ADC Message-ID: <20181216135814.79b616f2@archlinux> In-Reply-To: <1544705183-13288-12-git-send-email-stefan.popa@analog.com> References: <1544705183-13288-1-git-send-email-stefan.popa@analog.com> <1544705183-13288-12-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 Thu, 13 Dec 2018 14:46:23 +0200 Stefan Popa wrote: > Document support for AD7606 Analog to Digital Converter. >=20 > Signed-off-by: Stefan Popa > Reviewed-by: Rob Herring Will have to wait on this as the MAINTAINERS bit obviously isn't there yet. Otherwise I would have just added it now. Oh well, v2. 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 7256ce6..798e9a2 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -859,6 +859,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