Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1155590rdb; Tue, 30 Jan 2024 09:23:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqbCrBDuhukFCFdqGXPlTdxH3qwOhICmb+VdMWuvdSfzQdxZYTf8/nVQRW+YpwVR5uJ9RW X-Received: by 2002:a2e:9d05:0:b0:2d0:506f:5c0a with SMTP id t5-20020a2e9d05000000b002d0506f5c0amr4249074lji.9.1706635406394; Tue, 30 Jan 2024 09:23:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706635406; cv=pass; d=google.com; s=arc-20160816; b=pf6Z/dVmGo97owH9eDX3qAmtQ/n6Rifsv708HkzZg511/rY0voYj9jjeYsCxLeYnzm yF7F3J4jo/68RLyRjQfex8MOmbpooRjQEHHc6ljkRMinLLhVW1MxN/d6pDtZQgfGsQnA HZr251JQsE7jM3+OAxKcQWwH0ssmsDyThSd4olLClRKe8qy/bWWdJlGH42fwaUxVW385 KFYEeAeVeT5XoWExOWKurJIzhy9R/6kPp8a9fjBE7eqf7O5Tw8K0jpNeZlFCc5695QZz 3eDppcUfyQlUsHseIzlCOsWGS8att2Xiubriz49GdKj0Eo4MSNbLqFYSzUKVQDJXnZ0S RmTQ== 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=+/ON9RsQm5CWWoXvQFQzmfnP6Nfnw68S7IcV5QR+XLs=; fh=sRMrVZh/OOjUrMyiuUeMLVOLRN6WGL64LflR+0lpIfA=; b=nunLDn/pgjFJ35hg6fZ5e6diKk2OmKYFXTwiFI+6NSf3hS1hZp0XuCwMlQ6zFA9WV0 pj1vNuPmvY6Bc28++fJBcPQ7kJ6Nx6p0IXLq14j+8h1fHzp73NiyRYZZSQM5TJp+evhV bCnyLEr3sxlVCkz9LSc/NBw1IhINhdSFBupSXfAgBvQmfVksAXaxliIoNAW/SpQZYrtm LYt3a9+5ZQ/jn2In4A+wu4py9/uUcAdB9YamfqT5Qxjclecdamjebgmp4fNOg6176IqK MDMW3R48PbqrdNGH2aVHlnzAobtUPeigSXFYxJaxjHGfkwr5cd+L1gr7uURtY5G43L9a BfIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Xs+/G0Zi"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 6-20020a0564021f4600b00558bd08c756si787588edz.104.2024.01.30.09.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:23:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45035-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="Xs+/G0Zi"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45035-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 287521F27913 for ; Tue, 30 Jan 2024 17:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4824129A89; Tue, 30 Jan 2024 17:23:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xs+/G0Zi" 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 C3B871292D0; Tue, 30 Jan 2024 17:23:17 +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=1706635397; cv=none; b=cjb+3gDwAd06cRpllP0eMkmvU4L3Ph+vAjeIqWnjNlzk2Rl+7EH+ABxxgZ6o0FdLvgrboayoYNXYPzxXELWuETI006KjCKblWwxy9nJCf0C8L2DNdito3yN+szdvKu7jREGtaTMxdhw0Cl7OjjvvHUx6cLI1b5FKCD9yU60Ap40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635397; c=relaxed/simple; bh=VRfD3UKkyqM3D52QPTjY/kGlTpnyKjRRfLoiCClFqCw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Nxagt4eybrHzEgGddip/1JE01dhtRK1XnT8DRRpOL/4DZ0Zt4FER69Brm6UwC9jXgSj7pJzIJyFWYJLiNEz8iaNxzmKgMorvDM78qfatMd+oWClkwKhwDtlJs9zGIO3GyEZmT1iQdxxduuUToqpQh7obVg+72AFYbhtjZaufd/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xs+/G0Zi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10BA3C433F1; Tue, 30 Jan 2024 17:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706635397; bh=VRfD3UKkyqM3D52QPTjY/kGlTpnyKjRRfLoiCClFqCw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xs+/G0ZidSLCDpXPjUUl21Mh+E7xeHzv2SztdWr03WvUMz+qGUFiUwjkoollpGW4J dKEJCj6PF/MK60GsUMAv0l1yiyaChw1MZRYS+LV3oQsF7SGOqTcyGXhL/lnWrQOJzm lf24A8ULGBW8zVRzdwXWdhEn5BXG/p2EY5z47whD3e4XXcp0y2XIygPwvYGC4UfHhN SQDEkOpnkNz/W2LzNQCilnR4FTe+gCgA8I224x/9UvymXc24T4rlKzqIUd0mkNMMH9 ByoDJjqMw7FCZIeBwFRy6WRqHjesUamxpm7cgpDaKITcLNUsg0Rjhrgd4QkZaeggHL tq63LRH8zgBDA== Date: Tue, 30 Jan 2024 17:23:12 +0000 From: Conor Dooley To: Naresh Solanki Cc: 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: <20240130-abroad-repeater-7966f998e1f6@spud> References: <20240130115651.457800-1-naresh.solanki@9elements.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="toQvdWVCqzr+Zex9" Content-Disposition: inline In-Reply-To: <20240130115651.457800-1-naresh.solanki@9elements.com> --toQvdWVCqzr+Zex9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Tue, Jan 30, 2024 at 05:26:50PM +0530, 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 > Signed-off-by: Naresh Solanki > --- > .../bindings/iio/afe/voltage-divider.yaml | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/iio/afe/voltage-divider.ya= ml b/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > index dddf97b50549..98fec8548cc3 100644 > --- a/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > +++ b/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > @@ -39,6 +39,13 @@ properties: > description: | > Channel node of a voltage io-channel. > =20 > + '#io-channel-cells': > + description: > + In addition to consuming the measurement services of a voltage out= put > + channel the voltage divider can act as a provider of measurement > + services to other devices. Did you miss: https://lore.kernel.org/all/20240127165542.6eeb23e9@jic23-huawei/ Where I said that I would like to have an example of where this would be used in the description? Peter gave a good example that you can draw on. > + const: 1 > + > output-ohms: > description: > Resistance Rout over which the output voltage is measured. See ful= l-ohms. > @@ -75,12 +82,17 @@ examples: > spi-max-frequency =3D <1000000>; > }; > }; > - sysv { > + p12v_vd: sysv { > 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 */ > }; Blank line here please. Thanks, Conor. > + iio-hwmon { > + compatible =3D "iio-hwmon"; > + io-channels =3D <&p12v_vd 0>; > + }; > ... >=20 > base-commit: 861c0981648f5b64c86fd028ee622096eb7af05a > --=20 > 2.42.0 >=20 --toQvdWVCqzr+Zex9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbkwgAAKCRB4tDGHoIJi 0jh0AQCf42G+DhRYSRloF1zdFV1JWBEczufKUo+D/M8fqdW7EAEAgG/RyQdQq3a2 vGwwXqVD8ZruqcgkkjX7oJJIcPhIcwE= =t3ag -----END PGP SIGNATURE----- --toQvdWVCqzr+Zex9--