Merge branch 'for-6.9/amd-sfh' into for-linus
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / amplifiers / adi,hmc425a.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/amplifiers/adi,hmc425a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Analog Devices HMC425A and similar Digital Step Attenuators
8
9 maintainers:
10   - Michael Hennerich <michael.hennerich@analog.com>
11
12 description: |
13   Digital Step Attenuator IIO devices with gpio interface.
14   Offer various frequency and attenuation ranges.
15   ADRF5750 2 dB LSB, 4-Bit, Silicon Digital Attenuator, 10 MHz to 60 GHz
16     https://www.analog.com/media/en/technical-documentation/data-sheets/adrf5740.pdf
17
18   HMC425A 0.5 dB LSB GaAs MMIC 6-BIT DIGITAL POSITIVE CONTROL ATTENUATOR, 2.2 - 8.0 GHz
19     https://www.analog.com/media/en/technical-documentation/data-sheets/hmc425A.pdf
20
21   HMC540S 1 dB LSB Silicon MMIC 4-Bit Digital Positive Control Attenuator, 0.1 - 8 GHz
22     https://www.analog.com/media/en/technical-documentation/data-sheets/hmc540s.pdf
23
24
25 properties:
26   compatible:
27     enum:
28       - adi,adrf5740
29       - adi,hmc425a
30       - adi,hmc540s
31
32   vcc-supply: true
33
34   ctrl-gpios:
35     description:
36       Must contain an array of 6 GPIO specifiers, referring to the GPIO pins
37       connected to the control pins V1-V6.
38     minItems: 6
39     maxItems: 6
40
41 required:
42   - compatible
43   - ctrl-gpios
44
45 additionalProperties: false
46
47 examples:
48   - |
49     #include <dt-bindings/gpio/gpio.h>
50     gpio_hmc425a: hmc425a {
51       compatible = "adi,hmc425a";
52       ctrl-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>,
53         <&gpio 39 GPIO_ACTIVE_HIGH>,
54         <&gpio 38 GPIO_ACTIVE_HIGH>,
55         <&gpio 37 GPIO_ACTIVE_HIGH>,
56         <&gpio 36 GPIO_ACTIVE_HIGH>,
57         <&gpio 35 GPIO_ACTIVE_HIGH>;
58       vcc-supply = <&foo>;
59     };
60 ...