From: Krzysztof Kozlowski <krzk@kernel.org>
To: David Lechner <dlechner@baylibre.com>,
Jonathan Cameron <jic23@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: "Michael Hennerich" <michael.hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Jonathan Corbet" <corbet@lwn.net>,
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
Date: Thu, 13 Jun 2024 09:11:37 +0200 [thread overview]
Message-ID: <94448c2c-e7b2-4191-858c-529b254994f1@kernel.org> (raw)
In-Reply-To: <20240612-iio-adc-ad4695-v1-1-6a4ed251fc86@baylibre.com>
On 12/06/2024 21:20, David Lechner wrote:
> Add device tree bindings for AD4695 and similar ADCs.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
> .../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 <Michael.Hennerich@analog.com>
> + - Nuno Sá <nuno.sa@analog.com>
> +
> +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
next prev parent reply other threads:[~2024-06-13 7:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 19:20 [PATCH 0/3] iio: adc: ad4695: new driver for AD4695 and similar ADCs David Lechner
2024-06-12 19:20 ` [PATCH 1/3] dt-bindings: iio: adc: add " David Lechner
2024-06-13 7:11 ` Krzysztof Kozlowski [this message]
2024-06-13 13:57 ` David Lechner
2024-06-13 14:18 ` Krzysztof Kozlowski
2024-06-13 14:39 ` David Lechner
2024-06-13 15:11 ` Nuno Sá
2024-06-13 19:43 ` Rob Herring
2024-06-13 20:09 ` David Lechner
2024-06-15 12:25 ` Jonathan Cameron
2024-06-15 12:41 ` Jonathan Cameron
2024-06-15 15:23 ` David Lechner
2024-06-15 17:55 ` Jonathan Cameron
2024-06-12 19:20 ` [PATCH 2/3] iio: adc: ad4695: Add driver for " David Lechner
2024-06-12 19:40 ` David Lechner
2024-06-15 13:10 ` Jonathan Cameron
2024-06-12 19:20 ` [PATCH 3/3] Documentation: iio: Document ad4695 driver David Lechner
2024-06-15 13:12 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94448c2c-e7b2-4191-858c-529b254994f1@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).