From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (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 E3F0E36A35D for ; Sun, 28 Jun 2026 20:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782677332; cv=none; b=t2uuW4Z4LJKAmR9Vui/vkzdIYfKfel3O2X5HWx+62K9/eXtFCnncqsLqtaqyjFUFRbcLQljBP/K8/ejq5+dW2k42IKW0eN4TbyXWs47fIN2x+GPyk/lwNE5TbngjpKc4+5DClxtiQihnV9XXKYqTVkEobuc2CpaC6I/4ZmO+qqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782677332; c=relaxed/simple; bh=mmds2X2Em6lCz3bqq0WzaqRt2V3pOeaMlOXBTMEKAwM=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=akttolrpOVvQIVW3o3BRzVz5/w7KeTL+6xtiwnyOfU+CDydHPfWhpt0Wme5K1iS0hudaX+UXPwsDqwANbXKPgJ6+gEH2S2BBuPeN0G7LPQJcWMQWx/23udT1Q6P5AEPBwpZYwXN41+GzsgRPZGUX4tYAqtczgn25/smGEyJq+kg= 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=Rq6rg1wN; arc=none smtp.client-ip=209.85.222.46 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="Rq6rg1wN" Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-96723c7151eso74826241.2 for ; Sun, 28 Jun 2026 13:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782677330; x=1783282130; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mmds2X2Em6lCz3bqq0WzaqRt2V3pOeaMlOXBTMEKAwM=; b=Rq6rg1wN/+Z44xsstj9trPKJSqx4zm72BFWAOasbkCuHpXm76pCm/pKTL5DDmf2sT1 ae613HUUTMVTtrnFetB99eyev6EjF9llqYo1qWcNNQGBMOX9aSDLIx0MZwdA1vq2zXD4 bkx+94pMcbRT1Wb5ARK9havml/7MpqHzwsKQOAqpcPLOPnMVapC0GGqS0bcHj5KAWuc1 uI6HKNqxWND6xKj5Flz+6MPLf0kbVxqTL2oBjrkJWeRaUv0xMKmDblhN69q3YEaYpXcZ Q/5J5RMvJ8vB5+D/T5K7k0z7DQDTYbts1mVqlHcbIxHVKL+KnExKp6H3xKiFC19lmIKg q2jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782677330; x=1783282130; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mmds2X2Em6lCz3bqq0WzaqRt2V3pOeaMlOXBTMEKAwM=; b=rTXmoTlIWJPDwLXcpxp8nkLT2rs7BMU+meo0PpJU8OsF4dE3ua3C7N0FBw+AQhNv5s eJ69/58IBRMan4GDFfOD23m9P2sgXyGNpWjPMU6f4pmLG6A/6woQIACkBPViA2GO1flr Onh+DsIwGoVIKtE2ixUyvuR/WwOYjHIyRv0vrlDkaJjWbHWivIaIdlPxBPF9fHPj3wpv Kh+oGcyLrlmVPM8+Yl0SuiFj4OdgbwKRwlPL+LxbqPKU/WhLmS9hf9A/a+ZZLTPIa4gD 4KSqlWYDaURhTdUYcLMNtYVoZeOAE1GhgL+JJX4IM6NauM3Iq0jWWsONO4EMiaFiKsEe Us2A== X-Forwarded-Encrypted: i=1; AHgh+RqMYdcUDXonVr5QbiqPa9SCFpNUGfF74zfcxP/EdqbT+Xwf6rGsHCDBOKp3WdmKSJkPr/i/d/twXv3/kTI=@vger.kernel.org X-Gm-Message-State: AOJu0YyyCWntAkPd+/wePEX4A1W/Kb3lYLo8UHT+ILWV53jTQ2eMaKWG 5FT0VijbsfjgF4VbjZbRQkccdxkDMsiwCTqBEPH/2r9MegnMi1Ml9FiF X-Gm-Gg: AfdE7cllCKRGv5BdFw6Nqru0yI04UWJrzgajEHbOyuVLi+ktEgHCagOHBWrkqRjMrA8 bK9hS+Dy9IrwOGnuVln+ateeubixnRt7j+ALJElNI+vmMvZDYygbrzckNu1QKmEM+mIgeD/Jfpv lAPRKT2vOayEoYSqGodUd0asc5dWLr5UBplRUMmZvFOUXokIeW13w8TmNNlTK8HmN+GTLLEVJkL QadwQq2RRR9DM33+f0YYUxdIUwqcU7mQtKJy8P+mcGujf9hfn0+SIqcRK346e/nv/fNWgu0ZBTG CMWJnl2N8jEm4SBm6KQWRaSV58erNTUN2jDRQfjK+FAAJ1N9CcEBp9eyAQarnORVtIh9GpS6oPc tDKnrqZub1NWpz3Fnmoc1/RSgxeDaSynJCdk9x1XhdpScaLWd/MRUrdZbCuUoSQiSb+9roNI8rM 1UtInsd/bldsKOcg== X-Received: by 2002:a05:6102:c4b:b0:738:9c79:750c with SMTP id ada2fe7eead31-7389c797932mr573999137.15.1782677329944; Sun, 28 Jun 2026 13:08:49 -0700 (PDT) Received: from localhost ([2800:bf0:82:11a2:7ac4:1f2:947b:2b6]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-9691f84fc71sm3745321241.8.2026.06.28.13.08.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jun 2026 13:08:48 -0700 (PDT) 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 Content-Type: text/plain; charset=UTF-8 Date: Sun, 28 Jun 2026 15:08:41 -0500 Message-Id: Cc: =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , , , Subject: Re: [PATCH v2 7/7] iio: adc: Add ti-ads1263-adc2 driver From: "Kurt Borja" To: "David Lechner" , "Kurt Borja" , "Jonathan Cameron" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260628-ads126x-v2-0-4b1b231325ba@gmail.com> <20260628-ads126x-v2-7-4b1b231325ba@gmail.com> In-Reply-To: On Sun Jun 28, 2026 at 12:22 PM -05, David Lechner wrote: > On 6/28/26 12:36 AM, Kurt Borja wrote: >> The TI ADS1263 embeds a second 24-bit delta-sigma ADC (ADC2) with its >> own input mux, reference, gain and sample-rate selection. >>=20 >> Model ADC2 as a separate IIO device on the auxiliary bus: the ti-ads1262 >> SPI driver instantiates the auxiliary device and exports a small set of >> TI_ADS1262-namespaced helpers for the conversion and register accesses >> that must go through the shared bus. ADC2 channels are derived from the >> parent's configured channels. >>=20 > Can these just be additional channels in the main iio device rather > than a separate iio device? I guess we can do it, but wouldn't it be quite a mess? I think doing it that way adds a lot of complexity: channel naming, available scan masks (because both ADCs can be sampled at the same time), optimized software sequencing would only work in ADC1 channels, ADC2 doesn't have a DRDY IRQ, etc. IMO separating both drivers makes everything simpler, easier to understand and easier to maintain in the future. --=20 Thanks, ~ Kurt