Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp729041rdb; Fri, 26 Jan 2024 08:57:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJ0QmyFkV/UEXehpUM8cGfTgmRLgzGFrSWbh59V9Yegt9cSW9NyHoNcaamWVXQPrKVRgcF X-Received: by 2002:a17:902:ce89:b0:1d7:7004:b5e6 with SMTP id f9-20020a170902ce8900b001d77004b5e6mr56275plg.8.1706288232118; Fri, 26 Jan 2024 08:57:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706288232; cv=pass; d=google.com; s=arc-20160816; b=Jo7+QHNPJsHtC+yIwuNtZhc0JZDFJhC2uDOLVXks37yAJ4GkdAiAx06LDuJ1wyAuv+ iwt1fO9iT50TRYeB3p26ZLD6B/4BAezSgzJyBHA+yV977KAAOwxhjci+KZ+o7OLauMqC hB8xTcA1o56DSCXzL5FTssaQZPg0uDD7y4U7Uix9y6lFYakigPfpbH2UNNtJydPbawgM /BHXDHShr6pufgauPp+BzVkwqgT05UTqzJYACDYTT7GoMesdNZcXvHeO1wERSaLZBdYN owlYkkcahc0GVaZa+GRN21k9/yjCpZZG6/MiOlF7OvCUtpq0O4FW6Iz6Hmx0rwaaa9FG EqXg== 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=1Ytyf73NYF7rqC7D7LsAe4NpAW5Gqt1xjnH5CwqdDB8=; fh=sRMrVZh/OOjUrMyiuUeMLVOLRN6WGL64LflR+0lpIfA=; b=r3l181XXp2zG1VbEh6r5CiUeO1PIPZ3uh+s+t6gNmP9GK2tn/zVKanZxXva45afF7L gQuiz3W+yJ/BqPXpz8IKlkvhD6bAuyEfEJ3HgUyFH++2KWDvsJ/F3O6PobJrrhL6OMBo VpAYCC9JbA+Dj+zqtLr5uRWX0yxlcmfZjK2XFySQSyUsXEF2uc4MKmRzjBuOnpk296fe wr0m5bkMwiekGBwz7XB/8/82Xm7AF8VBN0vkBDhArvk0QubWzISzLGpbC4YvOnGQOg+o LMYIprmoHqsele5jSzsjlwJ/DI9qE6WkJglMmsAfUvKC+/1qPWJcOIymfa2+Sky7LWGz 47wA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZV36HO8n; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h27-20020a056a00001b00b006ddc1392b57si1425208pfk.41.2024.01.26.08.57.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 08:57:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZV36HO8n; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40376-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 46AA4B24002 for ; Fri, 26 Jan 2024 16:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D4651EB4D; Fri, 26 Jan 2024 16:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZV36HO8n" 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 A98821EB2B; Fri, 26 Jan 2024 16:52:00 +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=1706287920; cv=none; b=gj0T4SxdXcxHtSxdIPr82RrybfRxgyIO3H3c6LXvAtgjLDSp+s53sakxAS3sSSw/zdydt1a81czgW09M9Gf3ZDO+1vndlJJgq3E+8B1SXNIfnsmiPO9IPwtQb2e62YzvKbXnXz6CrxeBYRAXtutOPHMqAPGbvdMedKX5YmJ+vXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706287920; c=relaxed/simple; bh=GWEG1pvrI+MwWb68hTru7MaLpFsvtOWJhlMETqjxkGk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tIzaV3vynA0FI/SCfW1YkkLGsSyhpO+NhFiNV/lWaiECHevi1Z23r6ns2QFWdB0z3kJ5mIOxn3CYy6+xmLMHAY4bCgc9fbKR9uu7laxR0MMELXxcChc8qVV3T2vaNgosv6K836x7yz0LOHbicSoEWnGxuq2udDfqSPbm1PXeFQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZV36HO8n; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE48AC43394; Fri, 26 Jan 2024 16:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706287920; bh=GWEG1pvrI+MwWb68hTru7MaLpFsvtOWJhlMETqjxkGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZV36HO8nEh0sbpEE+al90RlqRlqtNBjdBQt/DDP/URQGyscFpkKHhNYr/DDNCjYTt EvOFMtK0d4SA1Jl7evOdoLVrCjoWdjESWjc8iSS7RDJ58otXkaLdt5TW31Isj3WKwb oh9SWfeZjDC+yMZz62dT/8afYb3ZGwRSAgx5is0m0S82rcRjKL/KthEpXSK1kNSisq pSp1HX7ABHP5/ckiR0+SEh+Yso2BTc5bruYhEzw/yeNqlqixSRMVx9HAfTi26NEHn1 A03bEISaAnviWidcqxfjvEq6AGLeUCqeh3R57f4j1LhG7iRpfZ2OtcnqQ3T+jLHk2B Jq3MLWPoBoeiQ== Date: Fri, 26 Jan 2024 16:51:55 +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] dt-bindings: iio: afe: voltage-divider: Add io-channel-cells Message-ID: <20240126-scale-serrated-33686467d91b@spud> References: <20240126115509.1459425-1-naresh.solanki@9elements.com> <20240126-cinnamon-flatware-e042b5773f17@spud> 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="N6MGnwo5iGnJRjKO" Content-Disposition: inline In-Reply-To: --N6MGnwo5iGnJRjKO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 26, 2024 at 09:55:20PM +0530, Naresh Solanki wrote: > On Fri, 26 Jan 2024 at 21:47, Conor Dooley wrote: > > On Fri, Jan 26, 2024 at 05:25:08PM +0530, Naresh Solanki wrote: > > > Signed-off-by: Naresh Solanki > > > --- > > > Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml b/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > > > index dddf97b50549..b4b5489ad98e 100644 > > > --- a/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > > > +++ b/Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml > > > @@ -39,6 +39,9 @@ properties: > > > description: | > > > Channel node of a voltage io-channel. > > > > > > + '#io-channel-cells': > > > + const: 1 > > > > The example in this binding looks like the voltage-divider is intended > > to be an "IIO consumer" but "#io-channels-cells" is an "IIO provider" > > property. > > > > Are you sure this is correct? > I'm not aware that #io-channels-cells is only for IIO provider. #foo-cells properties are always for resource providers > But I do get some kernel message as mention in commit messages > if this is specified in DT. Can you please share the DT in question? Or at least, the section that describes the IIO provider and consumer? It should look like the example: spi { #address-cells = <1>; #size-cells = <0>; adc@0 { compatible = "maxim,max1027"; reg = <0>; #io-channel-cells = <1>; interrupt-parent = <&gpio5>; interrupts = <15 IRQ_TYPE_EDGE_RISING>; spi-max-frequency = <1000000>; }; }; sysv { compatible = "voltage-divider"; io-channels = <&maxadc 1>; /* Scale the system voltage by 22/222 to fit the ADC range. */ output-ohms = <22>; full-ohms = <222>; /* 200 + 22 */ }; Thanks, Conor. --N6MGnwo5iGnJRjKO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbPjKwAKCRB4tDGHoIJi 0nY1AP44EPKrD/YVhzhSSSGxDT1gAA+j8QE5xfM8BbQHmjVH5wD/dC2/py8OFaCJ D665p0DJMTkjUQnUjZlxzYNEoTJAUAk= =YaJ5 -----END PGP SIGNATURE----- --N6MGnwo5iGnJRjKO--