Skip to content

Commit 30d85dd

Browse files
committed
dt-bindings: iio: adc: ad7768-1: add new supported parts and properties
Add compatibles for supported parts in the ad7768-1 family: ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1 Add new properties: adi,gain-milli and adi,sync-in-spi Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
1 parent e9e0b9e commit 30d85dd

File tree

1 file changed

+60
-5
lines changed

1 file changed

+60
-5
lines changed

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
# Copyright 2024 Analog Devices Inc.
23
%YAML 1.2
34
---
45
$id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
56
$schema: http://devicetree.org/meta-schemas/core.yaml#
67

7-
title: Analog Devices AD7768-1 ADC device driver
8+
title: Analog Devices AD7768-1 ADC family device driver
89

910
maintainers:
1011
- Michael Hennerich <michael.hennerich@analog.com>
1112

1213
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
1520
1621
properties:
1722
compatible:
18-
const: adi,ad7768-1
23+
enum:
24+
- adi,ad7768-1
25+
- adi,adaq7767-1
26+
- adi,adaq7768-1
27+
- adi,adaq7769-1
1928

2029
reg:
2130
maxItems: 1
@@ -39,6 +48,16 @@ properties:
3948
description:
4049
ADC reference voltage supply
4150

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+
4261
adi,sync-in-gpios:
4362
maxItems: 1
4463
description:
@@ -47,6 +66,14 @@ properties:
4766
in any way, for example if the filter decimation rate changes.
4867
As the line is active low, it should be marked GPIO_ACTIVE_LOW.
4968

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+
5077
reset-gpios:
5178
maxItems: 1
5279

@@ -57,6 +84,20 @@ properties:
5784
"#io-channel-cells":
5885
const: 1
5986

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+
60101
required:
61102
- compatible
62103
- reg
@@ -65,7 +106,21 @@ required:
65106
- vref-supply
66107
- spi-cpol
67108
- 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
69124

70125
patternProperties:
71126
"^channel@([0-9]|1[0-5])$":

0 commit comments

Comments
 (0)