1
1
# SPDX-License-Identifier: GPL-2.0
2
+ # Copyright 2024 Analog Devices Inc.
2
3
%YAML 1.2
3
4
---
4
5
$id : http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
5
6
$schema : http://devicetree.org/meta-schemas/core.yaml#
6
7
7
- title : Analog Devices AD7768-1 ADC device driver
8
+ title : Analog Devices AD7768-1 ADC family device driver
8
9
9
10
maintainers :
10
11
- Michael Hennerich <michael.hennerich@analog.com>
11
12
12
13
description : |
13
- Datasheet at:
14
- https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
14
+ Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family
15
+
16
+ https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
17
+ https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf
18
+ https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf
19
+ https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf
15
20
16
21
properties :
17
22
compatible :
18
- const : adi,ad7768-1
23
+ enum :
24
+ - adi,ad7768-1
25
+ - adi,adaq7767-1
26
+ - adi,adaq7768-1
27
+ - adi,adaq7769-1
19
28
20
29
reg :
21
30
maxItems : 1
@@ -39,6 +48,16 @@ properties:
39
48
description :
40
49
ADC reference voltage supply
41
50
51
+ adi,gain-milli :
52
+ description : |
53
+ Specifies the analog anti-aliasing filter (AAF) gain applied
54
+ to the ADC input, in milli-units. Required for ADAQ7767-1 and
55
+ ADAQ7769-1 devices, the gain is determined by the pin selection
56
+ (IN1, IN2, IN3) on the ADAQ7767-1 or the connections of OUT_PGA
57
+ with IN1_AAF, IN2_AAF, or IN3_AAF on the ADAQ7769-1.
58
+ $ref : /schemas/types.yaml#/definitions/uint16
59
+ enum : [143, 364, 1000]
60
+
42
61
adi,sync-in-gpios :
43
62
maxItems : 1
44
63
description :
@@ -47,6 +66,14 @@ properties:
47
66
in any way, for example if the filter decimation rate changes.
48
67
As the line is active low, it should be marked GPIO_ACTIVE_LOW.
49
68
69
+ adi,sync-in-spi :
70
+ description :
71
+ Enables synchronization of multiple devices over SPI. This property is
72
+ used when a signal synchronous to the base MCLK signal cannot be provided
73
+ via GPIO. It requires the SYNC_OUT pin to be connected to the SYNC_IN pin
74
+ on the ADC. In the case of multiple devices, the SYNC_OUT pin of one device
75
+ should be routed to the SYNC_IN pins of the other devices.
76
+
50
77
reset-gpios :
51
78
maxItems : 1
52
79
@@ -57,6 +84,20 @@ properties:
57
84
" #io-channel-cells " :
58
85
const : 1
59
86
87
+ allOf :
88
+ # Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices
89
+ - if :
90
+ properties :
91
+ compatible :
92
+ not :
93
+ contains :
94
+ enum :
95
+ - adi,adaq7767-1
96
+ - adi,adaq7769-1
97
+ then :
98
+ properties :
99
+ adi,gain-milli : false
100
+
60
101
required :
61
102
- compatible
62
103
- reg
@@ -65,7 +106,21 @@ required:
65
106
- vref-supply
66
107
- spi-cpol
67
108
- spi-cpha
68
- - adi,sync-in-gpios
109
+
110
+ allOf :
111
+ # adi,sync-in-gpios and adi,sync-in-spi are mutually exclusive (neither is also valid)
112
+ - if :
113
+ required :
114
+ - adi,sync-in-gpios
115
+ then :
116
+ properties :
117
+ adi,sync-in-spi : false
118
+ - if :
119
+ required :
120
+ - adi,sync-in-spi
121
+ then :
122
+ properties :
123
+ adi,sync-in-gpios : false
69
124
70
125
patternProperties :
71
126
" ^channel@([0-9]|1[0-5])$ " :
0 commit comments