Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2187143lqa; Tue, 30 Apr 2024 10:15:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC/DT3beoC5o/UPd++kEkyEcn6ErbUMCWU1khcIsdjdpsOy2v7Eix39QrfhOcIdpyZuJCqTyvel/AqnBIi45Y0neElRjxz3Xcl09jYgg== X-Google-Smtp-Source: AGHT+IHCZvdqPIOtiRVe4zkog1RmEgiFFRqXlDnP4+OB36g1kcdjZoWyJxCGginf41omzMCP1GKy X-Received: by 2002:a05:622a:2a19:b0:436:6369:f632 with SMTP id hc25-20020a05622a2a1900b004366369f632mr15538934qtb.20.1714497349894; Tue, 30 Apr 2024 10:15:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714497349; cv=pass; d=google.com; s=arc-20160816; b=CYw/IAi6ApdBojcfgSw8nhbF6yJxrux7O99kZj0MDGp9BxrtUrCbdfk4z0tTBhz9sH Y14meMajvpF8U0uBlIyYNovAV3boPFzQYPiuGvYXjD/W7nkEU4CmThdnNN6tqjXaqph6 IyFSRQY42/MmGuIVTDcMAwI0WvhclRiGzVB331UjaZFSpiyjThklQO6bE3cuwl/z+0QV td0oHufhECoqx8oUk6fLkdbDrp3q8QYFdw3aQtFK/KA7ZO/cuLOnTIw/Kb8eYe84nlCS 1ubzWLW0xLgMSwc0dvYLXXXEKNQEqoZKkGzm6pH24z5d8WsFXWaReBN0T66VFv2+kQka fFng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tDct3Zzjw15drWiDcD2wqcgfs0TKXhcV3tjW704Qd28=; fh=hGQi3ZdSYrM1GtrMT5QdKb7ubS+r/A6BlZXiRiQ5B/k=; b=wxkLZnuOulB2ARR2dNoixTZ/B/Fji7HUAMaiaq92ytZxP98wpjeg0/H7GUwY2PbQrz unokqs71M/XlSboBAgZaJ9373LniJx2DbF7b/H5QKBNfn6fVhwi+ks7iU1dOuyFG2tYC 5k2SDlH9gwWXVJPxiroyHVBi7jjfRSCkkvp3y17ZTDPzi10VhdMFecIzZQvEYMpO94Fc 9pPZRTjLBhHd6YoaSWh5b5SVyuB7dt16t4+gF43WJRvMbllfWZbTfL+kufhFWihXmoT3 DsEEemcWRksLG82BRGfczZP7ncBEUgRXulHArtHj/PUmDk/FUCyxgzTY/0CLEL8seARw M2Bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bJMHgM0Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fj25-20020a05622a551900b00439e7c3c6b0si22515269qtb.802.2024.04.30.10.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bJMHgM0Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4E1741C22CFE for ; Tue, 30 Apr 2024 17:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9703217BB1B; Tue, 30 Apr 2024 17:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bJMHgM0Q" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF7D917B4E1; Tue, 30 Apr 2024 17:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714497340; cv=none; b=sOmm1psmO8EN2ZeA2ULpLT1WCOdgxsIMPeEDwirhANXbGl0WwJXYIyL7W0Qx1OWUvnHFUdaX29yoYSKygvWCA2aBqOYlKz1O1gzC1idvPb8DsWUL8xD/THFiF9mUvJksFbEmF7e4xM5BpPprQ/4+sYOyHmRb/dGTz2U7u+KQ7co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714497340; c=relaxed/simple; bh=LczTJ/3+u06tFbxHtG5qj/8oZxiYyIFvCajsFk4vFgs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Pm3d8doeaBpEE1lJ5gQgi9L0vUG8as/OZZKt7v9s5OuC9UESrGVp4XFlKy3rcMbIjcFcEORa0vCZ5lpq/OSsOd9sk45cs9rGEOFyh3DkPNjSOqVFakoZran6eokw8dxrcy2pClLBoM5rlnS+JSRvpYAPp+zd/LG+tinBlKuDeyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bJMHgM0Q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FCC7C2BBFC; Tue, 30 Apr 2024 17:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714497340; bh=LczTJ/3+u06tFbxHtG5qj/8oZxiYyIFvCajsFk4vFgs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bJMHgM0Q0yyZYiaxgiGeYgaz0/y19jSOAE5eh6VN/SWIMPHanu8Q042ONIs/1BNdv dYclRiMV/z5QXOknvSez2A2H3QL5LrXoXB4wBYoCJG0KEXrt4bZTkcEvXY5yvh+V2F L2RVs+XHEfeOC+PWV+sQR7gJmBNww97ZyItQhNWhn+/9/FYdB95NE/SEswt6l2nLlr em7Lspwnwa59wmhI0xVZTLSAdKS2MN3cKnORIWTDuL7bR4a6pNnnVxRZtouZMIXLjk RYDPWAJXB1sKhdgyiy5ia0gcJoVWoUX88eJKzlZcLItA9PAGsMaPSDh3NVy4Qf6Y2S dIwltWt7ZmN0g== Date: Tue, 30 Apr 2024 18:15:31 +0100 From: Conor Dooley To: Alisa-Dariana Roman Cc: michael.hennerich@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alexandru.tachici@analog.com, lars@metafoo.de, jic23@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, andy@kernel.org, nuno.sa@analog.com, marcelo.schmitt@analog.com, bigunclemax@gmail.com, dlechner@baylibre.com, okan.sahin@analog.com, fr0st61te@gmail.com, alisa.roman@analog.com, marcus.folkesson@gmail.com, schnelle@linux.ibm.com, liambeguin@gmail.com Subject: Re: [PATCH v7 4/6] dt-bindings: iio: adc: Add single-channel property Message-ID: <20240430-perplexed-obedience-91e4bbc158e5@spud> References: <20240430162946.589423-1-alisa.roman@analog.com> <20240430162946.589423-5-alisa.roman@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PDQmOlRp3irkveLm" Content-Disposition: inline In-Reply-To: <20240430162946.589423-5-alisa.roman@analog.com> --PDQmOlRp3irkveLm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2024 at 07:29:44PM +0300, Alisa-Dariana Roman wrote: > Devices that have both single-ended channels and differential channels > cause a bit of confusion when the channels are configured in the > devicetree. >=20 > Clarify difference between these two types of channels for such devices > by adding single-channel property alongside diff-channels. They should > be mutually exclusive. I think that this mutual exclusion and the requirement for reg in the absence of either property should be enforced by the binding, not described in a commit message or free-form text in the property description. >=20 > Devices that have only single-ended channels can still use reg property > to reference a channel like before. >=20 > Suggested-by: Jonathan Cameron > Signed-off-by: Alisa-Dariana Roman > --- > Documentation/devicetree/bindings/iio/adc/adc.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documen= tation/devicetree/bindings/iio/adc/adc.yaml > index 36775f8f71df..0c3eae580732 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml > @@ -38,6 +38,14 @@ properties: > The first value specifies the positive input pin, the second > specifies the negative input pin. > =20 > + single-channel: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + When devices combine single s/single/single-ended/, no? Cheers, Conor. > and differential channels, allow the channel > + for a single element to be specified, independent of reg (as for > + differential channels). If this and diff-channels are not present = reg > + shall be used instead. > + > settling-time-us: > description: > Time between enabling the channel and first stable readings. > --=20 > 2.34.1 >=20 --PDQmOlRp3irkveLm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjEnMgAKCRB4tDGHoIJi 0nmFAP0SFmFJ06QVr/ZUb8POUYIM+y3lJg9ACZUMhkbdpdaIbgEAlT+Fr0iOnvsi 3Fopg90rdUWM/dPtiohMVjLK6+URqA0= =6E9G -----END PGP SIGNATURE----- --PDQmOlRp3irkveLm--