Received: by 10.213.65.68 with SMTP id h4csp340585imn; Fri, 23 Mar 2018 05:56:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELvnsYWqDVmCNENBsS3z/IAFQCpxocMTyaoJWghyH8pD6r8L7DNAM/ctdmkEtMJLk4bWwKDK X-Received: by 10.99.124.92 with SMTP id l28mr20894054pgn.51.1521809784365; Fri, 23 Mar 2018 05:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521809784; cv=none; d=google.com; s=arc-20160816; b=YJrCBo/swA56ixyEHGxGPp8rIYy94qW14wPApW7crK0fBVj2KLaGjqtJ8LKQvUZyrV ieGijEV7thhjWY/g5DrbLgrieZgNiTRmp9SwqlOVolxSSRjnDfNvsGvL/gbFQakLQGzs 1iuuUimmUSdhJH0eXAdXgkTmupI3key5WASeR59ZEERzakCkPMySfer+uqk4aAjMkuz6 svm+n2reeAK3qk79oIvE/uORx7Cu6AXi8me22Uet+D7mUyBaDjS/85tBRFPwHLNDKack RfJpo5TVsj6bdfTbUI/umiaIppAkUD+Ow3yyfmYONKjFqZcFPioR3ie/BIvWqDtkrv+p dEEA== 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 :arc-authentication-results; bh=b8InTprkbL79RspPT8NqWZ7Nhx+gKyfBk3wQEn7Kyso=; b=KMtJM1zxVJSR/TY+Z9wwq5kCEgpHHmBxR0aZjOMXBnDzxYzYnlQAO07zDbHuyRmSzN vxqD6HSHaxloeOOeimsKq2s72Z0lPl98sI7cEqZrMtnFz4QnXP7xuRzk0TVTyP3Phcyh ekI85yRaW6movxDgdpGkcrFPrK7g3HIgWJvIEx5Deqi0ctRD74F5qMKMuPg5GsYSImSi +iYbC6U8uJL/+3IVECOyS8oDLx9V7obeAYBvizLPk6csqF7Eqp/vNwaypKTEW1NDqpOe HIXve6c3oNuod11S7YyqfTeRegBP9hhu4m3HGJuLl2W/tRRvqINWhSdyJ3Wx3ZR89zR3 U2Bg== 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 bb9-v6si7587414plb.373.2018.03.23.05.56.09; Fri, 23 Mar 2018 05:56:24 -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 S1752406AbeCWMzO convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Mar 2018 08:55:14 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40648 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751983AbeCWMzM (ORCPT ); Fri, 23 Mar 2018 08:55:12 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 47C5B31674EBF; Fri, 23 Mar 2018 20:55:08 +0800 (CST) Received: from localhost (10.202.226.45) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 23 Mar 2018 20:55:04 +0800 Date: Fri, 23 Mar 2018 12:54:55 +0000 From: Jonathan Cameron To: =?ISO-8859-1?Q?Hern=E1n?= Gonzalez CC: , , , , , , Subject: Re: [PATCH 09/11] staging: iio: ad7746: Add devicetree bindings documentation Message-ID: <20180323135455.00007341@huawei.com> In-Reply-To: <1521642539-4845-10-git-send-email-hernan@vanguardiasur.com.ar> References: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> <1521642539-4845-10-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.202.226.45] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Mar 2018 11:28:57 -0300 Hern?n Gonzalez wrote: > Signed-off-by: Hern?n Gonzalez Device tree bindings must be cc'd to the device tree binding maintainers and the devicetree binding list. Comments inline but don't forget to cc them on v2. Jonathan > --- > .../devicetree/bindings/staging/iio/cdc/ad7746.txt | 32 ++++++++++++++++++++++ > 1 file changed, 32 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..13d0056 > --- /dev/null > +++ b/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt > @@ -0,0 +1,32 @@ > +Analog Devices AD7746/5/7 capacitive sensor driver > + > +Required properties: > + - compatible: Should be one of > + * "adi,ad7745": When using the AD7745 device > + * "adi,ad7746": When using the AD7746 device > + * "adi,ad7747": When using the AD7747 device The when using bit is kind of obvious. Probably no need to state. > + - reg: The 7-bits long I2c address of the device > + > +Optional properties: > + - adi,exclvl: 0 = +-VDD/8 > + 1 = +-VDD/4 > + 2 = +-VDD * 3/8 > + 3 = +-VDD/2 (Default) That needs a comment to explain what exactly it is rather than just documenting the enum values. > + - adi,nexca_en: Invert excitation output A. > + - 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 { > + > + < . . . > > + > + ad7746: ad7746@60 { > + compatible = "ad7746"; > + reg = <0x60>; > + adi,exclvl = <1>; > + adi,nexca_en; > + }; > +};