Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp162489lqs; Thu, 13 Jun 2024 06:58:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVy4LU2Z+4L+vpVo2uCCe2db8qmOqXbsboI8s14aR6llRw4wFRW5tTy8C4Ltg85kL3Yb9Y+OHIKg7yvWqZsvDAcQxZqJymps78GgajlYg== X-Google-Smtp-Source: AGHT+IFn4cVk0NNS/6LGDAl3PLOLCz5uzF2mVlS0JW47P20y0V690Qd1LfT+dTWyEyozBT9lFiVY X-Received: by 2002:a17:906:c149:b0:a6f:4d38:f40c with SMTP id a640c23a62f3a-a6f4d391d2amr320660166b.62.1718287103056; Thu, 13 Jun 2024 06:58:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718287103; cv=pass; d=google.com; s=arc-20160816; b=h++BsdhRywAJOQ0tukH+UpBpRcj2tEImhxjXe1QkbGq2jkfqjD9Z1vDaBzd+2hT3fX FCek/QvLnmAdM2dzwP4ZfHU4+EfnimLOgSrNEA9e33Ilt2MONkfQ7mW5gx8DtLAeqPzL AZCjW4i+IsfDt2s6m+GaI0T5mljeUrX4F+UfSPFndmhc93AQyGMe4iPzASgFjsOrboGi NbIK100jsh7lIipk+Zfaxw4sahauaKbYt51I1bGK3vSEn8UlurozqEa6miYel4um23D4 2cvQa9UTB/MGmVB5fwJCUSXkrmR4znnU3tlmS0rSpiFQtFd1EYa+2UdIBDjnsidB73UI zLrg== 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=yAF//HO0SkiGruVZH/oa4D5CEEiCpOQwdcWhLFwGOe4=; fh=ZAbS6pjTrSqeaX4O01dFte34w5s+aNr8nBlmAW7hjEw=; b=ZcT0QFVTqXI5EUuig77uX0NOoipYCn4N4ZpRJL0hkIxQSG4suMEhHjccq2sCjS9+KH 8HZV3t/D4jtCU1T3g2//orjEdu6B//EawMVrbFc1f4vTcD5khNG6NeLFWBVgdVKqsspe e6Yx4sIuzdfvcWIOfjL6PI42JpmjpWIt2fp6A+YNlQe0XTkxAN4qGr7KcKycWpT5ZGy8 BTD6v1T16yXFndwZyuYaBoVbenDmTgIZacbyt2UJ7cApVvN2+QX5HhzQKR0W2G5iVH/4 fNCp2VL5C1lHlHD1lDji04lDv698ljeilQIRO/+Klja8Ali8INF89pX/+njkWvVhtL7W TtSQ==; 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=nWQeNOir; 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-213384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213384-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56dfaa80si73955466b.693.2024.06.13.06.58.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=nWQeNOir; 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-213384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213384-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 68C531F23B8F for ; Thu, 13 Jun 2024 13:58:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5072145335; Thu, 13 Jun 2024 13:57:52 +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="nWQeNOir" Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (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 94C62161 for ; Thu, 13 Jun 2024 13:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718287071; cv=none; b=N+GV3n6hGtHd0R2ufnrljraLMmSLF5kR6K54cAvLf4uO5h++m2Sxu7XzEBJRDGm2MVb+VdOJRVwkgzlXYaXtPnWql6kQqaexCHD0TqEKQfzYI6F99B4J3ZAdgdfn+odgTL97dTN7KxaWwxJa/PGtptEaxHFsN8gqLewN2K5ukNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718287071; c=relaxed/simple; bh=GrIGi5Raom3cBopM6onz7enFC19BTnxh+2SvPTD5iMQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FrO9ThLC4thiCsDwN5BAe14BkrAYiYPsLnYvtfR9h5b872mkpM62Lgucqdvu+dhrivTtiSwmFKO6p2aAIVwXEjm1FjjeWZPXa3Y4beMQwes9eJbVp2sM9DlGe8atooAb+0sJKcFAVFtBmIH3Iz2jW2etc1WIkDb3P9OXkINXISM= 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=nWQeNOir; arc=none smtp.client-ip=209.85.167.171 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-oi1-f171.google.com with SMTP id 5614622812f47-3d21b3da741so531212b6e.2 for ; Thu, 13 Jun 2024 06:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718287069; x=1718891869; 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=yAF//HO0SkiGruVZH/oa4D5CEEiCpOQwdcWhLFwGOe4=; b=nWQeNOirVscLswJy1r0TNhO6laI+1c2Mq2JR2ZUjoyZm61LK44eYujABKkF47ZifkN h0Dl7dMrKQp8m6ER5oymN4q2RIBkgXCHAnCMrkqlvyFgmNbxeo+ZRwsAOC/NGGPWj/i8 9C0aMZffQcar89f2mTSTOZ0ucmwJozP72SEUlgzXsUA9nNxQDxIM0OnwksPdBDq7F0aT q4NTe3PxzgRrFMFJ60zh56IV+1Mne7pv8ZKEtpeXao3jVVFKbb6ocCMe8eV+sy6X1IsO MUPThPVxNozvZFT88bHVNK9xkVXVvxXNgMjqbcq1UjYCWFOM+3j5dmluSgcdgBWWUcGM aE/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718287069; x=1718891869; 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=yAF//HO0SkiGruVZH/oa4D5CEEiCpOQwdcWhLFwGOe4=; b=ocYkKgJk/4xYf4H6CNfxDlpKe4XBH81UpTq5iYlrHyQQECgZlLSSxMkNJz8KstwcSA +rpY3w6x64N6vCdWIso1O+9AVxS6Y+EZVqhfCRg+z9YRzoiwuszVUrl9G0EuFtikJKkW 0alAYadocVbcJhQfsCKt2EuAQIHKgPrB0yJSNmAeC+wyIHlKBWSDuu0tjVt7/upwou9E 5KlptsQEW/Z/ciFw65ShPJCOp7NMSctVMCHoZxhigA0NiDAtven6TACH9k5cqTorsBex Nud+BRDsNHLYT+vFZ7lROkP7Xp2r9dlVg1n7Qds+8XBiFl5yqGWRNTtAJLgwzkRFUzgB U66g== X-Forwarded-Encrypted: i=1; AJvYcCUKdlFyFtvtlNWNpbloE1qTD5yslwkVWv0MCNUpF9ktpAKJW/x4uCz5P4OufI38o3chsbA7h93/WfEjHRKmUq/glP/lo9NrLCC2tb7k X-Gm-Message-State: AOJu0YxqyX918utiG+hjLD0uYe7qvFri8WwW/RT9S0MrOmjSYcKjNdc0 HripXM9Xg5vqRPe1tdyItr457bkuwUdFSEl27GsmbzP6nPKILwyduXdrMxLXW+8= X-Received: by 2002:a05:6808:d49:b0:3d2:1a26:8a43 with SMTP id 5614622812f47-3d23dfd87d4mr5716375b6e.9.1718287068043; Thu, 13 Jun 2024 06:57:48 -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 5614622812f47-3d2476e31cbsm194695b6e.50.2024.06.13.06.57.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jun 2024 06:57:47 -0700 (PDT) Message-ID: Date: Thu, 13 Jun 2024 08:57:46 -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: <94448c2c-e7b2-4191-858c-529b254994f1@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/13/24 2:11 AM, Krzysztof Kozlowski wrote: > On 12/06/2024 21:20, David Lechner wrote: >> Add device tree bindings for AD4695 and similar ADCs. >> >> Signed-off-by: David Lechner >> --- >> .../devicetree/bindings/iio/adc/adi,ad4695.yaml | 297 +++++++++++++++++++++ >> MAINTAINERS | 9 + >> 2 files changed, 306 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml >> new file mode 100644 >> index 000000000000..8ff5bbbbef9f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml >> @@ -0,0 +1,297 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/iio/adc/adi,ad4695.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Analog Devices Easy Drive Multiplexed SAR Analog to Digital Converters >> + >> +maintainers: >> + - Michael Hennerich >> + - Nuno Sá >> + >> +description: | >> + A family of similar multi-channel analog to digital converters with SPI bus. >> + >> + * https://www.analog.com/en/products/ad4695.html >> + * https://www.analog.com/en/products/ad4696.html >> + * https://www.analog.com/en/products/ad4697.html >> + * https://www.analog.com/en/products/ad4698.html >> + >> +$ref: /schemas/spi/spi-peripheral-props.yaml# >> + >> +properties: >> + compatible: >> + oneOf: >> + - enum: >> + - adi,ad4695 >> + - adi,ad4697 >> + # same chips in WLCSP package with more pins >> + - items: >> + - const: adi,ad4695-wlcsp > > Usually we do not add compatibles for such differences. Programming > model is the same. Same for all other wlcsp. Unless something differs? OK, I will drop all of the -wlcsp stuff. It made the .dts validation catch more stuff, but wasn't being used in the driver because there really isn't a difference other than some of the pins not being there. > >> + - 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. >> + - items: >> + - const: adi,ad4696 > > Anyway, keep all fallbacked variants in one entry, so enum with const > fallback. > >> + - const: adi,ad4695 >> + - items: >> + - const: adi,ad4698 >> + - const: adi,ad4697 >> + # same chips with higher max sample rate in WLCSP package >> + - items: >> + - const: adi,ad4696-wlcsp >> + - const: adi,ad4696 > > That's wrong. ad4696 is compatible with 4695 as stated before. It is not > compatible with ad4695-wlcsp. > >> + - const: adi,ad4695-wlcsp >> + - const: adi,ad4695 >> + - items: >> + - const: adi,ad4698-wlcsp >> + - const: adi,ad4698 >> + - const: adi,ad4697-wlcsp >> + - const: adi,ad4697 >> +