Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1783460rdb; Wed, 31 Jan 2024 08:57:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYE3D9/0cX9GG+UYnDSgNB0wS0ANXxeQHDx8IuUYofVFVINIIcyDfv/7Vjtp9Qjz8pcjtP X-Received: by 2002:a17:906:f9d6:b0:a35:7438:113f with SMTP id lj22-20020a170906f9d600b00a357438113fmr1540994ejb.49.1706720250203; Wed, 31 Jan 2024 08:57:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706720250; cv=pass; d=google.com; s=arc-20160816; b=owWelEU9dVrD5etmnAlM12rnYPSQP6jVyAjt9pMGZPBNrq7FjuLD96x963QG76IN29 ZK6VCz6Y0GnsrQYutVT3nj6ZUySjhwTXz1oJrt+nW0eRBb+9R67cX6QaPAZcW9cPHdgG BGpX/ixPhLk55zuLY3cpb0eSbhigbqpcbTpffLAc1EyEoKZPwsEZ1wUjrVoENMevcjiw klfy7F7AzZxhvekKA4WDLi32crFN5sVHvc3oLbQgrMjGCiVdBvUj2+6SSsiDY6MzXTbj 9SUC6HvXhqDSBrdBuA1ZX1s9odnOFy3XlfFlZjpISFf88zoHQ8d2ZCHEEGQieT352GGO IO0w== 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=6+Zhj23dg+j6agsyQK9X2Lnnek05Kyk7sqqk3G+uWDM=; fh=ITZYmZdPOmfj5TbL6mfwn5ovClKiKUaxvyN/JIJZ6DQ=; b=ZHHYKE0RUTJQy0zL6K0CgDZ0P8h0tFbOc3o9VgJ7Lt3ijDeHQPDBzOuRKzkbk07NgJ PQAzAXGeMZ/nZ1WFH/Gq7I/1nXenPTm9Qr3yqa4Sdl+Fgi7cFz3AvRoEN8e5InPvBqr2 MqTfiA/FMkB82/BxGbfIS8sxtwI0lkyZKgVeStwzxhyFCx5YgK1rcmXCnFIQ5XqrQurx wwZudgyaghJg18Wh/uwLmY9H597ZIuZxgnSVLq/GNyDsKec7EzW/47hGWecdwLtzeO8M FfhCLRWHgFHy1XbLIdu/ci6ht4EYAmxmtoMLEcM6M7RfwhE54EhehOQgIXuYbBt1cHXX AoUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nmve9pUU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46845-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; AJvYcCW5SP6Ki67tDRs9XWlEY1esLscg7x54sSnjRlwhRdfKZ5WycZmni6IFiHsBAFuEZ6tFQWlYjcxSlOvpN2vjvNq3fFC80ZEq80vrdNcfTg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y9-20020a170906558900b00a348dd696a1si5839834ejp.971.2024.01.31.08.57.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:57:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nmve9pUU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46845-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C49E41F21162 for ; Wed, 31 Jan 2024 16:57:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DE0113343D; Wed, 31 Jan 2024 16:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Nmve9pUU" 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 9B6C612CD9D; Wed, 31 Jan 2024 16:54:47 +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=1706720087; cv=none; b=Im5l9SacKKjqrz7cNi7Sv51Tghh2b0AYX5fpo0UMwwV70ZijzAD+yfc50aBgLFzUpxaAQqUXLnyjVloKQrAn5pcXQx/xudY8l5mLfVqpmcOOnlSJmM9fO+8YAfOAEyQBMbdb/S4U3fk+tH23IBTC89NBuyebxuYZuiUjtSbu4m4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706720087; c=relaxed/simple; bh=e7PkgB7K0gx8CAPjTVUKMOvEqHbyafX+oBkcjQV6dys=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ARHe509KVM9JXw8scBfFUs/AI/wcwU+/kjlT9nIhhdKa8j7DqfhTFFX2sJ5Mygd6oA6UsWcfRG5z8RWKbL+CAr/wXlMnOlHySY5Oev3jeQyGO0gKcf/WPIaITrZT+wePsfU4Wsbw6S0E8VUFXzGAwDwr97Iyq2PCtR77mV6wnLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nmve9pUU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A395C433F1; Wed, 31 Jan 2024 16:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706720087; bh=e7PkgB7K0gx8CAPjTVUKMOvEqHbyafX+oBkcjQV6dys=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nmve9pUUOt196CcaU4YrJBEqco8cFcMpDhATzxHHFGUBeb+NRVrbaatX8PRY9P2Ri a72GGOr8swMe3/9YGP2C7ynYNXM3YtjprV7fg2zcqLiv8ZbI7AS/Gat+qn0VTM84lX sW0uTAp3pKw6YA91cokoNKsX+bspGqRgmZMH+viCzzb6VewaxLvhClbU/iKqbWGFEG 5veXuTSAZi0pjjMSsQBMIYiIKQP817JFKr5UCxMGb1ZwHGDBioeocFw5MlzcAHUsA+ EPOkzz4hr0nHkcNzhgd05rVWD/+s6VrsblUWPVhpu2xicRpeqKYQgpr1CcDdIHYSLo f4B4pQU5jYfsw== Date: Wed, 31 Jan 2024 16:54:42 +0000 From: Conor Dooley To: Jonathan Cameron Cc: Krzysztof Kozlowski , Naresh Solanki , Peter Rosin , 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: <20240131-stylized-defile-d8fe346ab197@spud> References: <20240130115651.457800-1-naresh.solanki@9elements.com> <1c855a34-8a0d-491e-bfd2-24635b41c86f@linaro.org> <20240131163516.000043df@Huawei.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="h8APYS+PcgeCvIXI" Content-Disposition: inline In-Reply-To: <20240131163516.000043df@Huawei.com> --h8APYS+PcgeCvIXI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > > On 30/01/2024 12:56, Naresh Solanki wrote: > > > voltage-divider is always an iio consumer at the same time it is > > > optionally an iio provider. > > > Hence add #io-channel-cells > > > Also update example. > > > =20 > >=20 > > Fix > > wrapping > > and > > proper > > sentences. Each sentence finishes with full stop. > >=20 > > ... > > > output-ohms: > > > description: > > > Resistance Rout over which the output voltage is measured. See= full-ohms. > > > @@ -75,12 +82,17 @@ examples: > > > spi-max-frequency =3D <1000000>; > > > }; > > > }; > > > - sysv { > > > + p12v_vd: sysv { =20 > >=20 > > No, drop label. > >=20 > > > compatible =3D "voltage-divider"; > > > io-channels =3D <&maxadc 1>; > > > + #io-channel-cells =3D <1>; > > > =20 > > > /* Scale the system voltage by 22/222 to fit the ADC range. = */ > > > output-ohms =3D <22>; > > > full-ohms =3D <222>; /* 200 + 22 */ > > > }; > > > + iio-hwmon { > > > + compatible =3D "iio-hwmon"; > > > + io-channels =3D <&p12v_vd 0>; =20 > >=20 > > The same question as for v2. Drop unrelated example. >=20 > Conor requested an example of the device acting as a consumer and a provi= der. > Might have meant in the patch description? >=20 > 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 you know you need it. Thanks, Conor. --h8APYS+PcgeCvIXI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbp7UQAKCRB4tDGHoIJi 0qUKAP0Ww48y8Vpl0AK0ojq0GTFz+pnr+vWFetK6V8fbSyQ0YwEAg+sb0e5EXttx Yc5wqU6OG+ali+z2CNC/Op4kdAyPMAE= =i3bX -----END PGP SIGNATURE----- --h8APYS+PcgeCvIXI--