Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2915331imu; Sun, 11 Nov 2018 03:55:31 -0800 (PST) X-Google-Smtp-Source: AJdET5e8fXL+/xMJdDO0/W/FOPq9+25pputjzmI5Z8+UouN15LamAzsD7m53NlVauAx/CJXyV0Nu X-Received: by 2002:a63:cc43:: with SMTP id q3mr13642378pgi.291.1541937331170; Sun, 11 Nov 2018 03:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541937331; cv=none; d=google.com; s=arc-20160816; b=fU15ydxsweHLJ8Qlam2ICbAu8MIbEkzYw5NvqBXobt2aNr4x5713X9gyCAFO9fvpRG eIKPkq7Wj+aKUlDL+BJ4+t0+73oKEozz2AAlL7WM2MlLyjns8uayIfWt6bLLqEFKpwru AkkfKRQVQzufNJkApAbJmdDWNhrNlJOnQuFEpbOMu6frCtw4aMlakTKERCtuI2uFJpVA IMiuKifmCO1Axo+rYjMzkwfy+WmC3mvA3MIyXgpBX4JqoyCLQrr+Lbt4Y4N+BUz2izty sp9NpfgDfvS5YQTdK6AhjfjZInCofFXOcXUn8lM3woIz9ZOT4ToPI0esjzypGFdkH0B7 J7Xg== 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=lf0cROPuH+K8phsREqfWOe0B/LJreNpuEkkSUker7jQ=; b=OP0h/zqWmPpON6+a1KWM5yAccBk2NSNDd6njtfF3ZyZr/E8r5/8S4FjwOJ4JxKxi9N yn1q3odlmXgXm4hwlipsLpNX59Y2FqlF6RTqhOOaxzgkittP606xMr8aVtjH91oQMGuD j5kOmVispprimFunwQCzkUgAwzSpQWxHxDbWsstOhyl8UVSvCoI2KSMuvmUB3/wYo3K7 EEyQk2CfobfpIDucaZDr+oVUlZecng9DHohrdX9n0WWHLSCT1Rh+WKWjKHRHJfPaQCPz aj+icqiZgc99RrPIOc6bb3IlIGeVbbArVSlVXdG+s/OAh9U4m3OVmXldXEnZ4DXiJCdr /mug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XeLCsnT9; 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 65-v6si15219806pfl.220.2018.11.11.03.55.15; Sun, 11 Nov 2018 03:55:31 -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=XeLCsnT9; 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 S1727814AbeKKVnR (ORCPT + 99 others); Sun, 11 Nov 2018 16:43:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:36646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727492AbeKKVnQ (ORCPT ); Sun, 11 Nov 2018 16:43:16 -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 0345320871; Sun, 11 Nov 2018 11:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541937294; bh=mRBA81kVA/IEwzF4599vYfonGTa0bjeKL/OfE7Hy/gw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XeLCsnT9/MPQKEHd3QuiHAbcSV1qlfGMKbV2b3ngqBxymvwOUVq9hRNSQ6+8DBrmm 0v0X5V2oZ5ym5zLJAt7KURmnZTDrKrxLzyLVH49h0KgMJShH7gSkYJTwzMjV+hCYqP by/5CnRlB87KSrBQQk3h21pFleXmHaghDio+wDjU= Date: Sun, 11 Nov 2018 11:54:49 +0000 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , Subject: Re: [PATCH v4 2/4] dt-bindings: iio: adc: Add common ADCs properties to a separate file Message-ID: <20181111115449.14c415cb@archlinux> In-Reply-To: <1541778055-7629-1-git-send-email-stefan.popa@analog.com> References: <1541778055-7629-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=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Nov 2018 17:40:55 +0200 Stefan Popa wrote: > There are several ADC drivers that depend on the same device tree > bindings. Rather than continue to duplicate the properties, this patch > adds a common adc binding document that can be referenced. For beginning, > only two properties are documented. > > Signed-off-by: Stefan Popa Hi Stefan, Looks good to me. Given the 'generic' nature of this one though I would like to leave some time for Rob and other devicetree specialists to sanity check it. Thanks, Jonathan > --- > Changes in v2, v3: > - N/A. > Changes in v4: > - Added this commit. > > Documentation/devicetree/bindings/iio/adc/adc.txt | 25 +++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/adc.txt > > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.txt b/Documentation/devicetree/bindings/iio/adc/adc.txt > new file mode 100644 > index 0000000..1e3cc21 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/adc.txt > @@ -0,0 +1,25 @@ > +Common ADCs properties > + > +This binding is a work-in-progress > + > +Optional properties for child nodes: > +- bipolar : Boolean, if set the channel is used in bipolar mode. > +- diff-channels : Differential channels muxed for this ADC. The first value > + specifies the positive input pin, the second value the negative > + input pin. > + > +Example: > + adc@0 { > + compatible = "some,adc"; > + ... > + channel@0 { > + bipolar; > + diff-channels = <0 1>; > + ... > + }; > + > + channel@1 { > + diff-channels = <2 3>; > + ... > + }; > + };