Received: by 10.192.165.156 with SMTP id m28csp2768730imm; Sun, 15 Apr 2018 08:39:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49hBMmTweFfTngbG1QP9I9ZkHQGRgZuMi4127TWvTQPgizpga0JH2p6r64Tik9/P5532UWJ X-Received: by 10.167.134.70 with SMTP id a6mr18614846pfo.203.1523806747114; Sun, 15 Apr 2018 08:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523806747; cv=none; d=google.com; s=arc-20160816; b=0nQGAc5ClZHbuXH0U38i7K45zFalp7uwnSvCioWHyUfVqkBu37axryJ5Bsia2O6Dc9 l8RNMOJGGRfU1Aw84qhVyjITskEHXJQQpfS7iOhOmSwrvyA2P6Y+xglY7e+1jFilhne0 KDAvgPb3IBNYd74MJOFScvmBdkWySM9e7CohEGbTw3E7Dfnmc1Kxi+21eMFxpoCsRazO Ht6jbg1bQc4+Cabp0BkzIOw4twz1/ZpN9U1z++OjA29vozr3mf6kxY74QLeqvEFnYiaT PRlqlKjgJmBSmVglQ+pecDtUKDd311fWcjdMv127DaxZ+ez51Q0Wed+Pfevqa5ixqJ/c MGwQ== 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 :dmarc-filter:arc-authentication-results; bh=Zfo29v1y5jUnuihnhq/IJyPInkSSrd4g2/gxXetd+UE=; b=jppbJaj3Vh4SdW8jOCW55X918xY83Bry0J5U9lloZKWiWRpqX3wfDuq8RwJdicftqj hP9SYWJBTiIWVlOop1usNOcUAa1u9pIpFuPeezcD8KeP2CfZLh+QQ/wbjT7Wl/zeGjTD K3Zh+GMs7j3kEd0N70EodcaKF3fSDAV4FfGVDRVnOepsCMoj/njAzCRzd3egW4MXt+6g wBBYGASqK3zG+G8hhyhh6mszPNVZINzrgR4IZSoDnwzee6REjikkuYrl06YXOnvq9GDd zH9W4MVatnGiF3zryCgri6FTgSrqz+wc3HlXtnB0GFqQuyuFIAXtxR5CQaUasEe0A78s nByg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n76si9105521pfi.122.2018.04.15.08.38.53; Sun, 15 Apr 2018 08:39:07 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752829AbeDOPhv convert rfc822-to-8bit (ORCPT + 99 others); Sun, 15 Apr 2018 11:37:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbeDOPht (ORCPT ); Sun, 15 Apr 2018 11:37:49 -0400 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 75DFD2176F; Sun, 15 Apr 2018 15:37:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75DFD2176F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jic23@kernel.org Date: Sun, 15 Apr 2018 16:37:43 +0100 From: Jonathan Cameron To: =?UTF-8?B?SGVybsOhbg==?= Gonzalez Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: Re: [PATCH v2 11/14] staging: iio: ad7746: Add devicetree bindings documentation Message-ID: <20180415163743.2fa992f9@archlinux> In-Reply-To: <1523637411-8531-12-git-send-email-hernan@vanguardiasur.com.ar> References: <1523637411-8531-1-git-send-email-hernan@vanguardiasur.com.ar> <1523637411-8531-12-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Apr 2018 13:36:48 -0300 Hernán Gonzalez wrote: > Cc: Rob Herring > Cc: Mark Rutland > Cc: devicetree@vger.kernel.org > Signed-off-by: Hernán Gonzalez A few comments inline. Thanks, Jonathan > --- > .../devicetree/bindings/staging/iio/cdc/ad7746.txt | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt > > diff --git a/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt b/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt > new file mode 100644 > index 0000000..7740f05 > --- /dev/null > +++ b/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt > @@ -0,0 +1,34 @@ > +Analog Devices AD7746/5/7 capacitive sensor driver > + > +Required properties: > + - compatible: Should be one of > + * "adi,ad7745" > + * "adi,ad7746" > + * "adi,ad7747" > + - reg: The 7-bits long I2c address of the device > + > +Optional properties: > + - adi,exclvl: This property defines the excitation voltage level for the > + capacitance to be measured. Possible values are: > + * 0 = +-VDD/8 > + * 1 = +-VDD/4 > + * 2 = +-VDD * 3/8 > + * 3 = +-VDD/2 (Default) > + - adi,nexca_en: Invert excitation output A. The naming is rather odd. Why _en? > + - adi,nexcb_en: Invert excitation output B. > + > +Example: > +Here exclvl would be 1 (VDD/4), Excitation pin A would be inverted and > +Excitation pin B would NOT be inverted. > + > +i2c2 { > + > + < . . . > What does this spacer add to the example? Sure, there can be other devices, but no need to illustrate that here. > + > + ad7746: ad7746@60 { > + compatible = "ad7746"; > + reg = <0x60>; > + adi,exclvl = <1>; > + adi,nexca_en; > + }; > +};