Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml
170997 views
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 and 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
properties:
18
compatible:
19
enum:
20
- adi,ad8366
21
- adi,ada4961
22
- adi,adl5240
23
- adi,adrf5702
24
- adi,adrf5703
25
- adi,adrf5720
26
- adi,adrf5730
27
- adi,adrf5731
28
- adi,hmc271a
29
- adi,hmc792a
30
- adi,hmc1018a
31
- adi,hmc1019a
32
- adi,hmc1119
33
34
reg:
35
maxItems: 1
36
37
vcc-supply:
38
description: Regulator that provides power to the device.
39
40
reset-gpios:
41
maxItems: 1
42
43
enable-gpios:
44
maxItems: 1
45
description: Power-up or Serial Mode Enable GPIO.
46
47
required:
48
- compatible
49
- reg
50
- vcc-supply
51
52
allOf:
53
- $ref: /schemas/spi/spi-peripheral-props.yaml#
54
- if:
55
not:
56
properties:
57
compatible:
58
contains:
59
const: adi,hmc271a
60
then:
61
properties:
62
reset-gpios: false
63
- if:
64
not:
65
properties:
66
compatible:
67
contains:
68
anyOf:
69
- const: adi,ad8366
70
- const: adi,ada4961
71
- const: adi,adrf5702
72
- const: adi,adrf5703
73
- const: adi,adrf5720
74
- const: adi,adrf5730
75
- const: adi,adrf5731
76
- const: adi,hmc792a
77
- const: adi,hmc1018a
78
- const: adi,hmc1019a
79
- const: adi,hmc1119
80
then:
81
properties:
82
enable-gpios: false
83
84
unevaluatedProperties: false
85
86
examples:
87
- |
88
#include <dt-bindings/gpio/gpio.h>
89
spi {
90
#address-cells = <1>;
91
#size-cells = <0>;
92
93
amplifier@0 {
94
compatible = "adi,ad8366";
95
reg = <0>;
96
spi-max-frequency = <1000000>;
97
vcc-supply = <&vcc_3v3>;
98
enable-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
99
};
100
};
101
...
102
103