Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2407668rdb; Mon, 5 Feb 2024 05:54:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPBJKq6Ol7TMe55Bq5TiwOGRkMnrHhLGBUzWIXwkCJHOMXA8hW4iF1LJuZiNIEGVQmi3Ig X-Received: by 2002:a81:af05:0:b0:604:39b:840f with SMTP id n5-20020a81af05000000b00604039b840fmr10434442ywh.25.1707141289525; Mon, 05 Feb 2024 05:54:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707141289; cv=pass; d=google.com; s=arc-20160816; b=TCgwp9sV6uuXXS/8NaOHvxjE8gNvVPaNm4455IsN2eY2uIrbIm15HF44qKlygvjy9/ NpzSqwlIS7gtfah6i62LpE9n3DC6K+W5dFBd4t8/HuEj68cYYdi3NQYRtm5xs563minm DFgY2TH/IHdIjB4BlfWtuxUdC7eLU5aVO8z26ntCmbUYRHcnwEMT85TtI+lPmZBmhk2R 1EsYsic2f/u1NAjlzLjPHJ3rawqgUIMaWGw4tXlOO/SnrlEDyzGZiFZt3hxqWKlxXPbM soU+TrMxZX6tEfveUwzGKJrg4S5vwilLTJm7xzex6SH68DNofKwhLXN7CnXVTchiPO1z okdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=60XiMDUamNAnqnUGjVQMDh2YXc3ev9EeJ6VE8oK53ZU=; fh=uswa/WZ0MBlDlLaHfadrQjUvpXACujrJKkwcTZYdLiI=; b=EtYHmJQcHu1dv4uZ3uQQ2HcMovm+XbS+RA56jW/iMO8kqPAhH/JIJHsJWj0TNrG+1Q NGcqbOo9hvmobqHw7QrbTErVcMTmuKnNeUYrIETh3djCWFsXVlmV8dMqbm/pVSho9qcp Bct76fg3PyXLtXls+m5sAFO9LxCPvrYYHl7hdCYWZK0Q9iTT3BvoEOTu16l/2bTNIlhq 58MKy9k08WdjIoeiISiU80Tc7F2RQDKrb+KVPYFTSOaxL3jv93r8ZWiVsgRDaQIm3b3g NNrxyKE85tBRSfahRkVJt5rHpdEm33paf8Uk60Sy+TqRIf1nqZabdIolTr+1Qc0scjeJ A0QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=gHFgRWye; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-52752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com X-Forwarded-Encrypted: i=1; AJvYcCW+4ZqEhpvPD5o7EOD3Asxvq08XTSgT9id7nyNIJtYR8gTkLLUTIPmJi7tdtE+DBug74HO3g4orUjfH8PqfRc4QoNsBc6caTq43leLeeA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y12-20020a05622a120c00b0042c1b52fb91si3726362qtx.123.2024.02.05.05.54.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=gHFgRWye; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-52752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C0941C24107 for ; Mon, 5 Feb 2024 13:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A87128DDB; Mon, 5 Feb 2024 13:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="gHFgRWye" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DECCB24B4A for ; Mon, 5 Feb 2024 13:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707141261; cv=none; b=FtH7s7ywNqzdu29YGVVd8RqlDnEKnwXLN/tl1senrgiJVCq8kHAdpQOnA7nzh2Xir0kML7UMXlbpfnrofNwymE6X006RKI0rmcSoNLpeqDGeQiptfX7vtu6aEriyIaGXEAya+E+I5BOXl2Ee1Qz5Xs6cIay3gB1BqIhX5y45k0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707141261; c=relaxed/simple; bh=60XiMDUamNAnqnUGjVQMDh2YXc3ev9EeJ6VE8oK53ZU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=juhCXWBuaZgqnPWVs8cPC1l37xy/5kJFkBDtaxf1YIRQhJpPW+tmz8HicK2GbUEedzqquJyhtRNEVHgRSqqU2gfrl3wABtBC8Xnc2TAECdmrjvhirYhHkbDkvIfsz8luB1fBnB24ttHimlLW5ZMuivQe9QoXOyoUCX68PphoLbo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com; spf=pass smtp.mailfrom=9elements.com; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b=gHFgRWye; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6e04c4f494cso362842b3a.2 for ; Mon, 05 Feb 2024 05:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1707141258; x=1707746058; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=60XiMDUamNAnqnUGjVQMDh2YXc3ev9EeJ6VE8oK53ZU=; b=gHFgRWyefiGJdb3rE14Z9t6QiN6oGyjFRJcjqFd1Oq5uAilUmTk3FqAVL64LJhtGrx gTBtD5mEbWbvb4lxwJCG5FcrSdAGX5JtGbYoyrmOiYS8fS6Tugn9pyEuiA/2zueQHG8R +HhprdaOZ6nw4r+BIL4Q3SX1jaSkvhP84ZOIOKJbEe30ydn5/4aB2knlOwkioTpHk/Q2 3gIg7nFjvztw78NS9DnAVdfw6JS/E/l7u4EiRRKXKslJ6HsEtuhiyx2Fl9+OpwACOOTF ewljQGKAq6pQg4RI9C2NwQL/4IOlIWUzH1T3DnwMeZnKsSG8b+DJ2RChCjXtAZ7xuAYt +0ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707141258; x=1707746058; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=60XiMDUamNAnqnUGjVQMDh2YXc3ev9EeJ6VE8oK53ZU=; b=StDhhCs+n+mGF+dbnrpNkrCWlA3H/OdtINHBBZBpRLRb7Q03FLPW0FMJl5TGEknx/w VYtyJ8Zil+gOcQks0jhQ7YrzXtRRfR+2niv2fn0wCB5N+nts/9pLrqcBCvqLc/JQpWnv H3njtB7sFYalfLN3Xcci7UkfqM5IhAR0YKdkQm92Nu4d0P2tIy6RUC0NjAwfH0ElXLu9 h4nzp9eAIk8IM40IdN+SGeSvJlk7dhaI+P/8K99ldOF+9XrC/HIRWxfSyqdp6OmXGqbv 1gwQbxrbOhtg4Abz0cj7CrqGvz+m84Dc4cBCuHvd+eSv4SFbsMZb1UUiv/2NXHOr3LYN gGDQ== X-Gm-Message-State: AOJu0YzuEtqN6C2dHYGi3OgD/+L5qUpxK2gLx9D9Bgt8/zl7boyDSphF FZkpk6EZdFF7vwXcyA0RKfyg07cuRFn9/6EpXHLqHYiRmSzvloRv0bPngSY1Orx8QA85KBsoKkG r0LkHzHbH2jecIbUQZqgsvDBGX7K8hztsIsjQCYfg9hesp66c/dvpJw== X-Received: by 2002:aa7:810e:0:b0:6dd:a086:1e0f with SMTP id b14-20020aa7810e000000b006dda0861e0fmr7484503pfi.32.1707141258643; Mon, 05 Feb 2024 05:54:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> In-Reply-To: <20240202-shone-footwork-b247b1ae8e06@wendy> From: Naresh Solanki Date: Mon, 5 Feb 2024 19:24:07 +0530 Message-ID: Subject: Re: [PATCH v3] dt-bindings: iio: afe: voltage-divider: Add io-channel-cells To: Conor Dooley Cc: Peter Rosin , Conor Dooley , 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 Content-Type: text/plain; charset="UTF-8" Hi Conor, Peter, On Fri, 2 Feb 2024 at 18:39, Conor Dooley wrote: > > 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 you > > >> 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 not > > 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@axentia.se/ ok. Based on my understanding, I'll update the property description with an example. 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. It is desired to get real voltage before voltage divider. Regards, Naresh > > Cheers, > Conor.