Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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. |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 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 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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: |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 28 | - adi,adrf5740 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | ... |