Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp817192imu; Fri, 16 Nov 2018 10:39:46 -0800 (PST) X-Google-Smtp-Source: AJdET5dHY++9tAcrWzLqrCmUJGVK0PBCTkzzujqR7CD7gw+kgQqpbjuksg4gJol0oguhGgE6mDDJ X-Received: by 2002:a17:902:780c:: with SMTP id p12mr11768865pll.197.1542393586723; Fri, 16 Nov 2018 10:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542393586; cv=none; d=google.com; s=arc-20160816; b=bPtkuoBUwuiFpfC+rlObmaVVEy3b9437rbay5ivGFmyX38VIb3PLefb8d9u57YexBf RxbQ1Q48OWr7AHKcTQXVJIAiEr+BoPkdvv7YhSByuhO0c3Q1t9kqUxtk6m5YmjUer+dH dCS8oxUvAkfumGSL6r4rIL7a+e9qiiC/18COhClZ9LmfszlfS/+Lj6/mXf/9qN2xpTsy est1wgYJwh9qvwfwy19lNurM+MQRerrWPBjBXsP540GNuLW8qHT588Pcwn94sIHoiN3u zGk+6nGJqHydI44k65kPIWD3v0mzSC1BtiherZNKo1K+EtVjPUpjKEz8JXlD/h6VcPrY oUTQ== 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=50ZjJ+7Cug80NhfjFhWyFPh1IVaQpYW6lIlg0juVwm4=; b=F3XnQJrHQtwfbEyXCxc2abjm/PSk8YE9fQfwllFBtHZqYxmgzEU6gabc8OPcHluNuQ SYjeVyZ+F9G3xVmAD42Wb0PqNfsEZDUJouzKCEvfBfZdJLy4lv9vsUyTsSx6ovjnbNs9 oufJAcs4wU0uBoZWaabR2+ylAt752OXboQqSLEyNQ73BDh+SUIhYajxBQAsJ2MqUtdM7 99LlT3/Ss8JRxOxEmAE0Sh2xyW1ChMAnP+VOmELmBJh8rMLCf1aivRvg8P7pKrZPHgqH 19x3Y1JFw2fha4ORR5qsSnJCXhYyIB7rp0+rN8kmCg7WaMlj8E8SNGKo/op8kVvPoatC gHqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2oRO3EPA; 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 b24si20662647pgi.308.2018.11.16.10.39.31; Fri, 16 Nov 2018 10:39:46 -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=2oRO3EPA; 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 S2390330AbeKQEwP (ORCPT + 99 others); Fri, 16 Nov 2018 23:52:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:53314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727710AbeKQEwO (ORCPT ); Fri, 16 Nov 2018 23:52:14 -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 3718720869; Fri, 16 Nov 2018 18:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542393523; bh=DrldKMhIgrhuGyXS6DpXoJAxDNiy9Mba8OkWY0OOFGA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2oRO3EPAVMbK/jHArnRHj3GxkNbiJd1qD9+AkFNuWa2skQZVcBevV72GUoD+OXJWA zmUTzs9MAw6MOLMkNN2kzalKSMZx9D9xu8Tbm4i8OvH2RdL5qNRU1M4qH7lRPnzjQk um0rJ4uJJ3TM68YxFI4GmL7kASTEXUOi0+OXUx4E= Date: Fri, 16 Nov 2018 18:38:38 +0000 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , Subject: Re: [PATCH v5 2/4] dt-bindings: iio: adc: Add common ADCs properties to a separate file Message-ID: <20181116183838.6a079255@archlinux> In-Reply-To: <1542108061-3471-1-git-send-email-stefan.popa@analog.com> References: <1542108061-3471-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 Tue, 13 Nov 2018 13:21:01 +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 Looks very sensible to me, but as we are looking at a some generalization here, I'd like an Ack from Rob if possible (as he suggested it I think :) Thanks, Jonathan > --- > Changes in v2, v3: > - N/A. > Changes in v4: > - Added this commit. > Changes in v5: > - Nothing changed. > > Documentation/devicetree/bindings/iio/adc/adc.txt | 23 +++++++++++++++++++++++ > 1 file changed, 23 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..5bbaa33 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/adc.txt > @@ -0,0 +1,23 @@ > +Common ADCs properties > + > +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>; > + ... > + }; > + };