Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4435905imu; Sun, 25 Nov 2018 03:44:24 -0800 (PST) X-Google-Smtp-Source: AJdET5dmrrpjJ895XlugrPs6C4e/q9g+pleYtgFq+wdQtOIy/47ZljyzYaeFxTJPZWDFnMz1l719 X-Received: by 2002:aa7:87ce:: with SMTP id i14mr23193393pfo.20.1543146264460; Sun, 25 Nov 2018 03:44:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543146264; cv=none; d=google.com; s=arc-20160816; b=zR0cQKYfw6/7mY5uIfV0cLJOw1/UBvJaGmFD+dpthrc3ib/eRpaAKCM5WEjeXRQ8kO hVECxK5WCbBAELRmE44blL3S0dZjtxddOshhu1hqfWvShQr7trki7HG+pRhebDVUXkwl Hl4FEGh1G+oOGakQzdCwFYTvYu6Cwyd6vTGlOwDUUDWxV2CanQI3LYuwBfmMdjdBaFa1 qBhe+FGWJ4c/TQCQT8/ZuDJIXFsHMghM5+IWHPG/F3k5fUUsEhUOVd/dCjFBeW59l0gG 4iX7xoMlowq3oe/dDaXJ0ruzl0vudb7G7tsIUBiD6SVOiHY8QSiC8eLTx0N8e0ObJogJ qqQA== 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=WVvc76GEjS7zgMdrP5CzggByyhWD+mxpT1CchNV2BCc=; b=FuPqxiDJFMMPMSDQOg6Ois/W8GjRZKNAjkBJ2+WYrG/A1skM7idMbsHP56+/SKRbpu 99ls8ggTsglUZfY2iRdrl0ML6liUxXBNAuT/K+jncU9suNRcyPb7kZ9RaWP/v2C6lJrS 8ial1cL/Q6jkraJqbDnbIjN8W6jizxJ/LomACaZ3Qx9CWeBDAIrtfQTJqdYNe+u6N04h kGvlX0e1aEwGbC11vLpr8cepL2HSC4QGmZL7SqQrYj48XycCTzWf8rQRhE0SgzDygfVE bFmeQz202Lwt5UBwEm2hyqa8aqFReSheC+D5NO24SLu8EE63B7UEnD3OVYBvweFpRNmn Qm4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jNKVXVpL; 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 g21si26001197plo.435.2018.11.25.03.44.09; Sun, 25 Nov 2018 03:44:24 -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=jNKVXVpL; 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 S1726565AbeKYWdR (ORCPT + 99 others); Sun, 25 Nov 2018 17:33:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:38556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbeKYWdR (ORCPT ); Sun, 25 Nov 2018 17:33:17 -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 7B39720865; Sun, 25 Nov 2018 11:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543146142; bh=JTpd4lObLmq95OtAhon3vp/kzX0i8eyt2imME8s/zbM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jNKVXVpLoJxBlOhAITdgWTpeJyDzqU2wJoHnoE8v0QEwN7vKwnUir8tarvtKSMEqw yZIwJZu1eBPnNMVZLbrkjVEOBbUC0glGI50DMHdGBIbLxlvPyHECIB6qQo5VbJ4Hoy 82XxjugHKQ+oqHaPXKUgk3ZWxpL0GNFKyBAGAgEo= Date: Sun, 25 Nov 2018 11:42:17 +0000 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , Subject: Re: [PATCH v2 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC Message-ID: <20181125114217.2bf39cd1@archlinux> In-Reply-To: <1542728677-25899-1-git-send-email-stefan.popa@analog.com> References: <1542728677-25899-1-git-send-email-stefan.popa@analog.com> X-Mailer: Claws Mail 3.17.1 (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 Tue, 20 Nov 2018 17:44:37 +0200 Stefan Popa wrote: > Document support for AD7606 Analog to Digital Converter. >=20 > Signed-off-by: Stefan Popa This looks good to me, but given my recent inability to pick up on the subtle (and not so subtle) issues in DT patches, I'd like a review from the DT side if possible. The first patch needs some additional changes, but they probably don't effect the bindings. Thanks, Jonathan > --- > Changes in v2: > - fixed indentation issues. > - used gpios instead of gpio. > - added vendor prefix for conversion-start-gpios, first-data-gpios, > and range-gpios. >=20 > .../devicetree/bindings/iio/adc/adi,ad7606.txt | 54 ++++++++++++++++= ++++++ > MAINTAINERS | 1 + > 2 files changed, 55 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..02fae23 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt > @@ -0,0 +1,54 @@ > +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. > + > +Optional properties: > + > +- reset-gpios: must be the device tree identifier of the RESET pin. If s= pecified, > + it will be asserted during driver probe. > +- 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. > +- 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. > +- 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. > + > +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 0>; > + reset-gpios =3D <&gpio 27 0>; > + adi,first-data-gpios =3D <&gpio 22 0>; > + standby-gpios =3D <&gpio 24 0>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 843545d..6d63db4 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -845,6 +845,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