Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: Add adi,ad4062

Add dt-bindings for AD4062 family, devices AD4060/AD4062, low-power with
monitor capabilities SAR ADCs. Each variant of the family differs in
resolution. The device contains two outputs (gp0, gp1). The outputs can
be configured for range of options, such as threshold and data ready.
The device uses a 2-wire I3C interface.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Jorge Marques and committed by
Jonathan Cameron
9e6c7656 bf394cc8

+126
+120
Documentation/devicetree/bindings/iio/adc/adi,ad4062.yaml
··· 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 + 8 + title: Analog Devices AD4062 ADC family device driver 9 + 10 + maintainers: 11 + - Jorge Marques <jorge.marques@analog.com> 12 + 13 + description: | 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 + 19 + properties: 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 + 70 + required: 71 + - compatible 72 + - reg 73 + - vdd-supply 74 + - vio-supply 75 + 76 + allOf: 77 + - $ref: /schemas/i3c/i3c.yaml# 78 + 79 + unevaluatedProperties: false 80 + 81 + examples: 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 + };
+6
MAINTAINERS
··· 1433 1433 F: Documentation/iio/ad4030.rst 1434 1434 F: drivers/iio/adc/ad4030.c 1435 1435 1436 + ANALOG DEVICES INC AD4062 DRIVER 1437 + M: Jorge Marques <jorge.marques@analog.com> 1438 + S: Supported 1439 + W: https://ez.analog.com/linux-software-drivers 1440 + F: Documentation/devicetree/bindings/iio/adc/adi,ad4062.yaml 1441 + 1436 1442 ANALOG DEVICES INC AD4080 DRIVER 1437 1443 M: Antoniu Miclaus <antoniu.miclaus@analog.com> 1438 1444 L: linux-iio@vger.kernel.org