Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp393976lqs; Thu, 13 Jun 2024 13:10:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbhJ0302z1J4YxdQc9w/JHKKA08flCoG4fHjbhKDutWpC2ttl01VXokUPyM9i8JM14yCxq5R3qw7WILldB8CcTDMV619QuyakI5fHfrQ== X-Google-Smtp-Source: AGHT+IGrBHa5OWOGyB8NplyUBA3gzYCI1VEI8N++0u4sDmYFs2DYpPY51XMgFn/eZM0/52fKk36s X-Received: by 2002:a05:6e02:18ce:b0:375:8b0e:4442 with SMTP id e9e14a558f8ab-375e0e2f857mr6495095ab.19.1718309454901; Thu, 13 Jun 2024 13:10:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718309454; cv=pass; d=google.com; s=arc-20160816; b=heGIoax2a3rrTZJHjLXvvNYnH9gMmw0e/GFUJls7pgIxcwXTgc5JYzHrmVHQXKT4a1 4vsmvLKyUzVk3GXAksbZTgjvRjR4brDMlgRobpzhJeoRISoBBUdu3RNBGlNb6TiH7jqG rKEsWtbPX65MCw/3tyJJBuq3EKGAm/mdVCaMZXttsD7EC9C03C/pLJMrVucicjU54HvA 5jRyRktHrhNs1CfufJXXYgUTQF9nB+CYc5KTbjW0DA52PZwQlx+Z5vl7EMl5cxS95HxV yfD0yVMe6xwzaqGiwdvo1/ldZFKLW1ag1bqbfKT/38+TmwLb2TBkJgf0S0U83cTpV4vh uYDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q6rWp01E7TLm3smPdPrFqUqE+QjY4Maj4f3+A3IDxK4=; fh=gCfDKqxF382aKxfbKOtdreIvyCjxLUEricIquMAT9Fg=; b=lptquzXty1l55vsd9YFKuaowRhmU2WoGFbWN09DcX1fqGDKqg7EOQ5iWdVjq7NzOl7 tI549hXI9VR+rKtbt/hv3yqw6MouQ/oVu8GO/hAnrgl3Pm8f1c5EeeKkjnhh600U7sIo 73CAtYpVd2Yf9mIKczN/2KC4r7Hpy4jP4swMxIAWdS/eccEgC1emj3lwXbfL3R74JgzB NZkjWiJyEDyZSH/HeDtl3ss9nhcYWWlgroI6b5F0fgHqYbSe13IRDSxStI7x3+2UYrf/ P6/7vSO0scd4h3BUIHj+/b1sEHdmI8YMqBNxzDnTohu+fYTE+rMKKwREu5bwOtI8+TO3 cf+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p3HiMHlO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213944-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 41be03b00d2f7-6fee310c6desi1938393a12.419.2024.06.13.13.10.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 13:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213944-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=p3HiMHlO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213944-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 ACA09B26DEE for ; Thu, 13 Jun 2024 19:43:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 218E014D6EB; Thu, 13 Jun 2024 19:43:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p3HiMHlO" 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 3817814C583; Thu, 13 Jun 2024 19:43:25 +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=1718307806; cv=none; b=L8PfqO7Jw8WWJj2ComnHeIRbn0Hp7POQLjgXWbLUU37ibyxsdpA1hJG/1PHQg2gHo74qZOFLzCIjZftOy2fRty+wkhj3jdd07DXV09hZFXF/7mUQntw7V/XODn2obNXhH1iWdvTSTrvRGkL6aT6NUGCVtldobns6Vsy6L6+Zx84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718307806; c=relaxed/simple; bh=3qzuHXwUXJC4kkCUpeSCcm2xbDApMYoDwGK0LWJk20E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l8J/T4BPSt1CzvAk3J8YXMT3AkyL5qT25VjLJh932eiC6JRXbYd8/7BXbeYo6Y2yIKh8afnVTTvwnefzPIavUU627fc9wWBLCpyPb6Cb2nu82Cbqb6YYjq8Hw5GGkwIVrlrRRnN1MphxslwWA3aw0NF9Oi+1a1mEmkS9klkSmGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p3HiMHlO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AF99C2BBFC; Thu, 13 Jun 2024 19:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718307805; bh=3qzuHXwUXJC4kkCUpeSCcm2xbDApMYoDwGK0LWJk20E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p3HiMHlOXnYU2dP9n7a5VV3QwL33dfCFvq8F5qed1A0yQ0wCsuNDwTPHTPsnluh1b pYKFSG5MTvUuqHvib2wAw+VOgRO398l/34dMk0SzbPAGmxN5K/qmeIBldxvoIeuz6t AQU+rZBFAuksis+xsm/9mOu+NZSFd6Nxfwb2dHFT9mK448l4f79UlMn8bjKVJS0i27 6dfqM18+vgpUmfsh1MxuvPB9t7lLNNEp0CrKlxpiE1SpDG9fUblOmD74AS2e3gdwxX ieI7j3MWHhUUB+QdUal6Vc6vTtDEeuze30Z71qF7ZzeD2bUVYiBGyDwdRKwLmCZNit yx1NZK8jbAJUA== Date: Thu, 13 Jun 2024 13:43:24 -0600 From: Rob Herring To: Nuno =?iso-8859-1?Q?S=E1?= Cc: David Lechner , Krzysztof Kozlowski , Jonathan Cameron , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?iso-8859-1?Q?S=E1?= , Jonathan Corbet , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: iio: adc: add AD4695 and similar ADCs Message-ID: <20240613194324.GA2352022-robh@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> <5f0776ba5163578453e26352763ff1b4687bcf87.camel@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5f0776ba5163578453e26352763ff1b4687bcf87.camel@gmail.com> On Thu, Jun 13, 2024 at 05:11:48PM +0200, Nuno S? wrote: > On Thu, 2024-06-13 at 09:39 -0500, David Lechner wrote: > > 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. > > > > IMO, that would make sense yes. If the higher sample rate chip fallsback, it will > still work but not at full speed. The other way around is the one that we can't allow > naturally. > > But possibly dumb question now... since both devices will be supported at the same > time, do we actually care about having the fallback compatible? My understanding of > the fallback story is that we may load a DTS in an older kernel where chip A is > supported but chip B is not and it is ok for chip B to fallback to chip A. Since > these devices will be supported at the same time, do we need to care? Unless out of > tree stuff enters the equation? Yeah, it doesn't really matter much in that case. > Or is there another usecase that I'm not aware about (or maybe it just makes sense to > document properly...)? Somewhat I guess. Perhaps if there's a 3rd chip with higher rate, then it will be more obvious what to do and we don't have to have this discussion again for it. :) Rob