Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp534925lqo; Fri, 10 May 2024 07:22:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCz1ZLmcMQMGPLh0pW7kTI7kn9+SMWx/P3MtWt6+wpv/klxOqgEZXndM8t24ADRoPMQBeBJ8mpPhXADC9qMKXVHM+7AC7dapc/TDtXVA== X-Google-Smtp-Source: AGHT+IHd6PLCVh2paK61vp+mO26Ab+1MLPCGkBF58AzWw+KH3FTiLY8MqyT8pJSxGa3HVC9lyD3E X-Received: by 2002:a17:907:36f:b0:a59:ba18:2fb9 with SMTP id a640c23a62f3a-a5a2d534e9cmr178519566b.12.1715350957523; Fri, 10 May 2024 07:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715350957; cv=pass; d=google.com; s=arc-20160816; b=x9q9k3hbMYhL6pOL47NVJQapUhcW8tW8o0W6mVy0IfqzWwqX683FF10p/HJwc12loH Z88NHetgFV/hCmzy60Uu7/HjI//CnY9ggCfZRgH9fCM+D5Uiwtk4ZR84NEii/Hefc2fS vTBLkKDQ6Eyj28tCk/PjLMGBjPHUyCOvVxHxGTbSxwff5Q/npsm/f2u4FhCVu7Pt/AJx HrBtpydEWveXZRj0w7ozIigfs4A2tfnJJAUalxezbpeE1Fw94Xn7vEa7IK2wnZMZusIG eooV+u6mXD19FMFsJ5DV/bZYsKHpF4W5hHg6l/A+7e5PyWaenI+MrDESHZ6cHtnLh6/e We9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jh2huEHV1TSt+ycvIgeD7tfbDb1mnbYoWBnX7KKFMAg=; fh=9u+szLHwTsfwWXH89N03jsxlX21hg3Nj2E8WXWl0Uus=; b=nt3qJitbW8EVD+7AZRHhKnhhGHJz55Y1d17DpZ4zhpMjyYSbqu0avh9w4clf8GQ9ji wk8IzpthuJLRrUk7FC7paEfwffS05v4noNgTfPxw1Epc+2CUVCaQ+JRO5jB44TPA4X2/ qns9jbKBOujI8kx9OVMrigo0D2S/3xs3VDWKYBzw9ITojwWB+SHETMiR8myn3lCxUmz9 9/F0rmMxb+8Mh+juVCM/sLLJgUIqQJdKwRQVbUj1i1Nomi/CGMyPt+BHc/yKLd5QpDjc Cj9POSg1t6FNDpBVpJMN7VKZVYVQd7CJj5z36WhEFvNwaNlkKbIxmltwztjaJjpdWrlg Mh5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=hYbLpkTA; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-175891-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175891-linux.lists.archive=gmail.com@vger.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 a640c23a62f3a-a5a17be6d5bsi202633166b.852.2024.05.10.07.22.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 07:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175891-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=hYbLpkTA; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-175891-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175891-linux.lists.archive=gmail.com@vger.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 3ED221F21895 for ; Fri, 10 May 2024 14:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBF80170855; Fri, 10 May 2024 14:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="hYbLpkTA" Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 8AA0416E862 for ; Fri, 10 May 2024 14:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350902; cv=none; b=PBIwq//QFEXmt7iORXFEQLYeDBcsrI5BCu24L8Kt+eu/SVKNaVDHBImYFvy+HR5Ne5fu0DaxZNmBqPUuKwfZT6h/tQDR6hextq9s+QmcZhqrtYMj/Y6UaUmLfH8D8izEQkNHO77zitOgRi8+M3mT0+UEP8GLZMOBMInRvGThVWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350902; c=relaxed/simple; bh=nTDrI9ZttDdbehCGroSRZsTLKzJKE6ZuTvRhbFn7iOU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jikjFILJSoAfVJqPRTll53Zv/zQG5ISVn4szBggO9HkqrRxDHonJkK0Vqz6en878ITQPQncndmnjrhlP8BxlI5sRi5uJ2/FLjQhb1KWK1sKCr0/i014BfnZ78K+c8qTvL42UyLyS9YPnaVQwuObUkkKy9ue05d/c286JW/+6194= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=hYbLpkTA; arc=none smtp.client-ip=209.85.210.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6f0e6da186fso823628a34.1 for ; Fri, 10 May 2024 07:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715350899; x=1715955699; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jh2huEHV1TSt+ycvIgeD7tfbDb1mnbYoWBnX7KKFMAg=; b=hYbLpkTAwiLkQJrrcxmaAnPTmEP4RlDYhH5Lwd1dx0kYtXKPi+dl1oj/fD7VO7w7Z+ 8OVxYCO2lFt+1NS67b7sQMONMrodXSb1DSf5fIMPWUcnqV48o5Fmcgrzi3h7KVLTvXhf KvHE9jWw1qx+BmZC4eKN68RuhD4uLkd9a/V5ruCq97bxTNIcRX5MM/iCmnctUK4wbS2l 6R2j3BMDjD+QfF8ME/BOdAR6yEI7iXBmMsnLEV/Zhj0POe7dDJAgTgwYlYJ7OWxwBVvO BK7VKIym31VkDxpzougGkN1ZDn6HLjzjBg7wJ+0kxz00PzsKe3ioKYzGYVSZEydLvCvL NPLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715350899; x=1715955699; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jh2huEHV1TSt+ycvIgeD7tfbDb1mnbYoWBnX7KKFMAg=; b=Wcqb6ykZPAjMG0JSyUMFz7dROZXUKHJJC9VbDpjaf1mh+StQdBihMCfmh/YKyxJH+k uKcyFP7Il1PR8qE5s0ApEhaXnVprwTL4YZ+4CLBGllcxKKrIxN+u8pkKnU4jOSLvfC3Y 7GfEluI5LxYM3lZQG3EQBq0ochJfKAPxW6/TauP9Z3KUuZSJgEnrRJPyvNliqL7/wYC4 hjEyHnzud3QY9hYhbCxJepwBTa4gHTbLcnGJ+5p+eHxoGkGpG+FHzAD23M+OnH7ChMWg A5CnWXW1/Xou7z8AVkEd8nYhNkQ3gtMskMlTWrmlz22ZfuYpO7PH0tRtZyrc4yp2i0Bl wYcw== X-Forwarded-Encrypted: i=1; AJvYcCWK+m87VAdcrjt4KBCjuhpx3AxaXGNfcrIOiy+tpxP7lHoP+xLXnzN7xgjCZA5Al2b8Zy2AEn9tJxZ1uUZUicGPLMRTKtzoVjAdRo5P X-Gm-Message-State: AOJu0Ywc/sEbl8JrNhbT3tHfz78IURbqc9Phc3bq7V3cPN7fSfCT9iha t8P0hhyBjNvqzlEAT8nTkAJQl7pJ3RVfI21S2a7gYAO34asIMK7vIV3QBfEblN4= X-Received: by 2002:a05:6830:3a09:b0:6f0:88a9:c9e1 with SMTP id 46e09a7af769-6f0e91133admr2726700a34.7.1715350899542; Fri, 10 May 2024 07:21:39 -0700 (PDT) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-6f0e259e71dsm667035a34.56.2024.05.10.07.21.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 May 2024 07:21:38 -0700 (PDT) Message-ID: Date: Fri, 10 May 2024 09:21:37 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 5/6] dt-bindings: iio: adc: ad7192: Add AD7194 support To: Alisa-Dariana Roman , Conor Dooley Cc: michael.hennerich@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alexandru.tachici@analog.com, lars@metafoo.de, jic23@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, andy@kernel.org, nuno.sa@analog.com, marcelo.schmitt@analog.com, bigunclemax@gmail.com, okan.sahin@analog.com, fr0st61te@gmail.com, alisa.roman@analog.com, marcus.folkesson@gmail.com, schnelle@linux.ibm.com, liambeguin@gmail.com References: <20240430162946.589423-1-alisa.roman@analog.com> <20240430162946.589423-6-alisa.roman@analog.com> <20240430-winnings-wrongness-32328ccfe3b5@spud> <73365049-670b-4068-a159-fbdd0539f5a9@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <73365049-670b-4068-a159-fbdd0539f5a9@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/10/24 5:05 AM, Alisa-Dariana Roman wrote: > On 30.04.2024 20:21, Conor Dooley wrote: >> On Tue, Apr 30, 2024 at 07:29:45PM +0300, Alisa-Dariana Roman wrote: >>> +      diff-channels: >>> +        description: >>> +          Both inputs can be connected to pins AIN1 to AIN16 by choosing the >>> +          appropriate value from 1 to 16. >>> +        items: >>> +          minimum: 1 >>> +          maximum: 16 >>> + >>> +      single-channel: >>> +        description: >>> +          Positive input can be connected to pins AIN1 to AIN16 by choosing the >>> +          appropriate value from 1 to 16. Negative input is connected to AINCOM. >>> +        items: >>> +          minimum: 1 >>> +          maximum: 16 >> >> Up to 16 differential channels and 16 single-ended channels, but only 16 >> pins? Would the number of differential channels not max out at 8? > > Hello, Conor! I really appreciate the feedback! > > The way I thought about it, the only thing constraining the number of channels is the reg number (minimum: 0, maximum: 271). 272 channels cover all possible combinations (16*16 differential and 16 single ended) and I thought there is no need for anything stricter. I added items: minimum:1 maximum:16 to make sure the numbers are from 1 to 16, corresponding to AIN1-AIN16. > > Please let me know what should be improved! > > Kind regards, > Alisa-Dariana Roman. > Having looked at the datasheet for this and other similar chips, I agree that this reasoning makes sense. Some of the similar chips that have fixed channel assignments still have, e.g. a channel where + and - are both AIN2 (I assume for diagnostics). So I think it makes sense to allow for doing something similar here even if the most common use cases will probably have at most 16 channels defined in the .dts.