Linux Documentation
 help / color / mirror / Atom feed
From: Janani Sunil <janani.sunil@analog.com>
To: "Nuno Sá" <nuno.sa@analog.com>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Olivier Moysan" <olivier.moysan@foss.st.com>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"Linus Walleij" <linusw@kernel.org>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>
Cc: <linux@analog.com>, <linux-iio@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-gpio@vger.kernel.org>, <linux-doc@vger.kernel.org>,
	<jananisunil.dev@gmail.com>,
	Janani Sunil <janani.sunil@analog.com>
Subject: [PATCH 1/6] dt-bindings: iio: adc: Add AD7768
Date: Thu, 9 Jul 2026 10:50:12 +0200	[thread overview]
Message-ID: <20260709-ad7768-driver-v1-1-44e1194fd96a@analog.com> (raw)
In-Reply-To: <20260709-ad7768-driver-v1-0-44e1194fd96a@analog.com>

Devicetree Bindings for AD7768-4 (4 channel) and AD7768 (8 channel)
simultaneous sampling ADC

Signed-off-by: Janani Sunil <janani.sunil@analog.com>
---
 .../devicetree/bindings/iio/adc/adi,ad7768.yaml    | 285 +++++++++++++++++++++
 MAINTAINERS                                        |   7 +
 2 files changed, 292 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768.yaml
new file mode 100644
index 000000000000..b74fe6aef01c
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768.yaml
@@ -0,0 +1,285 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/adi,ad7768.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices AD7768 and AD7768-4 ADC
+
+maintainers:
+  - Janani Sunil <janani.sunil@analog.com>
+
+description: |
+  The AD7768 is a 8-channel, 24-bit simultaneous sampling ADC with configurable
+  power and performance modes. The AD7768-4 is a 4-channel version.
+
+  Datasheet at:
+    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768.pdf
+
+properties:
+  compatible:
+    enum:
+      - adi,ad7768
+      - adi,ad7768-4
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+    description: Master clock (MCLK)
+
+  avdd-supply:
+    description: Analog power supply AVDD1 (4.5V to 5.5V)
+
+  avss-supply:
+    description: Analog ground/negative supply AVSS (0V to -2.75V)
+
+  dvdd-supply:
+    description: Analog power supply AVDD2 (2.0V to 5.5V)
+
+  iovdd-supply:
+    description: Digital I/O power supply (1.8V or 2.25V to 3.6V)
+
+  vref-supply:
+    description: ADC reference voltage supply
+
+  reset-gpios:
+    maxItems: 1
+    description: GPIO connected to the active-low RESET pin
+
+  gpio-controller: true
+
+  '#gpio-cells':
+    const: 2
+
+  adi,data-lines-number:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [1, 2, 4, 8]
+    description:
+      Number of data output lines used for serial interface.
+      AD7768 supports 1, 2, or 8 lines. AD7768-4 supports 1 or 4 lines.
+
+  adi,common-mode-output:
+    $ref: /schemas/types.yaml#/definitions/string
+    enum:
+      - avdd-avss-half
+      - 1.65V
+      - 2.5V
+      - 2.14V
+    description:
+      Common mode voltage output selection.
+
+  adi,vcm-power-down:
+    type: boolean
+    description: Power down the common mode output buffer
+
+  adi,power-mode:
+    $ref: /schemas/types.yaml#/definitions/string
+    enum:
+      - low
+      - median
+      - fast
+    description:
+      Power mode selection.
+
+  io-backends:
+    maxItems: 1
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 0
+
+patternProperties:
+  "^channel@[0-7]$":
+    type: object
+    description: |
+      Represents the external channels which are connected to the device.
+      AD7768 supports channels 0-7, AD7768-4 supports channels 0-3.
+
+    properties:
+      reg:
+        minimum: 0
+        maximum: 7
+        description: The channel number
+
+      adi,ch-mode:
+        $ref: /schemas/types.yaml#/definitions/uint32
+        minimum: 0
+        maximum: 1
+        description: |
+          Channel mode selection. The AD7768 supports two independent
+          configuration profiles (Mode A and Mode B) for filter and
+          decimation settings. Each channel can be assigned to either mode:
+            0 - Channel uses Mode A filter and decimation settings
+            1 - Channel uses Mode B filter and decimation settings
+
+      adi,prebuf-pos-en:
+        type: boolean
+        description: Enable positive input precharge buffer
+
+      adi,prebuf-neg-en:
+        type: boolean
+        description: Enable negative input precharge buffer
+
+      adi,refbuf-pos-en:
+        type: boolean
+        description: Enable positive reference buffer
+
+      adi,refbuf-neg-en:
+        type: boolean
+        description: Enable negative reference buffer
+
+    required:
+      - reg
+      - adi,ch-mode
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - avdd-supply
+  - avss-supply
+  - dvdd-supply
+  - iovdd-supply
+  - vref-supply
+  - adi,data-lines-number
+  - adi,common-mode-output
+  - io-backends
+
+dependencies:
+  gpio-controller:
+    - '#gpio-cells'
+  '#gpio-cells':
+    - gpio-controller
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: adi,ad7768-4
+    then:
+      properties:
+        adi,data-lines-number:
+          enum: [1, 4]
+      patternProperties:
+        "^channel@[0-3]$":
+          properties:
+            reg:
+              maximum: 3
+        "^channel@[4-7]$": false
+    else:
+      properties:
+        adi,data-lines-number:
+          enum: [1, 2, 8]
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        adc@0 {
+            compatible = "adi,ad7768";
+            reg = <0>;
+            spi-max-frequency = <1000000>;
+
+            avdd-supply = <&avdd_regulator>;
+            avss-supply = <&avss_regulator>;
+            dvdd-supply = <&dvdd_regulator>;
+            iovdd-supply = <&iovdd_regulator>;
+            vref-supply = <&vref_regulator>;
+            reset-gpios = <&gpio0 86 GPIO_ACTIVE_LOW>;
+
+            clocks = <&ad7768_mclk>;
+
+            adi,data-lines-number = <8>;
+            adi,common-mode-output = "2.5V";
+            adi,vcm-power-down;
+            adi,power-mode = "median";
+            gpio-controller;
+            #gpio-cells = <2>;
+
+            io-backends = <&iio_backend>;
+
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            channel@0 {
+                reg = <0>;
+                adi,ch-mode = <0>;
+                adi,prebuf-pos-en;
+                adi,refbuf-pos-en;
+            };
+
+            channel@1 {
+                reg = <1>;
+                adi,ch-mode = <1>;
+                adi,prebuf-pos-en;
+                adi,prebuf-neg-en;
+                adi,refbuf-pos-en;
+                adi,refbuf-neg-en;
+            };
+
+            channel@7 {
+                reg = <7>;
+                adi,ch-mode = <1>;
+                adi,prebuf-pos-en;
+                adi,refbuf-pos-en;
+            };
+        };
+    };
+
+  - |
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        adc@1 {
+            compatible = "adi,ad7768-4";
+            reg = <1>;
+            spi-max-frequency = <1000000>;
+
+            avdd-supply = <&avdd_regulator>;
+            avss-supply = <&avss_regulator>;
+            dvdd-supply = <&dvdd_regulator>;
+            iovdd-supply = <&iovdd_regulator>;
+            vref-supply = <&vref_regulator>;
+
+            clocks = <&ad7768_mclk>;
+
+            adi,data-lines-number = <4>;
+            adi,common-mode-output = "2.14V";
+            adi,power-mode = "fast";
+
+            io-backends = <&iio_backend>;
+
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            channel@0 {
+                reg = <0>;
+                adi,ch-mode = <0>;
+                adi,prebuf-pos-en;
+                adi,refbuf-pos-en;
+            };
+
+            channel@3 {
+                reg = <3>;
+                adi,ch-mode = <1>;
+                adi,prebuf-pos-en;
+                adi,refbuf-pos-en;
+            };
+        };
+    };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 2b1ec46c5919..d667a0411f28 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1633,6 +1633,13 @@ F:	Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
 F:	drivers/iio/adc/ad7768-1.c
 F:	include/dt-bindings/iio/adc/adi,ad7768-1.h
 
+ANALOG DEVICES INC AD7768 DRIVER
+M:	Janani Sunil <janani.sunil@analog.com>
+L:	linux-iio@vger.kernel.org
+S:	Supported
+W:	https://ez.analog.com/linux-software-drivers
+F:	Documentation/devicetree/bindings/iio/adc/adi,ad7768.yaml
+
 ANALOG DEVICES INC AD7780 DRIVER
 M:	Michael Hennerich <Michael.Hennerich@analog.com>
 M:	Renato Lui Geh <renatogeh@gmail.com>

-- 
2.43.0


  reply	other threads:[~2026-07-09  8:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  8:50 [PATCH 0/6] iio: adc: Add AD7768/AD7768-4 ADC driver support Janani Sunil
2026-07-09  8:50 ` Janani Sunil [this message]
2026-07-09 15:43   ` [PATCH 1/6] dt-bindings: iio: adc: Add AD7768 David Lechner
2026-07-10  0:33     ` Jonathan Cameron
2026-07-10  1:39   ` Jonathan Cameron
2026-07-09  8:50 ` [PATCH 2/6] iio: backend: Add support for CRC Janani Sunil
2026-07-10  0:36   ` Jonathan Cameron
2026-07-09  8:50 ` [PATCH 3/6] iio: adc: adi-axi-adc: " Janani Sunil
2026-07-09 15:54   ` David Lechner
2026-07-10  0:39   ` Jonathan Cameron
2026-07-10  0:46   ` Jonathan Cameron
2026-07-09  8:50 ` [PATCH 4/6] iio: adc: Add AD7768 IIO Driver support Janani Sunil
2026-07-10  2:10   ` Jonathan Cameron
2026-07-10  7:41   ` Uwe Kleine-König
2026-07-09  8:50 ` [PATCH 5/6] gpio: ad7768: Add AD7768 GPIO auxiliary driver Janani Sunil
2026-07-09 11:05   ` Andy Shevchenko
2026-07-10  2:14   ` Jonathan Cameron
2026-07-10 20:06   ` Linus Walleij
2026-07-09  8:50 ` [PATCH 6/6] Documentation: iio: Add AD7768 Documentation Janani Sunil
2026-07-10  2:16   ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260709-ad7768-driver-v1-1-44e1194fd96a@analog.com \
    --to=janani.sunil@analog.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jananisunil.dev@gmail.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=olivier.moysan@foss.st.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox