From nobody Tue Dec 2 02:41:46 2025 Received: from mx0a-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 77E5B33C198; Tue, 18 Nov 2025 17:32:56 +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=1763487179; cv=none; b=ExI2z8gpBh2BcMjIus8NcTUqrjsFKCDWYlBVbksnTEGXsUGt3Bh0JFKt6rESgY980TDs18BlHbw+soYZIkIPoiMOn3zIqo2puojz3oCMCAEyZGPqztV6c6WoDPYoQzC/xkx4W68tfAQdfebvn6y8mAo83L9QcNJ0kBdL/8M84Po= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763487179; c=relaxed/simple; bh=jmFleQqOf86OVrPNphPDuGEsd33gYKxCPNCl9iOvQjw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nVYMrugoNcx/rmAyH4AgQm+0ZAzGc9GRPYAOaxItEOaOd0cGPtewdXKbCVvyhYoxRNMwrdvWPmHQGDHln6r+fZvxGUa6/amh9DT8n9Im+5Axk2XHNzimUxDbLAUo25h4gUPs0hSjhBpYlOTht9rcVBPiKCmtkb/rPwv2VCqOmi0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=NRU7bia7; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="NRU7bia7" Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AIGn8Ax2368038; Tue, 18 Nov 2025 12:32:39 -0500 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=KMZdU cworu7qGmcLT9sLkt2kXFrvQFgJMjai24837XE=; b=NRU7bia7So9A3c7wulEXg YHxkFLN0qpqkKIcVJAoC4TASemC37ipnfIAr5o4e4UX/5vfAx4vweCkgQl9YtqVl KhZFLaG+jp+4IO3S/ByKb1TiHj1LnUqbbrZNA61TiJy3eOPVYSnYIV5XiAfmVFXp H6ecnfbHLE4l2RCjMWv1OvahqZOFqMS8Uq7nc1sWSkekyFSksJKv7voatgBlAuHr ZGWBEV9oAAiwYKUCe8FH+0zJL7cGODAlM1k6+xu6UP2eMbU0+aKpiPW3Z+D0fKnP E5ybu1V+5WkvEjPFd5lOYl+WltlhQUvxMM5sN92/mIqFZgTzlgXs8kBKaa7pnTa5 w== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4aggt2kpkc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Nov 2025 12:32:39 -0500 (EST) 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 5AIHWc4T043234 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 18 Nov 2025 12:32:38 -0500 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.37; Tue, 18 Nov 2025 12:32:37 -0500 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.37; Tue, 18 Nov 2025 12:32:37 -0500 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.37 via Frontend Transport; Tue, 18 Nov 2025 12:32:37 -0500 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 5AIHWMOv007667; Tue, 18 Nov 2025 12:32:25 -0500 From: Marcelo Schmitt To: , , , CC: , , , , , , , , , , Subject: [PATCH v2 1/3] dt-bindings: iio: adc: Add AD4134 Date: Tue, 18 Nov 2025 14:32:22 -0300 Message-ID: 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-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: H-wM34wm30FzJ6STubA_YIxgy3AA88DB X-Proofpoint-ORIG-GUID: H-wM34wm30FzJ6STubA_YIxgy3AA88DB X-Authority-Analysis: v=2.4 cv=FsIIPmrq c=1 sm=1 tr=0 ts=691cadb7 cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=6UeiqGixMTsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=gEfo2CItAAAA:8 a=gAnH3GRIAAAA:8 a=nQ53MiDv_q3zpeR_elAA:9 a=sptkURWiP4Gy88Gu7hUp:22 a=cPQSjfK2_nFv0Q5t_7PE:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTE4MDE0MiBTYWx0ZWRfX160VxgQpFbyd afnTNIAVV0YZW5sAZVNf5Rl3LZEvmqn8qqtCi3BKFiVh4JRiXewgK8wz1AhzRkrPUcntk1r62Hq Z4DjezOoOrCUqc7PBcgrqtbI7bHLXpPP+RtjDNw6ljWMv9yBX5kLbOgDSib3fHgwgaJjoy9XSQb HScctVxygUO/06UGzrouCvhKxf1tS/nvhF9WSZqE1UOkYH1HDwrDcwGLtUa8Y3maYbTXkEgM+up FM2Ah37TylS9vwxbiLNj4etIRp6zN3Cq3JPjioMjQ6Pp+TXKK74uWUC7afVDMfym+DRxe2yw9EO mlV7qgShyaBRVZ8uyrsXJiE4HWNlxtfno+tTUPwu6UBDe1cFCtvFCbVZO4r+XP/sP4RLSyduarz DEdn1SqNsB7JrEJcBfqqkMzr9u29CQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-18_02,2025-11-18_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 priorityscore=1501 clxscore=1015 spamscore=0 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511180142 Content-Type: text/plain; charset="utf-8" Add device tree documentation for AD4134 24-Bit, 4-channel simultaneous sampling, precision ADC. Signed-off-by: Marcelo Schmitt Reviewed-by: Conor Dooley --- Change log v1 -> v2: - Dropped adi,control-mode property (can be inferred from the parent bus). adi,asrc-mode, adi,dclkio, adi,dclkmode, were also pondered for removal since they are not needed for when AD4134 is connected to an SPI bus (curre= nt use case). Though, since those properties will be needed for when AD4134 is= not connected to an SPI bus, I decided to keep them (based on v1 feedback [1]). [1]: https://lore.kernel.org/linux-iio/20251114-unmasking-nerd-d5c147c43bad= @spud/ .../bindings/iio/adc/adi,ad4134.yaml | 198 ++++++++++++++++++ MAINTAINERS | 7 + 2 files changed, 205 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad4134.ya= ml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad4134.yaml new file mode 100644 index 000000000000..6d17c0837c05 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4134.yaml @@ -0,0 +1,198 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad4134.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD4134 ADC + +maintainers: + - Marcelo Schmitt + +description: | + The AD4134 is a quad channel, low noise, simultaneous sampling, precision + analog-to-digital converter (ADC). + Specifications can be found at: + https://www.analog.com/media/en/technical-documentation/data-sheets/ad= 4134.pdf + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad4134 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 50000000 + + avdd5-supply: + description: A 5V supply that powers the chip's analog circuitry. + + dvdd5-supply: + description: A 5V supply that powers the chip's digital circuitry. + + iovdd-supply: + description: + A 1.8V supply that sets the logic levels for the digital interface p= ins. + + refin-supply: + description: + A 4.096V or 5V supply that serves as reference for ADC conversions. + + avdd1v8-supply: + description: A 1.8V supply used by the analog circuitry. + + dvdd1v8-supply: + description: A 1.8V supply used by the digital circuitry. + + clkvdd-supply: + description: A 1.8V supply for the chip's clock management circuit. + + ldoin-supply: + description: + A 2.6V to 5.5V supply that generates 1.8V for AVDD1V8, DVDD1V8, and = CLKVDD + pins. + + clocks: + maxItems: 1 + description: + Required external clock source. Can specify either a crystal or CMOS= clock + source. If an external crystal is set, connect the CLKSEL pin to IOV= DD. + Otherwise, connect the CLKSEL pin to IOGND and the external CMOS clo= ck + signal to the XTAL2/CLKIN pin. + + clock-names: + enum: + - xtal1-xtal2 + - clkin + default: clkin + + '#clock-cells': + const: 0 + + clock-output-names: + maxItems: 1 + + regulators: + type: object + description: + list of regulators provided by this controller. + + properties: + vcm-output: + $ref: /schemas/regulator/regulator.yaml# + type: object + unevaluatedProperties: false + + additionalProperties: false + + reset-gpios: + maxItems: 1 + + powerdown-gpios: + description: + Active low GPIO connected to the /PDN pin. Forces the device into fu= ll + power-down mode when broght low. Pull this input to IOVDD for normal + operation. + maxItems: 1 + + odr-gpios: + description: + GPIO connected to ODR pin. Used to sample ADC data in minimum I/O mo= de. + maxItems: 1 + + adi,asrc-mode: + $ref: /schemas/types.yaml#/definitions/string + description: + Asynchronous Sample Rate Converter (ASRC) operation mode control inp= ut. + Describes whether the MODE pin is set to a high level (for master mo= de + operation) or to a low level (for slave mode operation). + enum: [ high, low ] + default: low + + adi,dclkio: + description: + DCLK pin I/O direction control for when the device operates in Pin C= ontrol + Slave Mode or in SPI Control Mode. Describes if DEC0/DCLKIO pin is a= t a + high level (which configures DCLK as an output) or to set to a low l= evel + (configuring DCLK for input). + enum: [ out, in ] + default: in + + adi,dclkmode: + description: + DCLK mode control for when the device operates in Pin Control Slave = Mode + or in SPI Control Mode. Describes whether the DEC1/DCLKMODE pin is s= et to + a high level (configuring the DCLK to operate in free running mode) = or + to a low level (to configure DCLK to operate in gated mode). + enum: [ free-running, gated ] + default: gated + +required: + - compatible + - reg + - avdd5-supply + - dvdd5-supply + - iovdd-supply + - refin-supply + - clocks + - clock-names + +allOf: + - if: + not: + required: + - ldoin-supply + then: + required: + - avdd1v8-supply + - dvdd1v8-supply + - clkvdd-supply + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + adc@0 { + compatible =3D "adi,ad4134"; + reg =3D <0>; + + spi-max-frequency =3D <1000000>; + + reset-gpios =3D <&gpio0 86 GPIO_ACTIVE_LOW>; + odr-gpios =3D <&gpio0 87 GPIO_ACTIVE_HIGH>; + powerdown-gpios =3D <&gpio0 88 GPIO_ACTIVE_LOW>; + + clocks =3D <&sys_clk>; + clock-names =3D "clkin"; + + avdd5-supply =3D <&avdd5>; + dvdd5-supply =3D <&dvdd5>; + iovdd-supply =3D <&iovdd>; + refin-supply =3D <&refin>; + avdd1v8-supply =3D <&avdd1v8>; + dvdd1v8-supply =3D <&dvdd1v8>; + clkvdd-supply =3D <&clkvdd>; + + adi,asrc-mode =3D "low"; + adi,dclkio =3D "in"; + adi,dclkmode =3D "gated"; + + regulators { + vcm_reg: vcm-output { + regulator-name =3D "ad4134-vcm"; + }; + }; + + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 31d98efb1ad1..b9029c4055e3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1449,6 +1449,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 AD4134 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,ad4134.yaml + ANALOG DEVICES INC AD4170-4 DRIVER M: Marcelo Schmitt L: linux-iio@vger.kernel.org --=20 2.51.0