Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2533544rdb; Mon, 5 Feb 2024 09:19:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYlhh+zuhzcQj8D1aoeOKvuiH5Zld51n7V6qAqF2/P3K/EWWN37wyZkJALNBx1HMb/k+CR X-Received: by 2002:a17:903:58d:b0:1d9:e2b:dba7 with SMTP id jv13-20020a170903058d00b001d90e2bdba7mr143861plb.5.1707153552347; Mon, 05 Feb 2024 09:19:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707153552; cv=pass; d=google.com; s=arc-20160816; b=uR0FFsCzotnDQ4SrRfs+Xak4dNB+tAUnpjmz6Y0NXJUrPoScL1THsPNNgcDOiaPlM9 ka5kfz2cbQfXiljj+1SyZwJn2PjveVb+k+w9JtMaI9ZrEgjZEXsu/obRezez9+lScaQ1 Qs5yXCpNzrb3VIy6s/g8hlqUQKY+gFU638NFg29HCtqszLEmw/Gw4gTC8zs+EZIOnFH9 oogN8sZBPaGxhlIExBvjF5V9ggKSlViU1A6vDfMgNmWeou4U1byuuODlAIK56yez3ApY e82r2f+JsZIFnLhXvEZx4lQvtofR8HtYr6hrItgNuGK9GSOsHPWh1k5MHJ6Sf+zSlrFI lhKA== 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=xkNsqaF4QqQI9IylasZgW4zPIt2p4Sbxb4KlMbNWs6I=; fh=fUOl2bBrJatbobraScb0FD1IvZaDkA6AlVwwEFqv7do=; b=cGc3/SnsCTQJT/SN2nib8TKXJfmayikkw4oT6V3+t0iPF9Zg3AylSXQXTOn0Nmheno 3ZfQUVnulyvtDeUO9m7pm6oReQ+m/+l+L01M982GnkPpDz1NXSqppQmiTSzEw68BISPz cjDoGn6fS0WSU+x4fL9UNsUrz7pGh5YCJsZmhcfWt/+s8A3LXAMGAuISS92SwYRwcC4Q 0jbmf4tEwZZBComCP+Z6FxJ6fm5/iSNvvhNU5mW5QshWS9CzD1Odk3LBwvhIQoJy19Yr e8UQhlG9GQf6kQZwFa4yYSKsyiSI8KIprMDsC7OIwxDPo3Lvn6FyYp/9pGvIyqTKQpnu MZUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AQo/MQzH"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXddVFCkJJcdxuMU+NMAyU2k3WlNOlb6NPzUa/hDyr90tAi9cGH8gPeN4ixIMudWnT/J3mQRpLyudHfDdFXZO8ftRci89zTpC8Kobc5XQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m13-20020a634c4d000000b005d72fd9d73asi165629pgl.602.2024.02.05.09.19.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:19:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AQo/MQzH"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53069-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9BE45286B62 for ; Mon, 5 Feb 2024 17:11:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D24C2C191; Mon, 5 Feb 2024 17:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AQo/MQzH" 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 5BF713FB14; Mon, 5 Feb 2024 17:11:28 +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=1707153088; cv=none; b=P68A57aOwtWGQsvylwgMOt5jVumkRoWBYh8ZDZA7anX+Ay1Oo0I/yBiHJocV5lh4g55p82LL61nt6/ClrRyo7/Bd4VovAWiNc/r5igwouuzctv44EeXdXUEk6JEDQ36yOhgUUwN29krNIMtPyoWezkYt6u0u72z5usGQJQU4Ypw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707153088; c=relaxed/simple; bh=xkNsqaF4QqQI9IylasZgW4zPIt2p4Sbxb4KlMbNWs6I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q86o/EhMqYRTkbXjLu4DVnVgGsbWBl88DAzWcUS0XgB7lEPYzybejZ70Rt30ZjlXGMGKObPUugQkuh/diaaM41PEMa99sV2YLaEurNh0IsM/4Y8KAF0w3afardw+9g5VYdIFUNGsyx8P/hCzZpOp0J2f9SJ56RXMxI0qslEiCxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AQo/MQzH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10180C433C7; Mon, 5 Feb 2024 17:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707153087; bh=xkNsqaF4QqQI9IylasZgW4zPIt2p4Sbxb4KlMbNWs6I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AQo/MQzHt66cRQdouAnYcBrYhyVjlxZ4sDqniOwVsAQ7oTJhre+QB3tFbKOn+/uE4 TsL862+3/4mdbkCd4b/rpnVwL6OSEpQ52/ve1NY9liOP85JlfUbSQHP7QU/KLZv+4w So6BzdbPYUVjdezJ/bRw/d2pBPokD08uHgbd1GiDmeGbwgalIs72b26elLdtvFQEgS 5vUHhNDrueZw0tUFde9lip1UnCL1SK5plfqQ9rk8QVMgyIFrDr70IsF5ne7uQUvdfk ZMCNuHj9nZwbmh4vjdTIHO6k6UCEw2Ey5VhhI+PS9pFx1c375TwPOF8q0F+UfgMYzO ru2KgiE+m0eXg== Date: Mon, 5 Feb 2024 17:11:22 +0000 From: Conor Dooley To: Naresh Solanki Cc: Conor Dooley , Peter Rosin , Jonathan Cameron , Krzysztof Kozlowski , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , mazziesaccount@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] dt-bindings: iio: afe: voltage-divider: Add io-channel-cells Message-ID: <20240205-grudge-abrasion-d20b0c202d67@spud> References: <20240130115651.457800-1-naresh.solanki@9elements.com> <1c855a34-8a0d-491e-bfd2-24635b41c86f@linaro.org> <20240131163516.000043df@Huawei.com> <20240131-stylized-defile-d8fe346ab197@spud> <20240202-shone-footwork-b247b1ae8e06@wendy> 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="Y1VVmDQJUPxVz3DC" Content-Disposition: inline In-Reply-To: --Y1VVmDQJUPxVz3DC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 05, 2024 at 07:24:07PM +0530, Naresh Solanki wrote: > Hi Conor, Peter, >=20 > On Fri, 2 Feb 2024 at 18:39, Conor Dooley wr= ote: > > > > On Fri, Feb 02, 2024 at 12:49:26PM +0100, Peter Rosin wrote: > > > 2024-02-02 at 11:43, Naresh Solanki wrote: > > > > On Wed, 31 Jan 2024 at 22:24, Conor Dooley wrote: > > > >> On Wed, Jan 31, 2024 at 04:35:16PM +0000, Jonathan Cameron wrote: > > > >>> On Wed, 31 Jan 2024 09:29:59 +0100 > > > >>> Krzysztof Kozlowski wrote: > > > >>>> On 30/01/2024 12:56, Naresh Solanki wrote: > > > >>> Conor requested an example of the device acting as a consumer and= a provider. > > > >>> Might have meant in the patch description? > > > >>> > > > >>> Conor? > > > >> > > > >> I wanted it in the property description to help with understanding= when > > > >> to use it. I don't think the extra example nodes actually help you > > > >> understand what it is doing, only how to write one yourself once y= ou > > > >> know you need it. > > > > > > > > I'm not sure if I get it right but what I understood is that a > > > > voltage-divider can > > > > also be a provider to other devices & hence the property. > > > > Also do you want me to put a complete example of it in description ? > > > > > > My understanding is the requested example in the description should n= ot > > > be exactly /how/ to hook up the voltage-divider as a provider, but > > > instead have some words about why it is interesting to do so at all. = And > > > those words would also make it clear that is even possible. The latter > > > is something which, to be honest, is perhaps not all that obvious. It > > > has always been totally obvious to me of course, sorry for not being > > > clearer when I wrote the binding... > > > > Yeah, you're right about what I was looking for Peter. > > > > In my original request, which I think I already linked to in this > > thread, I said that I would like an example like the one that Peter had > > used to explain to me the scenario in which someone would want to use > > this feature: > > https://lore.kernel.org/all/536971eb-51f0-40e5-d025-7c4c1d683d49@axenti= a.se/ > ok. Based on my understanding, I'll update the property description > with an example. >=20 > description: > In addition to consuming the measurement services of a voltage output > channel the voltage divider can act as a provider of measurement > services to other devices. > This is particularly useful in scenarios wherein, > ADC has analog frontend such as voltage divider then consuming its raw > value isn't interesting. This sentence is structured pretty weirdly, it's missing articles and prepositions, but you have the right idea here, thanks. > It is desired to get real voltage before > voltage divider. --Y1VVmDQJUPxVz3DC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcEWugAKCRB4tDGHoIJi 0hR7AP908arHTIG2+4rd+yfEy8RybMPrJr/un2iYCVbYLcb5+wD+LT+7PZ8kMDb1 SyS7W+TUBWeNHP+dnmZ+w1YX2iMQmQ0= =3jOw -----END PGP SIGNATURE----- --Y1VVmDQJUPxVz3DC--