From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E22D340411 for ; Fri, 31 Jul 2026 02:56:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785466597; cv=none; b=l3uvUpOqG9Sbwkqg5DGE9mSkI1Hgm2/MyuB1hnBCazJgYBQkunpY1L7D3t/Al5/TKmWPYSP6Ab3ey3i2My8XjEwJ73AedkHzVxVgpYL7CxX8Hez1kdoRYCRNeII9IdLF+cwbKXZL0q1qrCG9A0N3OtCV/cUvZVjxDb2oi5xU/wQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785466597; c=relaxed/simple; bh=LcqvqDicat0vXhksaxom6+76R/Ncodzz/8ncb7yIbcY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LirQBgnXncF/H4/AzVY7bm2hJ+i3L+73ihiuzpdG+F6fvGAXYlCIKDsECY5ky/DQ1rNqB9TRdAjxWRIHYdnwDcdD59FpnjHbcUafi70WbSCCC1QFQNit3GELOSywqSLUDjch7L+3Cn7zsxX9CJ3qzz+5zOcXAOe6DfFPEwLPWh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=H+BlYMSt; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H+BlYMSt" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2cf52d15d88so3938775ad.2 for ; Thu, 30 Jul 2026 19:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785466595; x=1786071395; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=eSWuvcMxwkUJprNTcD6VGu4kWLqx+IgwY+r+QhfQlFk=; b=H+BlYMStn4fiXVN/rwb3LR6mHhaIMF/QP8uWRjJ7yftrogyiZSdHcsJQAKrTbdNOnQ TdIuopbX0CK6uaE4x0LjNw7Mawhe8Y7U7jeyySG/w5v0dBSTIjiCvTJ034dWNr7nNmOE VR/TgYTaRx4OeR2yIqLZohaezSEmEJrMurqLBN1Noi5mU5+gxiTmd8JTpTQPQRRFQ6Pr HmB3X3TmjxAfPg4pc2GpTecBP5jEEBRDFfICdJgZMs/Jz/4CJWbr39YOWyPumDdNdsP7 rkgN1AryYahrOJ2H0hw717R3mVZVc3VQguY75dFyaH1TEk+volPI11MAu3iOwSGh//bz w/bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785466595; x=1786071395; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=eSWuvcMxwkUJprNTcD6VGu4kWLqx+IgwY+r+QhfQlFk=; b=OpJFyqi8E7im/QvT91NmNW4Tugv2GwRHrfX1QMNyO8d8VJuBYwvMWqiyfHpRTHZlEz ghxnwa9i4JA4ElbS4iXXOgxvUNwOU9462cEsqtbzMeqV4ZtQV5Jf4zfjmJS7mGzXdpzJ Fe5PDNdvI/zk+y+M+KwDARMBsAePnD4nvrAiUI4uKfPQsaksJR8vNk/8GrO4wytSFAAP 8AFuBYin/LprTxnxjkikjLa8mbWVTKQ4s1kRZc1sZOsu+aQVwn1jxp+FSqV0HgpC1V9T q0weIrDAZYAxSI6cqnAexeh7Wkw9l40TmOVxhVTWKqhqpzTnAMuA/o5U4es9tGd2mTkc IVVA== X-Forwarded-Encrypted: i=1; AHgh+RrTPbA0EGApHiu9im00GgWPWckQ1cD3g7qIYVu0chudt7Yq0ndsb5rzDUR/chQXx+Tx0/NxlIRw2Wp1ooQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxcWul82/ZWqO7YO3YVRWJ/LomhjUgeP6GBIGFvOz3lbvQZ+WCt pre/BatXucjrvn4AiTjZL4Qk8Hws4wLIa8syEB/YSyOT5r5L/m+e883z X-Gm-Gg: AR+sD11g7JiCJ2t9CtgoTNZfrnzRPm/qWQSdQyP1w2XikXvA/DeSOFNW3SYTtUaqLqM C6EMzgJ1uhYrGaMn9oXuvFZEoBXHlgxzyjqFNh1qISp4h0RxAz/HVg1+gqH7xe8Hu51V2mXxUZh H9ILIMUj8E0TxF8vZKgNDh5sTJWW7fDCtq9f0Te3JnCf3FsUCqf3nJ9ghXvHnVmxVaIXh2Ne4Nt fcSjAkWmtv7iIU4ua0r3UAEqi20K2HbwOWKU1ncc9lEsIZEYRuHdMkOv0QkJrPxBAAwAIAQW49u uWusrvaTL37UWe2JHLAXaEF6DKlJIUwRpcutr5FJ+R0EknG9j3MDgUnUDhO7j5HPjeDr7gyXdhK 3fz761HxN7QepW/JJDfg0sGVlOBeoj6nl+rW+UVvvmpVHANu9TAHwiQwVpPEy1RhpylbhHC/zC3 7+bin/V3YVWPQ+oshPIRK+E/gSFkKntaPXoi61oiwQQoiU+o+bHoO0LEwl5LhSRFscFnE1bVhfV 5hWt25/283ytER6y+GJVWkWV8/1 X-Received: by 2002:a17:903:4b07:b0:2ca:ce92:6e44 with SMTP id d9443c01a7336-2d046d6f447mr4579835ad.8.1785466594777; Thu, 30 Jul 2026 19:56:34 -0700 (PDT) Received: from [127.0.1.1] (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2d0478d9da2sm753915ad.7.2026.07.30.19.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2026 19:56:33 -0700 (PDT) From: Kyle Hsieh Date: Fri, 31 Jul 2026 10:58:24 +0800 Subject: [PATCH v2 1/2] dt-bindings: iio: adc: ti,ads112c04: Add binding for ADS112C04 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: 7bit Message-Id: <20260731-ti-ads112c04-driver-v2-1-aab0168c3c01@gmail.com> References: <20260731-ti-ads112c04-driver-v2-0-aab0168c3c01@gmail.com> In-Reply-To: <20260731-ti-ads112c04-driver-v2-0-aab0168c3c01@gmail.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Hsieh X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3820; i=kylehsieh1995@gmail.com; h=from:subject:message-id; bh=LcqvqDicat0vXhksaxom6+76R/Ncodzz/8ncb7yIbcY=; b=owEBbQGS/pANAwAKAaWDQrcJVsSBAcsmYgBqbA9T3k3f6Or3ytV4rC5Tm5NkqqJ146X15FqU9 tJzZgGxkAGJATMEAAEKAB0WIQTJHsaNZOdY+THGqJelg0K3CVbEgQUCamwPUwAKCRClg0K3CVbE gQtdCACyf6cNl/cGrDb95aK3b4U2tBvCgDvE6PA/loOgf15yzvVvSh6wqsdsE1itgSjPvfeDuhl KpQ6/CgEiIB9P5AXgqR45QO7nhdf8klSlT/OfZ5czeQ+vC64Kc22UOEHM8wrWs40UezcIYfPyur 6e387SydKx1fVYT1jUTuk52SywGIu+UKHD6LEsaEVRXZQJ3g9SspVJJm3kP1yvywS4BIOTeBAx6 yWVZprafrieiskCnahHRgu695PRay963xJP46A8yNxlqjlv5gVarb9jNak0z5gdLdMYxjHWnYJ0 slzgEwHj8sv0qHLzjvvwXEvTXDkX9+t6QZ2EtsiwSl0iVV3A X-Developer-Key: i=kylehsieh1995@gmail.com; a=openpgp; fpr=C91EC68D64E758F931C6A897A58342B70956C481 Add device tree binding documentation for Texas Instruments ADS112C04 I2C Analog-to-Digital Converters. These devices provide 4-channel, 16-bit delta-sigma ADCs with an I2C interface, programmable gain amplifier (PGA), and data-ready (DRDY) interrupt output. The binding uses child nodes to dynamically define the connected single-ended or differential channels. Signed-off-by: Kyle Hsieh --- .../devicetree/bindings/iio/adc/ti,ads112c04.yaml | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads112c04.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads112c04.yaml new file mode 100644 index 000000000000..6a5ffda84b80 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads112c04.yaml @@ -0,0 +1,122 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads112c04.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS112C04 ADC + +maintainers: + - Kyle Hsieh + +description: | + The ADS112C04 (16-bit) are precision analog-to-digital converters (ADCs) + with an I2C interface. They feature a flexible input multiplexer, a + low-noise programmable gain amplifier (PGA), two programmable excitation + current sources, a voltage reference, and a precision temperature sensor. + +properties: + compatible: + enum: + - ti,ads112c04 + + reg: + maxItems: 1 + description: I2C address of the device. + + interrupts: + maxItems: 1 + description: Data ready (DRDY) interrupt output. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reset-gpios: + maxItems: 1 + description: GPIO connected to the RESET pin. Active low. + + avdd-supply: true + dvdd-supply: true + + refp-supply: true + refn-supply: true + + ti,refp-refn-resistor-ohms: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Resistance of the external resistor between REFP and REFN. + +patternProperties: + "^channel@[0-9a-f]$": + $ref: adc.yaml + unevaluatedProperties: false + properties: + reg: + items: + - maximum: 15 + + single-channel: + maximum: 3 + + diff-channels: + items: + maximum: 3 + + oneOf: + - required: [ single-channel ] + - required: [ diff-channels ] + +required: + - compatible + - reg + - avdd-supply + - dvdd-supply + +dependencies: + refn-supply: [ refp-supply ] + +oneOf: + - required: [ refp-supply ] + - required: [ "ti,refp-refn-resistor-ohms" ] + - properties: + refp-supply: false + refn-supply: false + ti,refp-refn-resistor-ohms: false + +unevaluatedProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@40 { + compatible = "ti,ads112c04"; + reg = <0x40>; + interrupt-parent = <&gpio>; + interrupts = <12 IRQ_TYPE_EDGE_FALLING>; + + reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + avdd-supply = <&vdd_3v3_reg>; + dvdd-supply = <&vdd_3v3_reg>; + refp-supply = <&vref_reg>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + diff-channels = <0>, <1>; + }; + + channel@1 { + reg = <1>; + single-channel = <2>; + }; + }; + }; -- 2.34.1