Skip to content

Commit 3c8d009

Browse files
committed
dt-bindings: iio: adc: ad7768-1: add new supported parts
Add compatibles for supported parts in the ad7768-1 family: ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1 Add property and checks for AFF gain, supported by ADAQ7767-1 and ADAQ7769-1 parts: adi,gain-milli Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
1 parent 856b10d commit 3c8d009

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

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

Lines changed: 37 additions & 4 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:
@@ -57,6 +76,20 @@ properties:
5776
"#io-channel-cells":
5877
const: 1
5978

79+
allOf:
80+
# AAF Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices
81+
- if:
82+
properties:
83+
compatible:
84+
not:
85+
contains:
86+
enum:
87+
- adi,adaq7767-1
88+
- adi,adaq7769-1
89+
then:
90+
properties:
91+
adi,gain-milli: false
92+
6093
required:
6194
- compatible
6295
- reg

0 commit comments

Comments
 (0)