1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2# Copyright 2025 Analog Devices Inc. 3%YAML 1.2 4--- 5$id: http://devicetree.org/schemas/iio/adc/adi,ad4062.yaml# 6$schema: http://devicetree.org/meta-schemas/core.yaml# 7 8title: Analog Devices AD4062 ADC family device driver 9 10maintainers: 11 - Jorge Marques <jorge.marques@analog.com> 12 13description: | 14 Analog Devices AD4062 Single Channel Precision SAR ADC family 15 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4060.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4062.pdf 18 19properties: 20 compatible: 21 enum: 22 - adi,ad4060 23 - adi,ad4062 24 25 reg: 26 maxItems: 1 27 28 interrupts: 29 description: 30 Two pins are available that can be configured as either a general purpose 31 digital output, device enable signal (used to synchronise other parts of 32 the signal chain with ADC sampling), device ready (GP1 only) or various 33 interrupt signals. If intended for use as a GPIO or device enable, will not 34 present here. 35 minItems: 1 36 items: 37 - description: 38 GP0 pin, cannot be configured as DEV_RDY. 39 - description: 40 GP1 pin, can be configured to any setting. 41 42 interrupt-names: 43 minItems: 1 44 items: 45 - const: gp0 46 - const: gp1 47 48 gpio-controller: 49 description: 50 Marks the device node as a GPIO controller. GPs not listed as interrupts 51 are exposed as a GPO. 52 53 '#gpio-cells': 54 const: 2 55 description: 56 The first cell is the GPIO number and the second cell specifies 57 GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. 58 59 vdd-supply: 60 description: Analog power supply. 61 62 vio-supply: 63 description: Digital interface logic power supply. 64 65 ref-supply: 66 description: 67 Reference voltage to set the ADC full-scale range. If not present, 68 vdd-supply is used as the reference voltage. 69 70required: 71 - compatible 72 - reg 73 - vdd-supply 74 - vio-supply 75 76allOf: 77 - $ref: /schemas/i3c/i3c.yaml# 78 79unevaluatedProperties: false 80 81examples: 82 - | 83 #include <dt-bindings/gpio/gpio.h> 84 #include <dt-bindings/interrupt-controller/irq.h> 85 86 i3c { 87 #address-cells = <3>; 88 #size-cells = <0>; 89 90 adc@0,2ee007c0000 { 91 reg = <0x0 0x2ee 0x7c0000>; 92 vdd-supply = <&vdd>; 93 vio-supply = <&vio>; 94 ref-supply = <&ref>; 95 96 interrupt-parent = <&gpio>; 97 interrupts = <0 0 IRQ_TYPE_EDGE_RISING>, 98 <0 1 IRQ_TYPE_EDGE_FALLING>; 99 interrupt-names = "gp0", "gp1"; 100 }; 101 }; 102 103 - | 104 #include <dt-bindings/gpio/gpio.h> 105 #include <dt-bindings/interrupt-controller/irq.h> 106 107 i3c { 108 #address-cells = <3>; 109 #size-cells = <0>; 110 111 adc@0,2ee007c0000 { 112 reg = <0x0 0x2ee 0x7c0000>; 113 vdd-supply = <&vdd>; 114 vio-supply = <&vio>; 115 ref-supply = <&ref>; 116 117 gpio-controller; 118 #gpio-cells = <2>; 119 }; 120 }; 121