Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3894414pxk; Tue, 29 Sep 2020 08:50:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/k5NHlzPZU+XjluEY+paHLpN2MlsfdcRFyYaFvtnAuC7arWxDWT8EV5C1wKHkXndzED9y X-Received: by 2002:a50:fe98:: with SMTP id d24mr3898685edt.223.1601394604788; Tue, 29 Sep 2020 08:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601394604; cv=none; d=google.com; s=arc-20160816; b=LnmI570EblGnLjmoqlDvqMx+Gzlpmb15lQWE/ijwImG2HcI7T9Z02pwxnZ5YWPfazo K72iCY4zj3S6bu3wfcuPaMoIl7ryoUOPSzPwmk7kodZ9kEjUhCDfz+GQgjAin9tJPh6b N06E4Qmpzj6jECBwtpo+cHlTpPzlb1hNmorkQeO6lGexKIKPrrtRNGw2kGA4o/9h+ly1 A6+NsEGojrFb4GeaXm/j2IS4SoLvD41ehRPbd6dmgbm84lkxIAqnMtj0dyuIUmA18sHY uzPBZXSkTx8zFigmoxNYijNreDjggb0RNElvU6eeHyxWmmdeZBVge3ctfkZRelKGtmQ0 4g3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=F9SfyGjZV/yJYc+e92Zu8sYhFDpj+3ud5eMHT2s9R7o=; b=hvwntZltcGcCpLUyILMvhI4SwYTUGV6HqQTdmycFUDXm4ijQM5VEMuCXSUL1vuVBwg AMRYsXahSQqr8G0ZybJCCUQKJAdh927uV96nUAeG2QeyHlQLCOcvHnmQhmHryfV0RwyJ lnrVOp+HLKVLlBQprYPGolI8EG699Mw7vbUhukmfWX7WvBsaIge+t1AcCo4b5Gu8qngM cSPaT+L7cOHLQZhmzuov0CnzQEngZE9ybifyz0gHC53PlKXJGBye75pUhrIBIRFOP6J/ QKKzUplqFT/KMj7couD23oO+9fCH3S/MWieef5L+JCPJqWWKCWiq+m9qof1pCf6Wlj33 4pwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Gguhhg/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l25si2898000eje.688.2020.09.29.08.49.41; Tue, 29 Sep 2020 08:50:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Gguhhg/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729491AbgI2Ps0 (ORCPT + 99 others); Tue, 29 Sep 2020 11:48:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:40426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbgI2PsZ (ORCPT ); Tue, 29 Sep 2020 11:48:25 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 3C091206D9; Tue, 29 Sep 2020 15:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601394505; bh=6SKwS3C1V5S09Uxcad3TrXPJvtELClUCeuRhFQpI8U4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Gguhhg/0Dzsf1E0GiaI0TKxmkTqjVcMLRg1Cs2898cjucdqEyAuGjnyN00CzyzI6k 8vLLDHz1Ca+t+ySzc+akeZ6lUTbGx+KChbu57BEw6OHVAT5uN1IMDEJMnH+Y3M7aov 8bvo8KPmcBRz33dR+wHFjNr8GM/lMbHpCokGMNU8= Date: Tue, 29 Sep 2020 16:48:21 +0100 From: Jonathan Cameron To: Cristian Pop Cc: , , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH v7 4/5] dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label Message-ID: <20200929164821.49f83061@archlinux> In-Reply-To: <20200928090959.88842-4-cristian.pop@analog.com> References: <20200928090959.88842-1-cristian.pop@analog.com> <20200928090959.88842-4-cristian.pop@analog.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Sep 2020 12:09:58 +0300 Cristian Pop wrote: > Optional attribute for better identification of the channels. > > Signed-off-by: Cristian Pop Dt-bindings should be cc'd to Rob + the dt list. +CC > --- > Changes in v7: > - Add "additionalProperties: false" for channel child nodes. > - Fix "reg" spelling. > .../bindings/iio/adc/adi,ad7768-1.yaml | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml > index d3733ad8785a..6be43bf5c1e0 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml > @@ -29,6 +29,12 @@ properties: > interrupts: > maxItems: 1 > > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > vref-supply: > description: > ADC reference voltage supply > @@ -61,6 +67,24 @@ required: > - spi-cpha > - adi,sync-in-gpios > > +patternProperties: > + "^channel@([0-9]|1[0-5])$": > + type: object > + description: | > + Represents the external channels which are connected to the device. > + > + properties: > + reg: > + description: | > + The channel number. > + > + label: > + description: | > + Unique name to identify which channel this is. > + required: > + - reg > + additionalProperties: false > + > additionalProperties: false > > examples: > @@ -84,6 +108,14 @@ examples: > reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; > clocks = <&ad7768_mclk>; > clock-names = "mclk"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + channel@0 { > + reg = <0>; > + label = "channel_0"; > + }; > }; > }; > ...