Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad4062.yaml
121848 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1# Copyright 2025 Analog Devices Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/adi,ad4062.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Analog Devices AD4062 ADC family device driver89maintainers:10- Jorge Marques <jorge.marques@analog.com>1112description: |13Analog Devices AD4062 Single Channel Precision SAR ADC family1415https://www.analog.com/media/en/technical-documentation/data-sheets/ad4060.pdf16https://www.analog.com/media/en/technical-documentation/data-sheets/ad4062.pdf1718properties:19compatible:20enum:21- adi,ad406022- adi,ad40622324reg:25maxItems: 12627interrupts:28description:29Two pins are available that can be configured as either a general purpose30digital output, device enable signal (used to synchronise other parts of31the signal chain with ADC sampling), device ready (GP1 only) or various32interrupt signals. If intended for use as a GPIO or device enable, will not33present here.34minItems: 135items:36- description:37GP0 pin, cannot be configured as DEV_RDY.38- description:39GP1 pin, can be configured to any setting.4041interrupt-names:42minItems: 143items:44- const: gp045- const: gp14647gpio-controller:48description:49Marks the device node as a GPIO controller. GPs not listed as interrupts50are exposed as a GPO.5152'#gpio-cells':53const: 254description:55The first cell is the GPIO number and the second cell specifies56GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.5758vdd-supply:59description: Analog power supply.6061vio-supply:62description: Digital interface logic power supply.6364ref-supply:65description:66Reference voltage to set the ADC full-scale range. If not present,67vdd-supply is used as the reference voltage.6869required:70- compatible71- reg72- vdd-supply73- vio-supply7475allOf:76- $ref: /schemas/i3c/i3c.yaml#7778unevaluatedProperties: false7980examples:81- |82#include <dt-bindings/gpio/gpio.h>83#include <dt-bindings/interrupt-controller/irq.h>8485i3c {86#address-cells = <3>;87#size-cells = <0>;8889adc@0,2ee007c0000 {90reg = <0x0 0x2ee 0x7c0000>;91vdd-supply = <&vdd>;92vio-supply = <&vio>;93ref-supply = <&ref>;9495interrupt-parent = <&gpio>;96interrupts = <0 0 IRQ_TYPE_EDGE_RISING>,97<0 1 IRQ_TYPE_EDGE_FALLING>;98interrupt-names = "gp0", "gp1";99};100};101102- |103#include <dt-bindings/gpio/gpio.h>104#include <dt-bindings/interrupt-controller/irq.h>105106i3c {107#address-cells = <3>;108#size-cells = <0>;109110adc@0,2ee007c0000 {111reg = <0x0 0x2ee 0x7c0000>;112vdd-supply = <&vdd>;113vio-supply = <&vio>;114ref-supply = <&ref>;115116gpio-controller;117#gpio-cells = <2>;118};119};120121122