Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1605846rdb; Sat, 10 Feb 2024 08:52:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU857SwT75yEKh7Tm3HcX2oNlAySrcv7+gudPOXMH5vNuyVsyqYGAPzgNyiSPGWWxtf6uE8T0aXpCwSQFrEOdp/yvbtxnEKjCI6T7GKvw== X-Google-Smtp-Source: AGHT+IFS1iVsv+yYCTYjHXP4T51Z1VjPVcVk71xuMur3PS0fuV9rSEoa8vT3oJ4EspEapVQqDnbS X-Received: by 2002:a92:d9cc:0:b0:363:c4d2:1d29 with SMTP id n12-20020a92d9cc000000b00363c4d21d29mr2622861ilq.8.1707583935978; Sat, 10 Feb 2024 08:52:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707583935; cv=pass; d=google.com; s=arc-20160816; b=qZvnTp1/0QqtyzYU5Cw/pkrUwR6hzcCmhGxyYYlq4BbQCiQxaNt3QGytB52Lvm0spv B73Wb/HXc28cGUaThOFeie//sQPcyIgg02AfwGlxfdypgIlz4yb7/dRoD1021zobyiko U/Io5IApyfuQHtm4Ycy+iID4GWOSjKB5h18to3HoaljAbfyx4mtU4+BIZbRPaaFj9LR3 Q/1NEjT0Q0N4EPEK57QGuQ4m5USd4E33zCBerM8ZfPw0dnn8BlZ3RPpB4SBPaM2z2D+3 LtwcEb6p/8FWdYZRsm2IV0eMeegVU3nXz0F6PB/zI/1Tw5V6pkASf6AptvEvdUBZaPCh M2AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=1DJfEHFYvh04ylyjf1aBoMAsNegqq3Cs+oLDCKvA8hA=; fh=nlDsCji+48jLaDxQsjUinM4g2PIFPlMG2PxZUwUGoKw=; b=CjjxoNUjRlFLF3l8kFUuu9VIvLug84lbDg3JGPXViN0675Ehdh45l64rdC3i2hZ6bN jod1xxH7lNdLCvh0kvUkiybC6489yzZMSr/wp2QN3UFgGeJgBtT4JXDy1QQR4Iq+Vo4x 7Fe+U3U1ux4db8shWTZVvBTpLgX253KtXmphEasQpITtbHsjSxuFR7F71vqYWpYg9GEr TCNkO1UGylSqsgQBfoqhjYknhxvw4MnHYu7Y+4cr/m0ZObIu/48wFwAXOOsEiQZbmHO/ rCha5DUZc548BvCMhkCMgjEOBJvXko9mgEocFWGyGlhNxMsgV3zkm8aCO3Ujl2cd65mK +6aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I3zLzifv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWvd39cibcuvxACLvl910p+zD2/9W2uLS96L9b3ZH7xefX4se7nPFbB9bActeGW+zRCRJnZ6F4qkrZdFAxesTqo90dRfjzZEW9PlzGSog== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q19-20020a656853000000b005d8d34e196csi551448pgt.203.2024.02.10.08.52.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 08:52:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I3zLzifv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60473-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60473-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 46362B24F3B for ; Sat, 10 Feb 2024 16:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A4495C90A; Sat, 10 Feb 2024 16:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I3zLzifv" 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 3B3F95C8E2; Sat, 10 Feb 2024 16:46:53 +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=1707583614; cv=none; b=OxzdQVyHKRxYPvsKK2wNj2reR89B1fxJdcgJIGzMeeJ5Te2a5+vtJOtTB1NdTCi9JBXqMHXO8PUMTTOg9PC42OpolrJYRwPFnZOHA3q1fi2g3fvjMVrHxZ9cxUg/a4eWijkevVrAecjTEgojOhSrF6ia9aiMIFrdDuy8X+wusdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707583614; c=relaxed/simple; bh=3XLFL1ro5i0dI0fsCV0D+QJ/wvNwCKeAITScA7QxGRo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BHc4Ry5vgqRKrMa9aFYYmIYNoWdrtJRkTufQuh9m7JlQYMHF5FgN+3xOMOBrVxlQhOpCrPK/1scJEBn5JiIlcsp3AiPIe33jDWT13ujoJHlihbLk+zEcgQLpdr5Ae4AnhYI+3HMkKJHC5QmsbLKGLob/bYqdTn7pUfzdZsRENSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I3zLzifv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16861C433C7; Sat, 10 Feb 2024 16:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707583613; bh=3XLFL1ro5i0dI0fsCV0D+QJ/wvNwCKeAITScA7QxGRo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=I3zLzifvvXbdRWEhANCGAmbhDCJUTtnTroSEO+mveCKSTifkr1iWNNMkxB3fCPEcJ +A28YxSdeZXYqFBOqMla3/KlT70zceA8dd8DYPqdGdPlkZSuLAlBdlcP2/mdUx9F1Q BNWeP+WKQKWL9oHig2vo5grFKS+vy577NmGzKu/sQYLydMBjcnSVg9aCXk9138JlaQ H9RdyESooTeE/ICtorve0n/nJMsI0UtAV90fsShKLGkx7zFsUOwH4s8ChR08pS1oMu ctF/8isL7rc6xEQgr1jrfJ/I/JtslsWnbrETvXm+u8ZjK9qVy95x380BnnKZYj489/ pIzanpGLPmVTQ== Date: Sat, 10 Feb 2024 16:46:41 +0000 From: Jonathan Cameron To: Conor Dooley Cc: Naresh Solanki , Peter Rosin , 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 v4] dt-bindings: iio: afe: voltage-divider: Add io-channel-cells Message-ID: <20240210164641.52631ce6@jic23-huawei> In-Reply-To: <20240206-washboard-sustained-990e97d86d78@spud> References: <20240206105502.648255-1-naresh.solanki@9elements.com> <20240206-washboard-sustained-990e97d86d78@spud> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 6 Feb 2024 15:22:29 +0000 Conor Dooley wrote: > On Tue, Feb 06, 2024 at 04:25:01PM +0530, Naresh Solanki wrote: > > Enable the voltage divider to both receive and provide measurement > > services by adding #io-channel-cells. > > > > This is especially valuable in scenarios where an ADC has an analog > > frontend, like a voltage divider, and obtaining its raw value isn't > > interesting. It is desired to get the real voltage before the voltage > > divider. > > > > Signed-off-by: Naresh Solanki > > Reviewed-by: Conor Dooley > > Thanks for adding the example. I have one comment about the wording, cos > the last sentence doesn't really make sense without something referring > back to the scenario you describe. > > > --- > > .../devicetree/bindings/iio/afe/voltage-divider.yaml | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml b/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > > index dddf97b50549..fd3c511e1beb 100644 > > --- a/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > > +++ b/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > > @@ -39,6 +39,17 @@ properties: > > description: | > > Channel node of a voltage io-channel. > > > > + '#io-channel-cells': > > + 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 an ADC has an analog frontend, > > + such as a voltage divider, and then consuming its raw value > > + isn't interesting. > > > It is desired to get the real voltage > > + before the voltage divider. > > "In this case, the voltage before the divider is desired". > > Perhaps Jonathan can make that change, provided you are okay with it. I've made the change and applied this patch. Given it will only initially be pushed out for 0-day to take a look at it, feel free to shout if you'd prefer different wording from Conor's suggestion. Thanks, Jonathan > > Cheers, > Conor. > > > + const: 1 > > + > > output-ohms: > > description: > > Resistance Rout over which the output voltage is measured. See full-ohms. > > > > base-commit: 99bd3cb0d12e85d5114425353552121ec8f93adc > > -- > > 2.42.0 > >