From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (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 5DA2F2765DF for ; Sun, 6 Sep 2026 20:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788725805; cv=none; b=da3Es+hidlBZrHXvku9OnFWu2/gH1URl2KGnSzwUHU8q31boUbkc2zIHNZFQDqox4TXcLhsywHbb84bootXi8Xz/rQ/rZzWiwuSCgG4vwTCjMvJNRrgWv8AnNJMx/tKzmLO/O//WSwHpGzeMCvPmZKcYN5UJPp4ONMPC4/Urunw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788725805; c=relaxed/simple; bh=gqUGNJDAb1yI8v9pL6RTCkYxnBV64avTbwEfdCG0eBM=; h=Content-Type:Date:Message-Id:Cc:Subject:From:To:Mime-Version: References:In-Reply-To; b=gF3CKLxHVShgspnkA2JiBZZ2+tYGorOKYpPKCHiaQsiUedyEpkRcDS4LQIWQMNt9h5hYQeeRfqzIWWNg7NxF05s0LRF6Ww3hhiv7qHw4nPhgba8XG8MGATpHfGfA5A/NAMpshU8dKuKzd9uxQXS6yXF7PhuyK299Xg4w1wQrBqE= 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=ky0/VdzK; arc=none smtp.client-ip=209.85.221.178 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="ky0/VdzK" Received: by mail-vk1-f178.google.com with SMTP id 71dfb90a1353d-5c7d65c83feso2750039e0c.1 for ; Sun, 06 Sep 2026 13:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788725802; x=1789330602; darn=vger.kernel.org; h=in-reply-to:references:content-transfer-encoding:mime-version:to :from:subject:cc:message-id:date:content-type:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ad616E7Mfeiy4C3sRfgAcvBobdI1RZYsaLcBMh2jcP0=; b=ky0/VdzKFVPwwVm14Qx6hJZtE2km7es3Km8p8wGW2B3loEhpbryE5Wllf+Bo/QojBn 8Rd4duZyzXS6s0mlJIc6eYCkxzh9b+xDM1zafMQ4xr22XHlx+7VPIOR0fM42mHKPhG6P X6BqcKWmzCufHTpb5rRCBor1g3ntoZPdQ/nD49Zb9d65GS6ClBFSgRksdr2+RLZvtx49 bAlNuD1ZE/3Lgiam8WsI8Fe3krAUn1+P66eE6Sgk4aZAkI2U20HTE8hWsGDC/Y1+BCmj ftpFK+uXVDB5icXsP1eNPOu4OoijnG85vR5/63Z09Rjl9CAkaZWoi9MFyI89rBpqyRvx I2cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788725802; x=1789330602; h=in-reply-to:references:content-transfer-encoding:mime-version:to :from:subject:cc:message-id:date:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ad616E7Mfeiy4C3sRfgAcvBobdI1RZYsaLcBMh2jcP0=; b=Rx4Mvq3BFHgFDSLN5pi4KrStVqrHhz2M4uqeHv0PBw0caSPJ8GA4fcND1bwsUpdcRF tGsf0uKqxB1hvfXAaXgPFE9Lj/+8I59ixT0HplBXZ+6QRAT9lHeKkI1vyeYtw3XwYv1/ wt9PCd7N5Y22lSbATX9DH7gPOz/sdLXe41dvJoT3LbRVm08tK00au9dbLdqNkaZR+8Hr wHnybpi3NDLmvCHsqbHxNrlHI8glLTFsO/q8HE0S9Uv6TjA+r3GHeaY8cMEU8BHEmXwV IrXUmEsiBW8c4FWWHw9Tj+upiw9tUzzcLTyTK9x2PM/91NNKyPM3DNoZg2C39uDsjwj4 ObYg== X-Forwarded-Encrypted: i=1; AKwUvBzwvJcvFXzj1grxJxQd0IzDLB2rDK4el++SOr3Z+S1EYGURto0GziBmFqoXP6PdhqIDagNMoFAw/fK3@vger.kernel.org X-Gm-Message-State: AFuF++l+3sej5Z2eNR9JpN7nAtG1kVIIuqfiGRtQvLtH2O3+fWYM5sKE wKq6dGp7b42xMulTdmxaImVOkdkt2Ide9RhYC5kxw8y/ujn0h95G5U5S X-Gm-Gg: AYBFou29qamILleiDLp59UntZZ45pR1jIDw+1LPIA/8bVLotX5B+yZ3mrFxJEU25Z9t wVQgiWAO8vCDrc/xfu9RxCjeHmdBrXzhE0+dwwePABrNOfmSdhOtL8XVTXkoswXkC0iFReDEeYl W9vsY2KXCiiHezhT9rct3mKbiKP7GSi5prvG1wSKH8vDgGcYB9QFiav08+/ZX6C2ocs27VIfz6B V8MdhTkTX48oziO4kUUpk/iEi6XkJhL/HHOamvJbRXDXf2mvU5nUgitYRIHHv3eqiquajvQpm+k i+CUiFC/VQeGr92cQfm6ElZAziz8cdcNG7rZVMhBjnnONLFRoCCeTaxSW1DQygmw2121Raax7SR 9lGnOE4oKO6Zo2ccZIONSgbdTrrQtZtJGPRUfDp74X1Eq270NtmLobxT2cBziL/m7LthJ20i0kB EKKtn2mmH1uLCqzSBjGl7Fyt90oQbza4rbPwgzQsycpIfRZ1yK8Q== X-Received: by 2002:a05:6122:8f8b:b0:5c2:b01f:e503 with SMTP id 71dfb90a1353d-5c7ed81a4femr9514678e0c.7.1788725802270; Sun, 06 Sep 2026 13:16:42 -0700 (PDT) Received: from localhost ([2800:40:44:f1f5:f400:4c49:91c1:9905]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5c7ec24254fsm6363883e0c.10.2026.09.06.13.16.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Sep 2026 13:16:41 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Date: Sun, 06 Sep 2026 17:16:37 -0300 Message-Id: Cc: "Jonathan Cameron" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "David Lechner" , =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , , , Subject: Re: [PATCH v4 02/10] dt-bindings: iio: adc: support the TI ADS126x ADC family From: "Kurt Borja" To: "Conor Dooley" , "Kurt Borja" Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260828-ads126x-v4-0-1dc27e9c0260@gmail.com> <20260828-ads126x-v4-2-1dc27e9c0260@gmail.com> <20260828-cartel-willow-9592e4e8b912@spud> In-Reply-To: <20260828-cartel-willow-9592e4e8b912@spud> On Fri Aug 28, 2026 at 1:39 PM -03, Conor Dooley wrote: > On Fri, Aug 28, 2026 at 01:38:17AM -0500, Kurt Borja wrote: >> The ADS1262 and ADS1263 are 32-bit, 38.4-kSPS delta-sigma ADCs with an >> integrated PGA, internal reference, excitation and burn-out current >> sources for sensor biasing and diagnostics. The ADS1263 is compatible >> with ADS1262, but includes a second auxiliary ADC (ADC2) to perform main >> channel (ADC1) cross-checking measurements, system background >> measurements, or temperature compensation of the primary sensor. >>=20 >> Both parts can configure per-channel voltage reference source, >> excitation current sources (IDAC), plus input and IDAC chopping for >> offset and IDAC mismatch cancellation. This lets the device drive and >> ratiometrically measure RTDs and other resistive sensors. >>=20 >> Signed-off-by: Kurt Borja >> --- >> .../devicetree/bindings/iio/adc/ti,ads1262.yaml | 376 ++++++++++++++= +++++++ >> MAINTAINERS | 6 + >> 2 files changed, 382 insertions(+) >>=20 >> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1262.yaml b= /Documentation/devicetree/bindings/iio/adc/ti,ads1262.yaml >> new file mode 100644 >> index 000000000000..7e26572388e4 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1262.yaml >> @@ -0,0 +1,376 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/iio/adc/ti,ads1262.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: TI ADS1262/ADS1263 analog to digital converter >> + >> +maintainers: >> + - Kurt Borja >> + >> +description: | >> + The ADS1262 and ADS1263 are 38.4-kSPS, delta-sigma (=CE=94=CE=A3) ADC= s with an >> + integrated PGA, reference, and internal fault monitors. The ADS1263 i= ntegrates >> + an auxiliary, 24-bit, =CE=94=CE=A3 ADC intended for background measur= ements. >> + >> + Datasheets: >> + - ADS126x: https://www.ti.com/lit/ds/symlink/ads1262.pdf >> + >> +properties: >> + compatible: >> + oneOf: >> + - const: ti,ads1262 >> + - items: >> + - const: ti,ads1263 >> + - const: ti,ads1262 >> + >> + reg: >> + maxItems: 1 >> + >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 0 >> + >> + spi-max-frequency: >> + maximum: 8000000 >> + >> + spi-cpha: true >> + >> + interrupts: >> + minItems: 1 >> + maxItems: 2 >> + description: Data ready (DRDY) interrupt lines. >> + >> + interrupt-names: >> + description: >> + The data ready (DRDY) signal has two independent interrupt lines.= A >> + dedicated DRDY pin and a pin shared with the serial interface MIS= O pin, >> + which is called DOUT/DRDY. >> + minItems: 1 >> + maxItems: 2 >> + items: >> + enum: [drdy, doutdrdy] >> + >> + start-gpios: >> + description: Start conversion control. >> + maxItems: 1 >> + >> + reset-gpios: >> + maxItems: 1 >> + >> + dvdd-supply: >> + description: Digital power supply. >> + >> + avdd-supply: >> + description: >> + Analog power supply. In bipolar supply configurations, the report= ed >> + voltage should be in reference to DGND. >> + >> + avss-supply: >> + description: >> + Negative analog power supply for bipolar configurations. AVSS can= only be >> + at or below the ground reference (DGND). If not described, AVSS i= s assumed >> + to be connected to ground (0V). >> + >> + clocks: >> + maxItems: 1 > > clock doesn't appear mandatory, what does it do? Its not mandatory because the chip has an internal clock too. If an external clock is wired, the chip also has an autodetection mechanism so we just describe it here so we can enable it. > >> + >> + '#io-channel-cells': >> + minimum: 1 >> + maximum: 2 > > What's the use case for actually setting this as a single cell? Kinda > confused by it. As Jonathan said this is part dependent but we can also just make it 'const: 2' and validate the second cell's value. > > Otherwise, quite frankly, the binding is too complicated for me! I'll > have to leave it up to the IIO folks to cover whether what's being done > is sane. > > Cheers, > Conor. ... --=20 Thanks, ~ Kurt