Received: by 10.192.165.156 with SMTP id m28csp735498imm; Mon, 16 Apr 2018 07:56:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+PWkIMfRjFi4z4dGhTvut1CDdUeBf1OxrENxuQpWe5athuPEFQR7I0q94h8ktp2SvaQ4xK X-Received: by 2002:a17:902:a50d:: with SMTP id s13-v6mr15559759plq.228.1523890606937; Mon, 16 Apr 2018 07:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523890606; cv=none; d=google.com; s=arc-20160816; b=XjN+Swiyo/QdU7+1bB5K+ujorKg80iuTEpcJfy0hft3lNrk2zVEPs2lHoyp/eQDpdu JgSwvXonJVtqX9hagBJBp6hwxQUuxi/KEkhprmJqj5tASpGaMspbcuNfMPrD1zarDP+V wYYclbQPi2+NAin2QHuHa1R+pvnK0RSXUxC8ipJOgdqtkW0wRulJgj8RY6chRp9fz6by jdrtFVQZfEKDnCsi/AFRwRRHVjDC94H24Htl6bF+7FCIKdBzWR8Ssl3R3V9UQluWn7Ib a9tQv2xYgP2GZ+xK3nEFXdAM06OZejv2ktpWvv71KPOvnklCOa/YLOo/f1ENdlMI/TMP R7Ew== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=ve7e22R7Ltklucka9iVTlqmIGlYUbYSQMyMPjGX1Mn8=; b=JWhZQtncb01HXRvABlmrQltx8bz9661jL/phkpuZoyEvNG6uwk4nh45jjkRLjzfe3X D4P7sxOW0eAOF3sxZlifHUEWs9Sx9TUIHS5MgcHxKcH2g3wK941OmkHJ/T6yncKRu4Of 1cW5BFNcTYrGpZTmpnikJ6MVERjsUzwh9Qxk+t5X4PLUpJtzT3Sh62EdQSxVARNGX2IC Doo0YTvekrpTefAxAhbLuC2X9MiO+KomUvhCDxAZh16vI3zMbSl/sc4KX7IuN1lY2As/ F9v6K3V4faTT3m0hAlg7lPwzhQ/GpxPNTVNPc7vHUF9q1baSFA1NnHFeJeTY3rLKguDv Gjhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=i6aLp1dv; 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 w9-v6si3751850plp.389.2018.04.16.07.56.33; Mon, 16 Apr 2018 07:56:46 -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; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=i6aLp1dv; 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 S1751150AbeDPOz1 (ORCPT + 99 others); Mon, 16 Apr 2018 10:55:27 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:54319 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbeDPOzZ (ORCPT ); Mon, 16 Apr 2018 10:55:25 -0400 Received: by mail-it0-f68.google.com with SMTP id h143-v6so11733205ita.4 for ; Mon, 16 Apr 2018 07:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ve7e22R7Ltklucka9iVTlqmIGlYUbYSQMyMPjGX1Mn8=; b=i6aLp1dvY0MFMju7EyyT9cktEGZTzaAKB9S1WtH/rz1M79j73HjWgmE4HK4QprHWpy ueMjgtS0mDqLTtJE44RxsofWklSzLg+NLjounA526ZeiJCiQibbiWJjSwYM8DoXEmvn+ pMDMuaqm2gaRK22rHEFD8QIpxRVTYDJqyfN5NNM2bSBE8y78e2xnLOG6Bxc34lDrZgVQ g7Ei03qK4wGKkx887BP33aJv0IxDXMlTRVUh0vqWmTx/igY8iLt6SXUMfYQpR2oVKt4s h5Fpn/8pjWaspf0rWvvw9TnWILUlv8HSNuhWxW67m64LZJhhjGD9ioYXrT+LYMnsNJMq QewQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ve7e22R7Ltklucka9iVTlqmIGlYUbYSQMyMPjGX1Mn8=; b=B3UntFD5MnYupnHB7wzVYprWQAAsArJfBUbdhxKsIkMLB+uB0Yw5yIiA2HuJr0Quvc ItkQzjRWRQ+3wK2DDCLGKq4DIHgomzemENJYWXtNj7sNF/9i759YScZBMkV6jY9wgXXk ihYPF2d/d0S1DPKBkA0FlP/tVhTgQ9FcwXPFCE6V/N8DaLtegrNN9WpEMIilBV6DUvN/ HK+OCpAuBWnrHH0kQktNw/4nGVKyu+MvGnK2Ij5bPlO8b1NMpJaPMASwQfB7oFIoWaGk AFjW+/IYhSX8dzJU6zIm9KVNjg/Qnu4QTGy8kvqo+tZ2GOgTdZt4y2Lq56P2C7oG/Yt0 SIqw== X-Gm-Message-State: ALQs6tBoC8zzy1y+cXWsQLcB4DSr/wQf+4nFnAtnnbhvgJyJE50rE8iV G05/pMYNwkvaj+TYZVBC6Nz0LHA4NCJfILmyiUgZiw== X-Received: by 2002:a24:808c:: with SMTP id g134-v6mr2489043itd.12.1523890524937; Mon, 16 Apr 2018 07:55:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.63.196 with HTTP; Mon, 16 Apr 2018 07:55:04 -0700 (PDT) In-Reply-To: <20180415163743.2fa992f9@archlinux> References: <1523637411-8531-1-git-send-email-hernan@vanguardiasur.com.ar> <1523637411-8531-12-git-send-email-hernan@vanguardiasur.com.ar> <20180415163743.2fa992f9@archlinux> From: =?UTF-8?Q?Hern=C3=A1n_Gonzalez?= Date: Mon, 16 Apr 2018 11:55:04 -0300 Message-ID: Subject: Re: [PATCH v2 11/14] staging: iio: ad7746: Add devicetree bindings documentation To: Jonathan Cameron Cc: knaack.h@gmx.de, lars@metafoo.de, Peter Meerwald-Stadler , 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 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 Sun, Apr 15, 2018 at 12:37 PM, Jonathan Cameron wrote= : > On Fri, 13 Apr 2018 13:36:48 -0300 > Hern=C3=A1n Gonzalez wrote: > >> Cc: Rob Herring >> Cc: Mark Rutland >> Cc: devicetree@vger.kernel.org >> Signed-off-by: Hern=C3=A1n 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/ad= 7746.txt >> >> diff --git a/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.tx= t 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 f= or the >> + capacitance to be measured. Possible values are: >> + * 0 =3D +-VDD/8 >> + * 1 =3D +-VDD/4 >> + * 2 =3D +-VDD * 3/8 >> + * 3 =3D +-VDD/2 (Default) >> + - adi,nexca_en: Invert excitation output A. > > The naming is rather odd. Why _en? > Just sticking to the original pdata naming. I'll rename it on next series. >> + - 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 =3D "ad7746"; >> + reg =3D <0x60>; >> + adi,exclvl =3D <1>; >> + adi,nexca_en; >> + }; >> +}; >