From: David Lechner <dlechner@baylibre.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
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 08:57:46 -0500 [thread overview]
Message-ID: <f765ef30-a777-4dfc-8f93-0f15b46f91ae@baylibre.com> (raw)
In-Reply-To: <94448c2c-e7b2-4191-858c-529b254994f1@kernel.org>
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 <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?
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
>> +
next prev parent reply other threads:[~2024-06-13 13:57 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
2024-06-13 13:57 ` David Lechner [this message]
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=f765ef30-a777-4dfc-8f93-0f15b46f91ae@baylibre.com \
--to=dlechner@baylibre.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@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