From nobody Thu Oct 9 10:26:45 2025 Received: from mx0b-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40CF52F003F; Wed, 18 Jun 2025 17:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750268142; cv=none; b=fsIFKlcPrEX+XfUQvgHPpeO0HXzMzCuozLtXAiPO5tYAu7a7WxeupgsHq747fo8B+dVnSxsc1dJcOTxGv+xCSvgd5U9YHuDhnlQnf78W3gPDkyZ06ZEdxfzuoKDE/e0sJwW7/tJtPge2PXksy6Tnn0RnVA3TMk7nUqCUw4YZ99o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750268142; c=relaxed/simple; bh=WbsCy+GPkWgS6stWIAF1maMc+H2Zq33MtpmdVGtV+Hw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YvootyMC20bfz7CJahVv5bMtkoEJ4p+c61aO+arlHjnY8JGho/o6BmP36Qmfl6Y/5+1msuoQjmAr0D5zbXY2qtq4Op4jNr2xpRenor9somOCfa6KM6lDFFVovN3coBHH3guPxShqcX2GaWYZKA3qi24/HKtdWqxU7RyVt2K3Tyg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=rqtS3NBw; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="rqtS3NBw" Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55IFgFxP009662; Wed, 18 Jun 2025 13:35:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=KxVzX oiZah2yMLjs8CpqIjJkwr6UYTAtxyjXpbL1NQs=; b=rqtS3NBwW1wdEcQKYY0m5 xglMcBgl2Efsu+wLj2X+twAvEn3qlKT4ErjSGT0jO8J+QTulzLzX65HcCgW7Z089 rPNQ+CkLb370NgmKQkncY56yNP8Dkpd+a9hrlyWC6A2U7MiKSnEYx0tzNDLrFv3o qS8eftv+4XUka0ZpaI1J3PfcMvMP2ruiUNNXr8WcNExvl0ShiWib4CXWgS71EFT4 KZL0OXr96ImDP2QH29iIYRK5UkxuDjAH5OfWmXjcmZF9i0zFw6LEld8QfjVaBwl3 K8zYOMgR8lS2kBLzzYanGFEaWJGdxkPY3wIaVvFlCWgNsdmDeaDPhNkXtXKucZbr w== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 47btfytdyn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Jun 2025 13:35:18 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 55IHZHEb031561 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Jun 2025 13:35:17 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Wed, 18 Jun 2025 13:35:17 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Wed, 18 Jun 2025 13:35:16 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Wed, 18 Jun 2025 13:35:16 -0400 Received: from work.ad.analog.com (HYB-hERzalRezfV.ad.analog.com [10.65.205.9]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 55IHYwPv007396; Wed, 18 Jun 2025 13:35:01 -0400 From: Marcelo Schmitt To: , , , CC: , , , , , , , , , , , , , Subject: [PATCH v6 01/12] dt-bindings: iio: adc: Add AD4170 Date: Wed, 18 Jun 2025 14:34:57 -0300 Message-ID: <6399c1eb6d8e1bbdf720f189a7244b1d75a90ed2.1750258776.git.marcelo.schmitt@analog.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: wehAopHpPO8X4ePHZlrtwaQFZLAldGvH X-Authority-Analysis: v=2.4 cv=QsVe3Uyd c=1 sm=1 tr=0 ts=6852f8d6 cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=gEfo2CItAAAA:8 a=gAnH3GRIAAAA:8 a=VwQbUJbxAAAA:8 a=8m0O0hpeTvo6OBoM9V0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: wehAopHpPO8X4ePHZlrtwaQFZLAldGvH X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjE4MDE0OSBTYWx0ZWRfX085dFhCY7Iao GrQbnErFYfj55e8x8yy4nhga11BdVefZeCPcY0rLSL0ii6tqQdpaRUFGKbzCe+LT8b8r9mla729 aeACnfCknYAZBpw45sfyMMe9PX4jGx/Nayj/nONH4OSo3351kr2/Rnleql/Y+qHh4f0r3BW7akk 3B1BuqWZsgT43Hw1mbtuNiJEva8chqeECPWbE3vWI2h+sC20RxN+WnOL+GcQtoGhuCZlKKTFqJH HEy0YqJnUageQAzdIaJGR+J/Wz8fI3eqlk0GkIQTztNzZx+U2wbpK+3Ezf3GB0qyw89LARTEjDO jBFf2Z4u2l/9HrGhydEGdq/zThswqsewcmQMBNolZq1nBAKU92jNvqYClrNKz81EDrVSOqLNXmr 2+HWrkQrMhQnVwboX2IGz6Qh55a8/xpa5UyrWup8w7aHaB0TBY9XrEM7rQ6OVRZrPjvpJQJb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-18_05,2025-06-18_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 adultscore=0 clxscore=1015 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506180149 Add device tree documentation for AD4170 and similar sigma-delta ADCs. The AD4170 is a 24-bit, multichannel, sigma-delta ADC. Signed-off-by: Marcelo Schmitt Acked-by: Conor Dooley --- Change log v5 -> v6 - Made reference-buffer string type. - Moved required section before patternProperties. - Made avss, refin1n, refin2n documentation open to accepting positive and negative voltage specifications where appropriate. The point of making avss-supply, refin1n-supply and refin2n-supply document= ation open to negative voltage values is to allow device tree to specify the regu= lator true voltage level so the drivers won't need to workaround negative supplie= s in the future. .../bindings/iio/adc/adi,ad4170.yaml | 558 ++++++++++++++++++ MAINTAINERS | 7 + 2 files changed, 565 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad4170.ya= ml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4170.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad4170.yaml new file mode 100644 index 000000000000..b7fe664bb87d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4170.yaml @@ -0,0 +1,558 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad4170.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD4170 and similar Analog to Digital Converters + +maintainers: + - Marcelo Schmitt + +description: | + Analog Devices AD4170 series of Sigma-delta Analog to Digital Converters. + Specifications can be found at: + https://www.analog.com/media/en/technical-documentation/data-sheets/ad= 4170-4.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad= 4190-4.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad= 4195-4.pdf + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +$defs: + reference-buffer: + description: | + Enable precharge buffer, full buffer, or skip reference buffering of + the positive/negative voltage reference. Because the output impedance + of the source driving the voltage reference inputs may be dynamic, + resistive/capacitive combinations of those inputs can cause DC gain + errors if the reference inputs go unbuffered into the ADC. Enable + reference buffering if the provided reference source has dynamic high + impedance output. Note the absolute voltage allowed on REFINn+ and R= EFINn- + inputs is from AVSS - 50 mV to AVDD + 50 mV when the reference buffe= rs are + disabled but narrows to AVSS to AVDD when reference buffering is ena= bled + or in precharge mode. The valid options for this property are: + 0: Reference precharge buffer. + 1: Full reference buffering. + 2: Bypass reference buffers (buffering disabled). + $ref: /schemas/types.yaml#/definitions/string + enum: [ precharge, full, disabled ] + default: full + +properties: + compatible: + enum: + - adi,ad4170 + - adi,ad4190 + - adi,ad4195 + + avss-supply: + description: + Reference voltage supply for AVSS. A =E2=88=922.625V minimum and 0V = maximum supply + that powers the chip. If not provided, AVSS is assumed to be at syst= em + ground (0V). + + avdd-supply: + description: + A supply of 4.75V to 5.25V relative to AVSS that powers the chip (AV= DD). + + iovdd-supply: + description: 1.7V to 5.25V reference supply to the serial interface (I= OVDD). + + refin1p-supply: + description: REFIN+ supply that can be used as reference for conversio= n. + + refin1n-supply: + description: REFIN- supply that can be used as reference for conversio= n. + + refin2p-supply: + description: REFIN2+ supply that can be used as reference for conversi= on. + + refin2n-supply: + description: REFIN2- supply that can be used as reference for conversi= on. + + spi-cpol: true + + spi-cpha: true + + interrupts: + description: + Interrupt for signaling the completion of conversion results. The da= ta + ready signal (RDY) used as interrupt is by default provided on the S= DO + pin. Alternatively, it can be provided on the DIG_AUX1 pin in which = case + the chip disables the RDY function on SDO. Thus, there can be only o= ne + data ready interrupt enabled at a time. + + interrupt-names: + description: + Specify which pin should be configured as Data Ready interrupt. + enum: + - sdo + - dig_aux1 + + clocks: + maxItems: 1 + description: + Optional external clock source. Can specify either an external clock= or + external crystal. + + clock-names: + enum: + - ext-clk + - xtal + default: ext-clk + + '#clock-cells': + const: 0 + + clock-output-names: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + description: | + The first cell is for the GPIO number: 0 to 3. + The second cell takes standard GPIO flags. + + ldac-gpios: + description: + GPIO connected to DIG_AUX2 pin to be used as LDAC toggle to control = the + transfer of data from the DAC_INPUT_A register to the DAC. + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + adi,vbias-pins: + description: Analog inputs to apply a voltage bias of (AVDD =E2=88=92 = AVSS) / 2 to. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 9 + items: + minimum: 0 + maximum: 8 + +allOf: + # Some devices don't have integrated DAC + - if: + properties: + compatible: + contains: + enum: + - adi,ad4190 + - adi,ad4195 + then: + properties: + ldac-gpios: false + + # Require to specify the interrupt pin when using interrupts + - if: + required: + - interrupts + then: + required: + - interrupt-names + + # If an external clock is set, the internal clock cannot go out and vice= versa + - oneOf: + - required: [clocks] + properties: + '#clock-cells': false + - required: ['#clock-cells'] + properties: + clocks: false + +required: + - compatible + - reg + - avdd-supply + - iovdd-supply + - spi-cpol + - spi-cpha + +unevaluatedProperties: false + +patternProperties: + "^channel@[0-9a-f]$": + $ref: /schemas/iio/adc/adc.yaml# + unevaluatedProperties: false + description: + Represents the external channels which are connected to the ADC. + + properties: + reg: + description: + The channel number. + minimum: 0 + maximum: 15 + + diff-channels: + description: | + This property is used for defining the inputs of a differential + voltage channel. The first value is the positive input and the s= econd + value is the negative input of the channel. + + Besides the analog input pins AIN0 to AIN8, there are special in= puts + that can be selected with the following values: + 17: Internal temperature sensor + 18: (AVDD-AVSS)/5 + 19: (IOVDD-DGND)/5 + 20: DAC output + 21: ALDO + 22: DLDO + 23: AVSS + 24: DGND + 25: REFIN+ + 26: REFIN- + 27: REFIN2+ + 28: REFIN2- + 29: REFOUT + For the internal temperature sensor, use the input number for bo= th + inputs (i.e. diff-channels =3D <17 17>). + items: + enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 18, 19, 20, 21, 22, 23, 24= , 25, + 26, 27, 28, 29] + + adi,reference-select: + description: | + Select the reference source to use when converting on the + specific channel. Valid values are: + 0: REFIN+/REFIN- + 1: REFIN2+/REFIN2=E2=88=92 + 2: REFOUT/AVSS (internal reference) + 3: AVDD/AVSS + If not specified, REFOUT/AVSS is used. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + default: 1 + + adi,positive-reference-buffer: + $ref: '#/$defs/reference-buffer' + + adi,negative-reference-buffer: + $ref: '#/$defs/reference-buffer' + + adi,sensor-type: + description: + The AD4170 and similar designs have features to aid interfacing = with + load cell weigh scale, RTD, and thermocouple sensors. Each of th= ose + sensor types requires either distinct wiring configuration or + external circuitry for proper sensor operation and can use diffe= rent + ADC chip functionality on their setups. A key characteristic of = those + external sensors is that they must be excited either by voltage = supply + or by ADC chip excitation signals. The sensor can then be read t= hrough + a pair of analog inputs. This property specifies which particular + sensor type is connected to the ADC so it can be properly setup = and + handled. Omit this property for conventional (not weigh scale, R= TD, or + thermocouple) ADC channel setups. + $ref: /schemas/types.yaml#/definitions/string + enum: [ weighscale, rtd, thermocouple ] + + adi,excitation-pin-0: + description: + Analog input to apply excitation current to while the channel + is active. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 20 + default: 0 + + adi,excitation-pin-1: + description: + Analog input to apply excitation current to while the channel + is active. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 20 + default: 0 + + adi,excitation-pin-2: + description: + Analog input to apply excitation current to while the channel + is active. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 20 + default: 0 + + adi,excitation-pin-3: + description: + Analog input to apply excitation current to while the channel + is active. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 20 + default: 0 + + adi,excitation-current-0-microamp: + description: + Excitation current in microamperes to be applied to pin specifie= d in + adi,excitation-pin-0 while this channel is active. + enum: [0, 10, 50, 100, 250, 500, 1000, 1500] + default: 0 + + adi,excitation-current-1-microamp: + description: + Excitation current in microamperes to be applied to pin specifie= d in + adi,excitation-pin-1 while this channel is active. + enum: [0, 10, 50, 100, 250, 500, 1000, 1500] + default: 0 + + adi,excitation-current-2-microamp: + description: + Excitation current in microamperes to be applied to pin specifie= d in + adi,excitation-pin-2 while this channel is active. + enum: [0, 10, 50, 100, 250, 500, 1000, 1500] + default: 0 + + adi,excitation-current-3-microamp: + description: + Excitation current in microamperes to be applied to pin specifie= d in + adi,excitation-pin-3 while this channel is active. + enum: [0, 10, 50, 100, 250, 500, 1000, 1500] + default: 0 + + adi,excitation-ac: + type: boolean + description: + Whether the external sensor has to be AC or DC excited. When omi= tted, + it is DC excited. + + allOf: + - oneOf: + - required: [single-channel, common-mode-channel] + properties: + diff-channels: false + - required: [diff-channels] + properties: + single-channel: false + common-mode-channel: false + # Usual ADC channels don't need external circuitry excitation. + - if: + not: + required: + - adi,sensor-type + then: + properties: + adi,excitation-pin-0: false + adi,excitation-pin-1: false + adi,excitation-pin-2: false + adi,excitation-pin-3: false + adi,excitation-current-0-microamp: false + adi,excitation-current-1-microamp: false + adi,excitation-current-2-microamp: false + adi,excitation-current-3-microamp: false + adi,excitation-ac: false + # Weigh scale bridge AC excited with one pair of predefined signals. + - if: + allOf: + - properties: + adi,sensor-type: + contains: + const: weighscale + - required: + - adi,excitation-ac + - adi,excitation-pin-2 + - adi,excitation-pin-3 + - not: + required: + - adi,excitation-current-2-microamp + - adi,excitation-current-3-microamp + then: + properties: + adi,excitation-pin-2: + const: 19 + adi,excitation-pin-3: + const: 20 + # Weigh scale bridge AC excited with two pairs of predefined signals. + - if: + allOf: + - properties: + adi,sensor-type: + contains: + const: weighscale + - required: + - adi,excitation-ac + - adi,excitation-pin-0 + - adi,excitation-pin-1 + - adi,excitation-pin-2 + - adi,excitation-pin-3 + - not: + required: + - adi,excitation-current-0-microamp + - adi,excitation-current-1-microamp + - adi,excitation-current-2-microamp + - adi,excitation-current-3-microamp + then: + properties: + adi,excitation-pin-0: + const: 17 + adi,excitation-pin-1: + const: 18 + adi,excitation-pin-2: + const: 19 + adi,excitation-pin-3: + const: 20 + +examples: + - | + #include + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + adc@0 { + compatible =3D "adi,ad4170"; + reg =3D <0>; + spi-max-frequency =3D <20000000>; + spi-cpol; + spi-cpha; + avdd-supply =3D <&avdd>; + iovdd-supply =3D <&iovdd>; + clocks =3D <&clk>; + clock-names =3D "xtal"; + interrupts =3D <0 IRQ_TYPE_EDGE_FALLING>; + interrupt-names =3D "dig_aux1"; + adi,vbias-pins =3D <7>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + // Sample AIN0 with respect to DGND throughout AVDD/DGND input= range + // Pseudo-differential unipolar + channel@0 { + reg =3D <0>; + single-channel =3D <0>; + common-mode-channel =3D <24>; + adi,reference-select =3D <3>; + }; + // Weigh scale sensor + channel@1 { + reg =3D <1>; + bipolar; + diff-channels =3D <1 2>; + adi,reference-select =3D <0>; + adi,positive-reference-buffer =3D "precharge"; + adi,negative-reference-buffer =3D "precharge"; + adi,sensor-type =3D "weighscale"; + adi,excitation-pin-2 =3D <19>; + adi,excitation-pin-3 =3D <20>; + adi,excitation-ac; + }; + // RTD sensor + channel@2 { + reg =3D <2>; + bipolar; + diff-channels =3D <3 4>; + adi,reference-select =3D <0>; + adi,sensor-type =3D "rtd"; + adi,excitation-pin-0 =3D <5>; + adi,excitation-pin-1 =3D <6>; + adi,excitation-current-0-microamp =3D <500>; + adi,excitation-current-1-microamp =3D <500>; + adi,excitation-ac; + }; + // Thermocouple sensor + channel@3 { + reg =3D <3>; + bipolar; + diff-channels =3D <7 8>; + adi,reference-select =3D <0>; + adi,sensor-type =3D "thermocouple"; + adi,excitation-pin-0 =3D <18>; + adi,excitation-current-0-microamp =3D <500>; + }; + }; + }; + - | + #include + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + adc@0 { + compatible =3D "adi,ad4170"; + reg =3D <0>; + spi-max-frequency =3D <20000000>; + spi-cpol; + spi-cpha; + avdd-supply =3D <&avdd>; + iovdd-supply =3D <&iovdd>; + #clock-cells =3D <0>; + clock-output-names =3D "ad4170-clk16mhz"; + interrupts =3D <0 IRQ_TYPE_EDGE_FALLING>; + interrupt-names =3D "dig_aux1"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + // Sample AIN0 with respect to AIN1 throughout AVDD/AVSS input= range + // Differential bipolar. If AVSS < 0V, differential true bipol= ar + channel@0 { + reg =3D <0>; + bipolar; + diff-channels =3D <0 1>; + adi,reference-select =3D <3>; + }; + // Sample AIN2 with respect to DGND throughout AVDD/DGND input= range + // Pseudo-differential unipolar + channel@1 { + reg =3D <1>; + single-channel =3D <2>; + common-mode-channel =3D <24>; + adi,reference-select =3D <3>; + }; + // Sample AIN3 with respect to 2.5V throughout AVDD/AVSS input= range + // Pseudo-differential bipolar + channel@2 { + reg =3D <2>; + bipolar; + single-channel =3D <3>; + common-mode-channel =3D <29>; + adi,reference-select =3D <3>; + }; + // Sample AIN4 with respect to DGND throughout AVDD/AVSS input= range + // Pseudo-differential bipolar + channel@3 { + reg =3D <3>; + bipolar; + single-channel =3D <4>; + common-mode-channel =3D <24>; + adi,reference-select =3D <3>; + }; + // Sample AIN5 with respect to 2.5V throughout AVDD/AVSS input= range + // Pseudo-differential unipolar (AD4170 datasheet page 46 exam= ple) + channel@4 { + reg =3D <4>; + single-channel =3D <5>; + common-mode-channel =3D <29>; + adi,reference-select =3D <3>; + }; + // Sample AIN6 with respect to 2.5V throughout REFIN+/REFIN- i= nput range + // Pseudo-differential bipolar + channel@5 { + reg =3D <5>; + bipolar; + single-channel =3D <6>; + common-mode-channel =3D <29>; + adi,reference-select =3D <0>; + }; + // Weigh scale sensor + channel@6 { + reg =3D <6>; + bipolar; + diff-channels =3D <7 8>; + adi,reference-select =3D <0>; + adi,sensor-type =3D "weighscale"; + adi,excitation-pin-0 =3D <17>; + adi,excitation-pin-1 =3D <18>; + adi,excitation-pin-2 =3D <19>; + adi,excitation-pin-3 =3D <20>; + adi,excitation-ac; + }; + }; + }; +... + diff --git a/MAINTAINERS b/MAINTAINERS index abfd5ded8735..44735314a43e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1392,6 +1392,13 @@ F: Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 F: Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml F: drivers/iio/adc/ad4130.c =20 +ANALOG DEVICES INC AD4170 DRIVER +M: Marcelo Schmitt +L: linux-iio@vger.kernel.org +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/iio/adc/adi,ad4170.yaml + ANALOG DEVICES INC AD4695 DRIVER M: Michael Hennerich M: Nuno S=C3=A1 --=20 2.47.2