From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (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 E302F36212C for ; Sun, 28 Jun 2026 20:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782677332; cv=none; b=nNY9B/FN1rDIGSoXSJUi0gD5U5F7COSF1k37z5DAJzycQvX6sR4WoNBAgclwmolTsyIQZ1QuBDzUXtWXqPXtsAAsFUpGOCaR7p0w2636r07blQFIKbhWrWweghm2PeBUvaPUV4TiD6vckEgWtGxnJWVuznbVxlbjrCFfEABpvwI= 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.51 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-f51.google.com with SMTP id a1e0cc1a2514c-963a722ed59so84261241.1 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=DuVoKv8rxnzMJsfgPuXWqXis063m1ushhCwEv6Gz/iqR0fm/ZKF3G/8eomiON51+cs y4Mw1rxHu4YS/3tQkS+zvxyMZoYzGyw0ORZ3Htng90MePsK+23Wm6FTXz1/NpNxvedBP RCFQARaSjsZ88qPzH7sboF4iyrq6bcrkiIdPIwwhxSo6FXcfmF+F0B5WtJl3iYIzUEF5 g/bY51XZQmLfxUEGUDKpD5iT4/E/I4sy4Xs4o1k4D1jpncjx1RzYBdV70fg8JeqNgmKo dmsIAbE6TwYfvwmAzWCXQ9cdeWNhAOSwt3ufpJoonIotkI8nr0iPKYwzOHUoB5F0tohJ DdJA== X-Forwarded-Encrypted: i=1; AHgh+Ro8IuPCNd8n/P/N5MUC6hVNCAddQbO2KBNioV6lQKzQ5m6rH5z+rED2WcIdIjJjxNN7wDA9nd0/4w8=@vger.kernel.org X-Gm-Message-State: AOJu0YyN0c5Yv9S2jZlBUIJTFsBOpwzvXQ/P/CHbRbwXmTogN4MRBcVy ZRdPTbN6YuJxViemMRV+Ec6MZGIIJhahabheyHQ043GxwhvAXoMxGK5R X-Gm-Gg: AfdE7ckPYg2FbzhmFtVcJT+ewHbKoTDhpQKChg/tkNbr3ejMTbg/IpghFuM7kUe8ifP 3C5L5r7MFrJqf3dijZabRvjHDPlS+8Y68BkCjX6hsoGcw0H1wrbUoMZV60oUubbVgSINzum2R7T i8Irj8vgSKv7Bbq5vKgn1pCUn14AdB/M0UJDINKUma0tHZTdQ2Two5ri78IVcvfca3IP8cUNFLI 8olAFCciF5RNR0W2O35HufGvhZJuMdsYWdFj8mw5B8Yv2YczHk4zen8sqzlHAvSm0Y3k25eKvl9 FBJx718glzJ5OdMjh0cZgmFwfwAEO47Wryj4+v9XrBSR4agB+mU6bYhmZe6ga6qk+4cOtVOX7Kk FWChIwoxyh8TLwtA9kIQkgY0vM2o5NN8sBjM6vQWuN+sJ0wa5KMb0JSwkpZKqVbVrVcSnKdWdmx b7wGFLf9wrhQk1uw== 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-iio@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