From 9432dff7cadb5eb0f7725dc0502c3fb65358af82 Mon Sep 17 00:00:00 2001 From: jonathanns Date: Tue, 27 Aug 2024 18:57:29 -0300 Subject: [PATCH] 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,low-latency and adi,gain-milli Signed-off-by: jonathanns --- .../bindings/iio/adc/adi,ad7768-1.yaml | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml index 3ce59d4d065f5d..9c1bdc3e10c870 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml @@ -1,21 +1,31 @@ # SPDX-License-Identifier: GPL-2.0 +# Copyright 2024 Analog Devices Inc. %YAML 1.2 --- $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 device driver maintainers: - Michael Hennerich + - Jonathan Santos 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 @@ -39,6 +49,27 @@ properties: description: ADC reference voltage supply + adi,low-latency: + description: | + Enables reaching the maximum data rate, using Sinc5 Dec8 filter. + + 0 - Maximum sample rate of 512 KSPS. The user can select different filters, + except for the Sinc5 Dec8. Samples have 24-bit precision. + 1 - Sample rate is fixed at 1.024 MSPS. The filter is locked to Sinc5 Dec8, + and the user cannot choose another filter. Samples have 16-bit precision, + necessary for achieving the maximum sample rate. + enum: [0, 1] + + adi,gain-milli: + description: | + Specifies the analog anti-aliasing filter (AAF) gain applied + to the ADC input, in milli-units. Required for ADAQ7767-1 and + ADAQ7769-1 devices, the gain is determined by the pin selection + (IN1, IN2, IN3) on the ADAQ7767-1 or the connections of OUT_PGA + with IN1_AAF, IN2_AAF, or IN3_AAF on the ADAQ7769-1. + $ref: /schemas/types.yaml#/definitions/uint16 + enum: [143, 364, 1000] + adi,sync-in-gpios: maxItems: 1 description: @@ -66,6 +97,7 @@ required: - spi-cpol - spi-cpha - adi,sync-in-gpios + - adi,low-latency patternProperties: "^channel@([0-9]|1[0-5])$": @@ -105,6 +137,7 @@ examples: spi-max-frequency = <2000000>; spi-cpol; spi-cpha; + adi,low-latency = <0> vref-supply = <&adc_vref>; interrupts = <25 IRQ_TYPE_EDGE_RISING>; interrupt-parent = <&gpio>;