From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 6632D2FD1C6 for ; Sun, 9 Nov 2025 14:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762697513; cv=none; b=KlzTewaWDM+QwEQjufZ4580yN6wldGsa8aA+wT/ik1I5afHgQ/vpVumJ5xRH6Cay4Cyu7m9wRNsKwR8JkH3o8VmCORfG2JTcrZO9UY8uWARSB5GTAsRaPdHFHnZJZS0vRQj7FKamr37hKZEpqMMDbRvdesG32P+6dCigun7OJWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762697513; c=relaxed/simple; bh=+fic16iQPf5IXFa0CPyVFOBhEV2n3/FkGBoy9etOEpk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sW7RWG/lTdK3po4R+eM3oKrABvCHl1+0zuq0QmLqHm+A/J2TcbL2cKy0j5RWVyKg8Jy4figCt6SYsa9780pID2GgLhtItyrWdRsvveGNznPckHgPoaGa8PL6htJtndYipZknQCQa7RJDVCrDjBAFSxil/0TqseyEP1RrXVynrbc= 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=Hzz72E1t; arc=none smtp.client-ip=209.85.214.179 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="Hzz72E1t" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-29555415c5fso27856905ad.1 for ; Sun, 09 Nov 2025 06:11:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762697511; x=1763302311; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hj8+LM2AOEboP9AwSvnFLwUXfAZUirFnsMuKwJ0eWyA=; b=Hzz72E1t+9/OFxPZexDQB4POv6fEo6g7l53KwiFSkCdRi7vCuyjwPQLaX67dCO36YZ WWJvA3F2Uupc6xaqdxBVwGXcu7ySiQjWwmtVJiR3hFUO5s6e4BcffG0OsJx5MtBkvh73 3a+afXCnzX2JbWwwpuqB4tS4CCIgQkX5Ht+Rh4Be/n2OfPCjjM+l84X/9gn0bJMriqDg EYRgBImsbt+aU6AdLtmB7aa7OMVbMzgYghyI8peurOd62YUiRTXRc+TCNxIvHABlGzlI AaYXQ1F6BToO8cvMJoOdRtVewN3XhalYfY1uwtIhJ0AjgjEbPR2nND8nCGkUsaWMZ/8r mWiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762697511; x=1763302311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Hj8+LM2AOEboP9AwSvnFLwUXfAZUirFnsMuKwJ0eWyA=; b=eJ/U7hXC2qZfxWAB26e4dzgzYSkm2ETTRe2Cxsm5P6vBjf8sf/77gPWkH0n4kOQ2yK oKV/E/staHYTIqJXzn75GyYxymZqZJEqhO6sJfz8/DfhOUk/SISmVe1OVHR/TOtBHqlm qek+IViAFfv23lDw1i6PRr+eEkDX1LVi/Afi+2Ag/ry89Ulh/z7HUqXC6fOT/HLAUY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2002:a17:902:ef52:b0:293:e5f:85b7 with SMTP id d9443c01a7336-297e5409da8mr63387115ad.11.1762697511527; Sun, 09 Nov 2025 06:11:51 -0800 (PST) Received: from ajianan-Latitude-5591.. ([2402:e280:21d3:2:5455:eccf:e73:de96]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-bad33c801d1sm6582780a12.7.2025.11.09.06.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Nov 2025 06:11:51 -0800 (PST) From: Ajith Anandhan To: jic23@kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ajith Anandhan Subject: [PATCH v2 1/2] dt-bindings: iio: adc: Add TI ADS1120 binding Date: Sun, 9 Nov 2025 19:41:18 +0530 Message-Id: <20251109141119.561756-2-ajithanandhan0406@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251109141119.561756-1-ajithanandhan0406@gmail.com> References: <20251109141119.561756-1-ajithanandhan0406@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add device tree binding documentation for the Texas Instruments ADS1120. The binding defines required properties like compatible, reg, and SPI configuration parameters. Signed-off-by: Ajith Anandhan --- .../bindings/iio/adc/ti,ads1120.yaml | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml new file mode 100644 index 000000000..2449094af --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1120.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads1120.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS1120 4-channel, 16-bit, 2kSPS ADC + +maintainers: + - Ajith Anandhan + +description: | + The ADS1120 is a precision, 16-bit, analog-to-digital converter (ADC) + that features two differential or four single-ended inputs through a + flexible input multiplexer. + + Datasheet: https://www.ti.com/lit/gpn/ads1120 + +properties: + compatible: + const: ti,ads1120 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + description: | + Interrupts for the DRDY (data ready) pin(s). The device can output + DRDY on a dedicated pin or multiplex it with DOUT. If both pins are + wired, both interrupts can be specified. + + interrupt-names: + minItems: 1 + maxItems: 2 + items: + enum: + - drdy + - dout + + avdd-supply: + description: | + Analog power supply, typically 2.3V to 5.5V. + + vref-supply: + description: | + Optional external voltage reference. Can be connected to either + REFP0/REFN0 or REFP1/REFN1 pins. If not supplied, the internal + 2.048V reference is used. + + ti,avdd-is-ref: + type: boolean + description: | + If present, indicates that the AVDD supply voltage is of sufficient + quality and stability to be used as the voltage reference instead of + the internal reference. This allows the driver to select AVDD as the + reference source for potentially better performance. + + clocks: + maxItems: 1 + description: | + Optional external clock input. If not specified, the internal + oscillator is used. + + spi-max-frequency: + maximum: 4000000 + + spi-cpha: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads1120"; + reg = <0>; + spi-max-frequency = <4000000>; + spi-cpha; + + interrupts-extended = <&gpio1 25 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "drdy"; + + avdd-supply = <®_3v3>; + vref-supply = <®_vref_2v5>; + + clocks = <&clk_4mhz>; + + ti,avdd-is-ref; + + #io-channel-cells = <1>; + }; + }; +... -- 2.34.1