Skip to contentSkip to conversation

dt-bindings: iio: adc: ad7768-1: add new supported parts

PATCH Superseded Jonathan Santos 3 participants 5 messages Aug 24, 2025 – Sep 2, 2025

Subsystems (4)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/4 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 AAF gain, supported by ADAQ7767-1 and ADAQ7769-1 parts:
adi,gain-milli

---
v2 Changes:
* adi,aaf-gain property renamed to adi,gain-milli. Description was simplified.
* default value add to adi,gain-milli.

---
 .../bindings/iio/adc/adi,ad7768-1.yaml        | 43 +++++++++++++++++--
 1 file changed, 39 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +39 -4
index c06d0fc791d3..0c39491f6179 100644
@@ -4,18 +4,26 @@
 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Analog Devices AD7768-1 ADC device driver
+title: Analog Devices AD7768-1 ADC family
 
 maintainers:
   - Michael Hennerich <[email protected]>
 
 description: |
-  Datasheet at:
-    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
+  Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family
+
+  https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf
 
 properties:
   compatible:
-    const: adi,ad7768-1
+    enum:
+      - adi,ad7768-1
+      - adi,adaq7767-1
+      - adi,adaq7768-1
+      - adi,adaq7769-1
 
   reg:
     maxItems: 1
@@ -58,6 +66,18 @@ properties:
     description:
       ADC reference voltage supply
 
+  adi,gain-milli:
+    description: |
+       Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF) to the
+       ADC input (in milli units). The hardware gain is determined by which input
+       pin(s) the signal goes through into the AAF. The possible connections are
+       * For the ADAQ7767-1: Input connected to IN1±, IN2± or IN3±.
+       * For the ADAQ7769-1: OUT_PGA pin connected to IN1_AAF+, IN2_AAF+,
+         or IN3_AAF+.
+    $ref: /schemas/types.yaml#/definitions/uint16
+    enum: [143, 364, 1000]
+    default: 1000
+
   adi,sync-in-gpios:
     maxItems: 1
     description:
@@ -147,6 +167,21 @@ patternProperties:
 allOf:
   - $ref: /schemas/spi/spi-peripheral-props.yaml#
 
+  # AAF Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - adi,adaq7767-1
+              - adi,adaq7769-1
+    then:
+      required:
+        - adi,gain-milli
+    else:
+      properties:
+        adi,gain-milli: false
+
 unevaluatedProperties: false
 
 examples:
Signature · 1 line
2.34.1
#1 lore raw
Quoted 8 lines · Jonathan Santos

Add compatibles for supported parts in the ad7768-1 family:

	ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1

Add property and checks for AAF gain, supported by ADAQ7767-1 and ADAQ7769-1 parts:
adi,gain-milli

git send-email v2*

Not patch by patch. You made it very difficult for us to review and to apply.

Quoted 45 lines

---
v2 Changes:
* adi,aaf-gain property renamed to adi,gain-milli. Description was simplified.
* default value add to adi,gain-milli.

---
 .../bindings/iio/adc/adi,ad7768-1.yaml        | 43 +++++++++++++++++--
 1 file changed, 39 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +12 -4
index c06d0fc791d3..0c39491f6179 100644
@@ -4,18 +4,26 @@
 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Analog Devices AD7768-1 ADC device driver
+title: Analog Devices AD7768-1 ADC family
 
 maintainers:
   - Michael Hennerich <[email protected]>
 
 description: |
-  Datasheet at:
-    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
+  Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family
+
+  https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf
 
 properties:
   compatible:
-    const: adi,ad7768-1
+    enum:
+      - adi,ad7768-1
+      - adi,adaq7767-1
+      - adi,adaq7768-1
+      - adi,adaq7769-1
 
   reg:
     maxItems: 1

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml properties: · line 72

Quoted 7 lines
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +4 -0
@@ -58,6 +66,18 @@ properties:
     description:
       ADC reference voltage supply
 
+  adi,gain-milli:
+    description: |
+       Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF) to the
+       ADC input (in milli units). The hardware gain is determined by which input

I don't think there is no such thing as "milli units". milli is SI prefix, not unit. So "units" is the unit? Or how exactly?

Basis points were before since 2022 so I don't get why these other bindings introduced in 2024 could not use it?

Anyway, if you ever do not apply reviewers comment, then your commit msg should explain this. Otherwise you get the same discussion here.

Best regards,
Krzysztof

#2 lore raw
Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · Jonathan Santos

Add compatibles for supported parts in the ad7768-1 family:

	ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1

Add property and checks for AAF gain, supported by ADAQ7767-1 and ADAQ7769-1 parts:
adi,gain-milli

Quoted 7 lines
Quoted 1 line

git send-email v2*

Not patch by patch. You made it very difficult for us to review and to apply.

Sorry, i will pay more attention

Quoted 57 lines
Quoted 45 lines

---
v2 Changes:
* adi,aaf-gain property renamed to adi,gain-milli. Description was simplified.
* default value add to adi,gain-milli.

---
 .../bindings/iio/adc/adi,ad7768-1.yaml        | 43 +++++++++++++++++--
 1 file changed, 39 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +12 -4
index c06d0fc791d3..0c39491f6179 100644
@@ -4,18 +4,26 @@
 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Analog Devices AD7768-1 ADC device driver
+title: Analog Devices AD7768-1 ADC family
 
 maintainers:
   - Michael Hennerich <[email protected]>
 
 description: |
-  Datasheet at:
-    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
+  Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family
+
+  https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf
 
 properties:
   compatible:
-    const: adi,ad7768-1
+    enum:
+      - adi,ad7768-1
+      - adi,adaq7767-1
+      - adi,adaq7768-1
+      - adi,adaq7769-1
 
   reg:
     maxItems: 1

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml properties: · line 72

Quoted 7 lines
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +4 -0
@@ -58,6 +66,18 @@ properties:
     description:
       ADC reference voltage supply
 
+  adi,gain-milli:
+    description: |
+       Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF) to the
+       ADC input (in milli units). The hardware gain is determined by which input

I don't think there is no such thing as "milli units". milli is SI prefix, not unit. So "units" is the unit? Or how exactly?

Quoted 6 lines

Basis points were before since 2022 so I don't get why these other bindings introduced in 2024 could not use it?

Anyway, if you ever do not apply reviewers comment, then your commit msg should explain this. Otherwise you get the same discussion here.

Yes, you are right. We shouldn't use milli as suffix. However, may I suggest another option?

I believe -permille is more appropriate because it represents a 1/1000 proportion, which gives the precision we need to cover all values.

so it would be something like: adi,aaf-gain-permille

Is that ok for you?

Thanks for the feedback,
Jonathan S.

Quoted 2 lines

Best regards,
Krzysztof

#3 lore raw
Quoted 27 lines · Jonathan Santos
Quoted 14 lines

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml properties: · line 72

Quoted 9 lines

maxItems: 1

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +4 -0
@@ -58,6 +66,18 @@ properties:
     description:
       ADC reference voltage supply
 
+  adi,gain-milli:
+    description: |
+       Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF) to the
+       ADC input (in milli units). The hardware gain is determined by which input

I don't think there is no such thing as "milli units". milli is SI prefix, not unit. So "units" is the unit? Or how exactly?

Quoted 6 lines

Basis points were before since 2022 so I don't get why these other bindings introduced in 2024 could not use it?

Anyway, if you ever do not apply reviewers comment, then your commit msg should explain this. Otherwise you get the same discussion here.

Yes, you are right. We shouldn't use milli as suffix. However, may I suggest another option?

I believe -permille is more appropriate because it represents a 1/1000 proportion, which gives the precision we need to cover all values.

Quoted 6 lines

so it would be something like: adi,aaf-gain-permille

Is that ok for you?

Thanks for the feedback,
Jonathan S.

What's wrong with existing unit I pointed out before?

BTW, any idea why your reply-to header is completely corrupted (copies in-reply-to...)?

Best regards,
Krzysztof

#4 lore raw
Quoted 30 lines · Krzysztof Kozlowski
Quoted 29 lines · Jonathan Santos
Quoted 14 lines

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml properties: · line 72

Quoted 9 lines

maxItems: 1

Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +4 -0
@@ -58,6 +66,18 @@ properties:
     description:
       ADC reference voltage supply
 
+  adi,gain-milli:
+    description: |
+       Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF) to the
+       ADC input (in milli units). The hardware gain is determined by which input

I don't think there is no such thing as "milli units". milli is SI prefix, not unit. So "units" is the unit? Or how exactly?

Quoted 6 lines

Basis points were before since 2022 so I don't get why these other bindings introduced in 2024 could not use it?

Anyway, if you ever do not apply reviewers comment, then your commit msg should explain this. Otherwise you get the same discussion here.

Yes, you are right. We shouldn't use milli as suffix. However, may I suggest another option?

I believe -permille is more appropriate because it represents a 1/1000 proportion, which gives the precision we need to cover all values.

so it would be something like: adi,aaf-gain-permille

Quoted 8 lines
Quoted 4 lines

Is that ok for you?

Thanks for the feedback,
Jonathan S.

What's wrong with existing unit I pointed out before?

Nothing wrong, just thought permille would be a clearer unit than basis point for the user. But i can proceed with bp, no problem.

Quoted 3 lines

BTW, any idea why your reply-to header is completely corrupted (copies in-reply-to...)?

Yes, i was including the in-reply- to, sorry about that.

Quoted 3 lines

Best regards,
Krzysztof