Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp211885lqq; Thu, 13 Jun 2024 00:11:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHVqFU/+HV5yqdIFOREJNKMbEubMLDb/D0jVMYMGa6FfGKD0jvaamUj98hOJjM13gE6ZXU7JSaQTKBb7MKJdYmYmVhB7FRF9EGo7CF4A== X-Google-Smtp-Source: AGHT+IH6/hhIbQul7LbVBPNY5WZC80eGcwH43n4yOYnlQ7d9bzKLqNP0f6JSjPi7qlyQUMLbjLTa X-Received: by 2002:a05:622a:64b:b0:440:279c:f9eb with SMTP id d75a77b69052e-4415abd9cdbmr51062061cf.17.1718262715619; Thu, 13 Jun 2024 00:11:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718262715; cv=pass; d=google.com; s=arc-20160816; b=i9RQU5vtIARdc4IOkGdrC08lEkYSqtQJhcW0H5nS4ykYBzhK2wztrzkC7K8BgG+/x2 s/dihS29zgMcNuhOGG9Lbwx5iRCccgHKzgKrdICVkaDfi4pIs8ZhryHEkP/lMzi127Ck zvSxZV/DVJpHufOakpdv1c+uigLakecRtCjr9gYDp9p0W7+oxvNVK6odxHaXQJpIMGlF lNAlhQvnMdRcf8MzeWnx67EpwKrKjPmr0Ga5lnuqMQ2ECEDgFOAD2g6Y8tv15mN6j0L0 auLRQFVVVwpQfv/mAxFECILSxDN3TYHpMwqGX7EWgdiVyBa5sHgiq5nF7SpBja5QOFbN rRxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=6gGI9icFaSCi8xCdsAU12TyIH0iqT1HH3kDaIwflQLg=; fh=pO7ykdqcyNodEEqx7qJnbTVzdqISHNWRJpQ392Y0T88=; b=Lh0/TrRBTGP+3UU+izLAvgO77uimhRorcOrbo5tErLtdXjl0vbJzZq+QCtjApeRqJX nwKe3Cbm94CfOt1HtklsnKL99LCwWgbe9QPS6rngRW92R6TTjuPTOallcFj7+iwTBJGp HUTvaQJf94qrEqPDceuNFEhaYTY1hC3WCJk9/uUvgcj0hSB74qbSyZyCsn3wNjstOHZo roC62vrhDpmkJXOu2rWWt0ot20P9/6mgAWdhx+ujWgLnz4ygum8ZJvyPLf+4SVZ2roFO VrdrB8BPyRydIb0SHG3n5DHZE3Wl1r5KikV7azGp89nyTavPicvrAohyXuPGlL3Ahgpa NEdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j42W6Jhv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441ef3b9bcfsi8933891cf.44.2024.06.13.00.11.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 00:11:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j42W6Jhv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212672-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 496B01C22D42 for ; Thu, 13 Jun 2024 07:11:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 071311386D7; Thu, 13 Jun 2024 07:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j42W6Jhv" 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 DC5DB1384AB; Thu, 13 Jun 2024 07:11:44 +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=1718262705; cv=none; b=vAckQ0lxy9CkictrV9sdevbzk3IGnp1NQ5ZA3mryRcvF5z8Xtxt4e+LAU1KYaiXziyY501vrLqZw75SpH/IUZdaoY8TCCLrjUBm8J23q4nwsHwiSp07ev1lCy5QmS106oXuF/Yt3reBh0ZFD/0EXQjNKOYEdzQtFZpRB+boUCdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718262705; c=relaxed/simple; bh=OslM3kkku1MDWJpYN4HLaJZ3olMNC5OUngm/2NELu/Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CqTErAwt4jYaFO3lubZJqqocWBmhyw+/COhbtL1uLWLg7tcCbL+9P7rAb5ofitjkQOg1IgUWIw5m399v9KnoEjuELh+DpulSf1z4L6rJU6mJC/gU7uiU2wNPuGGsU6NnFXt/uyy2e6RrFtdjHpKo1n3wjBV255sd1el1Y+YYbPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j42W6Jhv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 657AFC2BBFC; Thu, 13 Jun 2024 07:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718262704; bh=OslM3kkku1MDWJpYN4HLaJZ3olMNC5OUngm/2NELu/Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=j42W6JhvQzwh3evAHkcis301+xm4+w2IsrLOmt83a1O2r5maTl1y1wXlYmji3/Yi+ gYefiRTwdGKNdXW+U6kc7e3iP9DGR2Shhk1pjRS5k6cp5k9qM2wpvnvYOhLnuCm7YA a/EXe6Q141fxibH/3znijXCqR4YviSISJ5OIy/7Zr/qIXRwpqBOwaEu6dxUv4cNEDf 64aqM4bPsjeI9VcC9e5mwfQQKoqV6Nd8+ADOliDikmz8FserW76ExvSTLnrULIBEQv 2+cbHVE93IULJ6GDvHHcQOAA+1xgfl1ofJxW8SBC22ycDmIxsz0/gNdtJLZrgYGfqK Wk6FG3TxHSXww== Message-ID: <94448c2c-e7b2-4191-858c-529b254994f1@kernel.org> Date: Thu, 13 Jun 2024 09:11:37 +0200 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: David Lechner , 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> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsu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1-6a4ed251fc86@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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? > + - const: adi,ad4695 > + - items: > + - const: adi,ad4697-wlcsp > + - const: adi,ad4697 > + # same chips with higher max sample rate > + - 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 > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 80000000 > + > + spi-cpol: true > + spi-cpha: true > + > + spi-rx-bus-width: > + minimum: 1 > + maximum: 4 > + > + avdd-supply: > + description: A 2.7 V to 5.5 V supply that powers the analog circuitry. > + > + ldo-in-supply: > + description: A 2.4 V to 5.5 V supply connected to the internal LDO input. > + > + vdd-supply: > + description: A 1.8V supply that powers the core circuitry. > + > + vio-supply: > + description: A 1.2V to 1.8V supply for the digital inputs and outputs. > + > + ref-supply: > + description: A 2.4 V to 5.1 V supply for the external reference voltage. > + > + refin-supply: > + description: A 2.4 V to 5.1 V supply for the internal reference buffer input. > + > + com-supply: > + description: Common voltage supply for pseudo-differential analog inputs. > + > + adi,no-ref-current-limit: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + When this flag is present, the REF Overvoltage Reduced Current protection > + is disabled. > + > + adi,no-ref-high-z: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + Enable this flag if the ref-supply requires Reference Input High-Z Mode > + to be disabled for proper operation. > + > + cnv-gpios: > + description: The Convert Input (CNV). If omitted, CNV is tied to SPI CS. > + maxItems: 1 > + > + reset-gpios: > + description: The Reset Input (RESET). Should be configured GPIO_ACTIVE_LOW. > + maxItems: 1 > + > + interrupts: > + minItems: 1 > + items: > + - description: > + Signal coming from the BSY_ALT_GP0 or GP3 pin that indicates a busy > + condition. > + - description: > + Signal coming from the BSY_ALT_GP0 or GP2 pin that indicates an alert > + condition. > + > + interrupt-names: > + minItems: 1 > + items: > + - const: busy > + - const: alert > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + description: | > + The first cell is the GPn number: 0 to 3. > + The second cell takes standard GPIO flags. > + > + "#address-cells": > + const: 1 Blank line > + "#size-cells": > + const: 0 > + Best regards, Krzysztof