From: Krzysztof Kozlowski <krzk@kernel.org>
To: Rodrigo Alencar <rodrigo.alencar@analog.com>
Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org,
Michael Hennerich <Michael.Hennerich@analog.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Jonathan Cameron <jic23@kernel.org>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Subject: Re: [PATCH 2/7] dt-bindings: iio: amplifiers: Add AD8366 support
Date: Wed, 21 Jan 2026 09:10:40 +0100 [thread overview]
Message-ID: <20260121-merciful-exotic-panther-eca1b0@quoll> (raw)
In-Reply-To: <20260119-iio-ad8366-update-v1-2-8044e23e964a@analog.com>
On Mon, Jan 19, 2026 at 02:36:56PM +0000, Rodrigo Alencar wrote:
> Add device tree binding documentation for amplifiers and digital
> attenuators. This covers different device variants with similar
> SPI control.
>
> Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
> ---
> .../bindings/iio/amplifiers/adi,ad8366.yaml | 85 ++++++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 86 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml b/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml
> new file mode 100644
> index 000000000000..7477bb9b5071
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml
> @@ -0,0 +1,85 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/amplifiers/adi,ad8366.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: AD8366, similar Gain Amplifiers and Digital Attenuators
s/,/and/
> +
> +maintainers:
> + - Michael Hennerich <michael.hennerich@analog.com>
> + - Rodrigo Alencar <rodrigo.alencar@analog.com>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + Digital Variable Gain Amplifiers (VGAs) and Digital Attenuators with
> + SPI interface.
> +
> +properties:
> + compatible:
> + enum:
> + - adi,ad8366
> + - adi,ada4961
> + - adi,adl5240
> + - adi,adrf5720
> + - adi,adrf5730
> + - adi,adrf5731
> + - adi,hmc271a
> + - adi,hmc792a
> + - adi,hmc1018a
> + - adi,hmc1019a
> + - adi,hmc1119
> +
> + reg:
> + maxItems: 1
> +
> + vcc-supply:
> + description: Regulator that provides power to the device.
> +
> + reset-gpios:
> + maxItems: 1
> + description:
> + GPIO pin used to reset the device.
Drop description, redundant, said nothing more other than what property
already said. This cannot be a something else than GPIO and cannot be
used for something else than resetting device.
> +
> + enable-gpios:
> + maxItems: 1
> + description:
> + GPIO pin used to enable the device.
Drop description.
> +
> +required:
> + - compatible
> + - reg
> + - vcc-supply
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + amplifier@0 {
> + compatible = "adi,ad8366";
> + reg = <0>;
> + spi-max-frequency = <1000000>;
> + vcc-supply = <&vcc_3v3>;
> + };
> + };
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + spi {
Drop second example. It's the same as first.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-01-21 8:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-19 14:36 [PATCH 0/7] iio: amplifiers: ad8366: driver update and dt support Rodrigo Alencar via B4 Relay
2026-01-19 14:36 ` [PATCH 1/7] MAINTAINERS: Add missing maintainer entry for AD8366 driver Rodrigo Alencar via B4 Relay
2026-01-19 14:36 ` [PATCH 2/7] dt-bindings: iio: amplifiers: Add AD8366 support Rodrigo Alencar via B4 Relay
2026-01-21 8:10 ` Krzysztof Kozlowski [this message]
2026-01-19 14:36 ` [PATCH 3/7] iio: amplifiers: ad8366: consume enable gpio for applicable parts Rodrigo Alencar via B4 Relay
2026-01-23 8:26 ` Jonathan Cameron
2026-01-19 14:36 ` [PATCH 4/7] iio: amplifiers: ad8366: Update device support Rodrigo Alencar via B4 Relay
2026-01-23 8:33 ` Jonathan Cameron
2026-01-23 8:38 ` Jonathan Cameron
2026-01-19 14:36 ` [PATCH 5/7] iio: amplifiers: ad8366: use cleanup.h mutex guard Rodrigo Alencar via B4 Relay
2026-01-19 14:43 ` Krzysztof Kozlowski
2026-01-23 8:36 ` Jonathan Cameron
2026-01-19 14:37 ` [PATCH 6/7] iio: amplifiers: ad8366: simplify resource management Rodrigo Alencar via B4 Relay
2026-01-19 14:45 ` Krzysztof Kozlowski
2026-01-19 14:37 ` [PATCH 7/7] iio: amplifiers: ad8366: add device tree support Rodrigo Alencar via B4 Relay
2026-01-19 14:47 ` Krzysztof Kozlowski
2026-01-23 8:42 ` 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=20260121-merciful-exotic-panther-eca1b0@quoll \
--to=krzk@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=rodrigo.alencar@analog.com \
/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
all inboxes | Powered by JetHome®