Documentation / devicetree / bindings / iio / amplifiers / adi,ad8366.yaml


Based on kernel version 7.2. Page generated on 2026-08-20 08:41 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
# 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 and similar Gain Amplifiers and Digital Attenuators

maintainers:
  - Michael Hennerich <michael.hennerich@analog.com>
  - Rodrigo Alencar <rodrigo.alencar@analog.com>

description:
  Digital Variable Gain Amplifiers (VGAs) and Digital Attenuators with
  SPI interface.

properties:
  compatible:
    enum:
      - adi,ad8366
      - adi,ada4961
      - adi,adl5240
      - adi,adrf5702
      - adi,adrf5703
      - 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

  enable-gpios:
    maxItems: 1
    description: Power-up or Serial Mode Enable GPIO.

required:
  - compatible
  - reg
  - vcc-supply

allOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#
  - if:
      not:
        properties:
          compatible:
            contains:
              const: adi,hmc271a
    then:
      properties:
        reset-gpios: false
  - if:
      not:
        properties:
          compatible:
            contains:
              anyOf:
                - const: adi,ad8366
                - const: adi,ada4961
                - const: adi,adrf5702
                - const: adi,adrf5703
                - const: adi,adrf5720
                - const: adi,adrf5730
                - const: adi,adrf5731
                - const: adi,hmc792a
                - const: adi,hmc1018a
                - const: adi,hmc1019a
                - const: adi,hmc1119
    then:
      properties:
        enable-gpios: false

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>;
        enable-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
      };
    };
...