Skip to content

Commit 7b013bb

Browse files
committed
dt-bindings: iio: amplifiers: Add binding for AD8366 driver
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>
1 parent 3920474 commit 7b013bb

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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,ad8366.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: AD8366, similar Gain Amplifiers and Digital Attenuators
8+
9+
maintainers:
10+
- Michael Hennerich <michael.hennerich@analog.com>
11+
- Rodrigo Alencar <rodrigo.alencar@analog.com>
12+
13+
description: |
14+
Digital Variable Gain Amplifiers (VGAs) and Digital Attenuators with
15+
SPI interface.
16+
17+
Supported devices:
18+
* AD8366 Dual-Digital Variable Gain Amplifier (VGA)
19+
* ADA4961: BiCMOS RF Digital Gain Amplifier (DGA)
20+
* ADL5240: Digitally controlled Variable Gain Amplifier (VGA)
21+
* ADRF5720: Silicon Digital Attenuator
22+
* ADRF5730: Silicon Digital Attenuator
23+
* ADRF5731: Silicon Digital Attenuator
24+
* HMC271A: Digital Attenuator
25+
* HMC792A: GaAs MMIC Digital Attenuator
26+
* HMC1018A: GaAs MMIC Digital Attenuator
27+
* HMC1019A: GaAs MMIC Digital Attenuator
28+
* HMC1119: Silicon Digital Attenuator
29+
30+
properties:
31+
compatible:
32+
enum:
33+
- adi,ad8366
34+
- adi,ada4961
35+
- adi,adl5240
36+
- adi,adrf5720
37+
- adi,adrf5730
38+
- adi,adrf5731
39+
- adi,hmc271a
40+
- adi,hmc792a
41+
- adi,hmc1018a
42+
- adi,hmc1019a
43+
- adi,hmc1119
44+
45+
reg:
46+
maxItems: 1
47+
48+
vcc-supply:
49+
description: Regulator that provides power to the device.
50+
51+
reset-gpios:
52+
maxItems: 1
53+
description:
54+
GPIO pin used to reset the device.
55+
56+
enable-gpios:
57+
maxItems: 1
58+
description:
59+
GPIO pin used to enable the device.
60+
61+
required:
62+
- compatible
63+
- reg
64+
- vcc-supply
65+
66+
allOf:
67+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
68+
69+
unevaluatedProperties: false
70+
71+
examples:
72+
- |
73+
#include <dt-bindings/gpio/gpio.h>
74+
spi {
75+
#address-cells = <1>;
76+
#size-cells = <0>;
77+
78+
amplifier@0 {
79+
compatible = "adi,ad8366";
80+
reg = <0>;
81+
spi-max-frequency = <1000000>;
82+
vcc-supply = <&vcc_3v3>;
83+
};
84+
};
85+
- |
86+
#include <dt-bindings/gpio/gpio.h>
87+
spi {
88+
#address-cells = <1>;
89+
#size-cells = <0>;
90+
91+
attenuator@1 {
92+
compatible = "adi,adrf5730";
93+
reg = <1>;
94+
spi-max-frequency = <1000000>;
95+
vcc-supply = <&vcc_3v3>;
96+
};
97+
};
98+
...

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,14 @@ W: https://ez.analog.com/linux-software-drivers
15661566
F: Documentation/devicetree/bindings/iio/adc/adi,ad7780.yaml
15671567
F: drivers/iio/adc/ad7780.c
15681568

1569+
ANALOG DEVICES INC AD8366 DRIVER
1570+
M: Michael Hennerich <Michael.Hennerich@analog.com>
1571+
M: Rodrigo Alencar <rodrigo.alencar@analog.com>
1572+
L: linux-iio@vger.kernel.org
1573+
S: Supported
1574+
W: https://ez.analog.com/linux-software-drivers
1575+
F: Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml
1576+
15691577
ANALOG DEVICES INC AD9467 DRIVER
15701578
M: Michael Hennerich <Michael.Hennerich@analog.com>
15711579
M: Nuno Sa <nuno.sa@analog.com>

0 commit comments

Comments
 (0)