Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp192647lqs; Thu, 13 Jun 2024 07:39:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNalLn4l72YULGDS+2RzqeNnZ9JbKDVQsncJCa05yKkOdmslW3O/mp8ItwMgiVjRUsC09sbGU4bWtkne3uZmEg5qCQe0sV3tGTDicu2g== X-Google-Smtp-Source: AGHT+IGIltR2+FGvevFznNWHJCKI5MzKTWYytCIb4vy/OFGT8ozBKV32eLXHqthC7BqGS4ee3PEe X-Received: by 2002:a05:6214:3a89:b0:6ad:9d9a:dab7 with SMTP id 6a1803df08f44-6b1a61ad971mr51723916d6.39.1718289573209; Thu, 13 Jun 2024 07:39:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718289573; cv=pass; d=google.com; s=arc-20160816; b=sZAoLqUatw7VgYZ3mGZgRSxs6hmIauUrBlsO3MLMg7FFect9/ccugCSuTqzfnHRRtD rR8NPlWs/gcVODLg3BHRp9cE0piMonvpMLDSExJ2PMgh8jNlpgSOfblvM1xsIvpI7f/4 MdsD6e+Jz8eHpgdbYU8RQ35em4RqWioX7HC3r4l6kOFmnGoVUehRiIru4uB4W1k4RdR3 mkyu/bV0ZiYYgjD5sHhBnTVohZESdJu1Zq7RjpU77zemV0YGuDyWd0cw/r1Z7Eyi7Kr3 TJy6fOYCfUMt5zJIpuzVBS9c20Clwr+b0iccxc/dPCtwI0O8VBctaQ+H1ax9bYeS2bvY gqyw== 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=0N4XXQrV3Vj1p76CTTLMvxUKN2Z68IrEsu0illIw4/U=; fh=dyWNqQ4BHRwYMcw68a/HxcLaTll9OrpiDFlPtYB9WjQ=; b=Q/msGj/qxO7oZtDsu6czVLSefjjCFWd1WhDuSH7DENIyxzPPesHAKcSvS+TJRicf6p UIaDr22HH2+2yFCW4xWtlrKbt2jnX+dXDQ22pwUppeTHWDZq9XQKJ82nt+xAohtK+C9N MVZgfNCSBgMXesje4jpszSl6d2MtvOFsmfBEy6a9/8MbH+HaiMwOOfQzh6aPM2zZjjcD 9MSBr1psXke4Bh2AwVlxMVNFTptRvfr0xDgOdV/eYygXvNtARo7wYxb7wdZZG4wc0e/s yGNIHSzXFWVF4uTVigf5HPWtAzwXqkXfUoi0HHTaoYXeuz6SR2638sMWiarUfiohn0n3 0qww==; 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=RQESr830; 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-213437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213437-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b8525dsi15638076d6.548.2024.06.13.07.39.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:39:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213437-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RQESr830; 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-213437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213437-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E73981C21B4E for ; Thu, 13 Jun 2024 14:39:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BA74145FF0; Thu, 13 Jun 2024 14:39:25 +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="RQESr830" Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (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 E631314430A for ; Thu, 13 Jun 2024 14:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718289564; cv=none; b=ZfvA5RR1WxIuhUJ7+NRg7l39+BBpTHM3ixw8wzikAwYnw+n39yiZ35dbtXS6+1fVDUQzVLfrWKb7p8PTnvpjZznQynlaIFTcZRpFeeyD2P5Z4XD+XempkN7SBPN+CHtX6Dg1mM7v3o1HSYEaGvbCpfeKoJvBALlB7iJl77ilDWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718289564; c=relaxed/simple; bh=TGYwQdD0hydwVFCQEXTmPl0v48jG53So9o6AmWcYSLY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kzVdZdwK+9GM4qe2HK2IxzTc6HL+ULKUP5YMRGztGnqINhYZH/wnckLYB1hXkw7Ba1VlOq9zZD/ePegu5W6Sg9A0Qs9uGxL8Lf9jFUVcvFqqCqMTwTe7158+cQEfaV6v9KD2H/Y40oaFjKs2BhbeQZhqIIrIOIIxDoJ7Gm8/b3o= 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=RQESr830; arc=none smtp.client-ip=209.85.210.44 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-f44.google.com with SMTP id 46e09a7af769-6f9b4d69f53so596746a34.0 for ; Thu, 13 Jun 2024 07:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718289562; x=1718894362; 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=0N4XXQrV3Vj1p76CTTLMvxUKN2Z68IrEsu0illIw4/U=; b=RQESr830Y121jVe87be5ALDhgW/cxS+UIt8XUXNxzL7HJaprA4+itpz5lDxjZ7uUYu KSfdHKxslikVYRaMqEApdvn3AnEqww8FJIH88pHxS/hp2T/6Ra5o0/3jdIuELwi4VpOK TN/vJweO7iMO0nEegMFKVvfKaa+XYz3cHEkGgvVOf8Pf1E4/oi2Kgn8qwMRagbxWEHnr AlNfKlS6D/tCSUzMmQ8kfD4wLQsZIO0tt0hbberkbt0rV2wdLcfhCsMqdD2y9x0KE2vd FjJkrzzrEkgYQwD17YqnahGAc5010Ibz+jTJu+4fMCe01c1ZPWDyka1wiEvKEPagxzS3 AhKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718289562; x=1718894362; 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=0N4XXQrV3Vj1p76CTTLMvxUKN2Z68IrEsu0illIw4/U=; b=VAbzJfLo1CJWRDYLhuYAkwwmKmbGyEHgzR77etNLX3XsWtm/gufxKugaYvziEyQd5X XV4FOIJ3qaUcKIO4xcpnytEF6okTqsZV+TkJ8bVmW7SGH/tQeslxp+rVFiR5rvOecJwH cUM7BsxTP8qRKELxeDhyg1nxKgoZP6sF38r9nci8jtyGDw/qxe0QgVQK6aOfsbSbRvO+ U0lsU8DYMj5Y0/j+Yw5/Y7cZFkqaeC5FMhoZDOrqUDu2Gnx435J7DJrdkg29/zAY6P7E ZSPGTLV0zaPNqO2VWwaJLvtVH+Rb897ojFKhobRSCpxXPus60eOjZtMien3VMUvKfop+ H5PA== X-Forwarded-Encrypted: i=1; AJvYcCXVEaEgQmjikjUqo7RJxqJeUoEZOe9G6NrnURb65Wdwa2owTsA3SDYU+f/rpQ+djkcZcBK4SQ2kxz+xWtlXuKI9pGJAtrSiBsXzIzrt X-Gm-Message-State: AOJu0YznAYsYXWaH5LKXKBKJHSe5rTFZQimU8fe9qeuMhVuOOfzRYJGF /jcCay6yq1WNmWRo7eeX7lJC/xf/ad0dOWW5pX/w6Q/MeAZvVXirSv3JSPNMAGg= X-Received: by 2002:a05:6830:603:b0:6f9:c46e:af75 with SMTP id 46e09a7af769-6fa1bf726a8mr4806080a34.11.1718289562014; Thu, 13 Jun 2024 07:39:22 -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-6fb5b8651d7sm236097a34.81.2024.06.13.07.39.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jun 2024 07:39:21 -0700 (PDT) Message-ID: Date: Thu, 13 Jun 2024 09:39:20 -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 1/3] dt-bindings: iio: adc: add AD4695 and similar ADCs To: Krzysztof Kozlowski , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Michael Hennerich , =?UTF-8?Q?Nuno_S=C3=A1?= , Jonathan Corbet , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20240612-iio-adc-ad4695-v1-0-6a4ed251fc86@baylibre.com> <20240612-iio-adc-ad4695-v1-1-6a4ed251fc86@baylibre.com> <94448c2c-e7b2-4191-858c-529b254994f1@kernel.org> Content-Language: en-US From: David Lechner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/13/24 9:18 AM, Krzysztof Kozlowski wrote: > On 13/06/2024 15:57, David Lechner wrote: >> >>> >>>> + - const: adi,ad4695 >>>> + - items: >>>> + - const: adi,ad4697-wlcsp >>>> + - const: adi,ad4697 >>>> + # same chips with higher max sample rate >> >> I suppose one could make the argument that the programming model is >> the same on these too, but the maximum sampling frequency does seem >> like an important bit of information so that you don't try to set >> the conversion trigger rate too high. >> > > which property is that? I don't see differences in the driver, so I > don't get how these wlcsp compatibles allow you to control value of > conversion trigger. This comment is unrelated to the package type (WLCSP or LFCSP). What I mean is that e.g. AD4695 and AD4696 are virtually identical other than the maximum allowable sample rate (500 kSPS or 1 MSPS). So my thinking was that it would make sense to have: compatible = "ad4695"; for the lower sample rate chip and compatible = "ad4696", "ad4695"; for the higher sample rate chip since ad4696 can do everything that ad4695 does plus a bit more. We haven't implemented buffered reads in the driver yet, so there isn't anything currently to be seen there. But when we do, we probably want to limit the allowable value for the sampling_frequency attribute based on which version of the chip is present. (I would like to get Jonathan's opinion of if this is something we actually need to do or not.)