From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 D7EA3311C1F for ; Mon, 10 Nov 2025 16:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762793135; cv=none; b=RfQvxhK/83bJUpkeh1iuj7FsdFu4xRoigZNWCf2bk+dPuISOHFbIHCJHqG4ZdiimLHKva54rmNR/Gvdjyj8m+H5P6ax1U0cp/sbRtuv1PhXiEcKjjlYFeBEW8sd0UnLrLJTQqi+zEJ9UdgPsQJ0thfbdSschqCkBGpFlhxQHsFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762793135; c=relaxed/simple; bh=bgCzKrhzMsbjtyucE9Wji1o3OOtYybWdKrlZ1ecTWTE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kUOU6+69ars5elKd2KG5soF8QDU+tn5vGxvw1jZAE9LYdaROVTEZUQv+mgMYo/lQ0y8TePwQPy54sE664pyXsUdb3W60atNfv33gtZaWaXCJv1qso8WINZACt11cNmqtLCmpdz8b3myr8bV1F/c4chkXYnfy1kx8o3IMPrVzZtE= 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=nV3j4stb; arc=none smtp.client-ip=209.85.215.176 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="nV3j4stb" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-b9ef786babcso2070630a12.1 for ; Mon, 10 Nov 2025 08:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762793133; x=1763397933; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ejgzWIAmMtwDeIAONVbXRMu0MknYB8VkcpRxQd2rWvU=; b=nV3j4stbm+vcaGq0c5YHStIInJnhL8I54TPjZHDp6q0rY3KJdBeU2LdLBV+A8PMLNd 3UDAcZroJ2/4u1ohtPKCixAdo5DMgRp2pTa42z705lK6Wh1wbqoz5w7yKpZlwP+YwK1d FXnwb72f4hCaWLFToIN26L5qlwRTbbqvPDgUPiPgNFY9ZFeg4nRg10UdtOeHyebrPBLV hW8pIVyoJkAu/yL6AeYS3+gn9fIGyx3klbslQG0NE+ySA5owcPBHKAMKkJ6LUUbPA7hq jyAh0y2ElV8g7ZXuLNUfRXPtZ5ThaRkUiYl0HTwaUGr+FTOUYjQdjLUJhmRyo5hoaOms P+sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762793133; x=1763397933; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ejgzWIAmMtwDeIAONVbXRMu0MknYB8VkcpRxQd2rWvU=; b=F7kq6btoxZE4lHBoUh+We4T3+PkHBquQTr7tR+VyEQB5iiNXguJX83RULBlUPhguN9 5znMMKzpTG17YRQlAs0Kmjlj4KMAlz++D+oJxFCtpxhyyBNYuAkb5qRDm9D9Qgbu2Xfe l0+XHTDEWRbiIRgHRtEMEUa8/bWNJTCUYkB6RBV7q9q2ALjogNWnMhaxz/CmOLAPILC2 QlOzVljyuh/ZYqHWHyA6TCdiC/G5LeMp2wXsftI4Lr9tStyhs43USquOaI9LJCI6haVI JMKGdLigARcrwyWundojKDGkUWCgkeZrAvzigTYzkLo5Qmb/OTmnuh4E2PCj1vZrKGmR puCA== X-Forwarded-Encrypted: i=1; AJvYcCXkJwUmXDSwgPZOdTrac0/LdUWk/ZsttbYjxrTUJaPXTq50ddon31zUh/GoWpoe+lCpQO4uFfT2umgtZIA=@vger.kernel.org X-Gm-Message-State: AOJu0YysJdFvBDL/h56q/ilBNo1oEh/sDs5HX0jmH4VvwySZm0JZIQCW dnfmUuCVNkLwX5Q7icDyBtGwxh3VtU0DfuIRCffJ/8nBq5joQZjMWOz5 X-Gm-Gg: ASbGncsf7oJrAEMu06qjT4P8O56s45gc5C011glBg13Y8uDP+oRTtZO249uzp/yQnJ/ 4dfchVaKuGOLiYhwYa8/KNw06FVvHRhmIpkXKlaOUCQNKE9R0LrvLbxWFBHmZpviLGK83BFR17a /GfPSZoozAA1wZES1vHxthkQpkJQh0riTfPiaB90hZOuNjgg55NlE+rucTe/V4XnG7A4Q6MnP4E IkaGletL/4rbgGEsdQZrUZ0bbPSD0RZ/c9wz4KouBmfbhKhUHedW9qQxOdwERkII179SRXoNkLB DLxqPFjZnb3vPrZP9tLM9+MeE8f5fZlUT/+AjG3XY23ABO1hFB4Qs40uBKrUvUq64EIe5a2jkEH BHngwOyRTTjVu64T8Vzx4casIhe++Vq5UZUf0k5W60dQyiJWP1zqfI76FdQmRNSJxHElNIhqdog CYcM+BWpZqXw== X-Google-Smtp-Source: AGHT+IHlDbq/FuhUx5b37jOHHuGk+B4j8Ue7lQztTGR+qjnK+j0oCN6+BEjfuAMoSyUWo5a31EZ/jA== X-Received: by 2002:a17:902:da4b:b0:295:24d7:3792 with SMTP id d9443c01a7336-297e54030a4mr120060845ad.1.1762793133088; Mon, 10 Nov 2025 08:45:33 -0800 (PST) Received: from localhost ([2804:30c:1661:8a00:578a:911c:ac25:24a6]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-29651c7409esm150687835ad.64.2025.11.10.08.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Nov 2025 08:45:32 -0800 (PST) Date: Mon, 10 Nov 2025 13:46:50 -0300 From: Marcelo Schmitt To: Nuno =?iso-8859-1?Q?S=E1?= Cc: Marcelo Schmitt , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jic23@kernel.org, nuno.sa@analog.com, dlechner@baylibre.com, andy@kernel.org, Michael.Hennerich@analog.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, corbet@lwn.net, cosmin.tanislav@analog.com Subject: Re: [PATCH v1 0/3] iio: adc: Add AD4134 minimum I/O support Message-ID: References: <5e0ea52e6a77a1d6af861ba5aaeeea5c3d514705.camel@gmail.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5e0ea52e6a77a1d6af861ba5aaeeea5c3d514705.camel@gmail.com> Hi Nuno, On 11/10, Nuno Sá wrote: > On Mon, 2025-11-10 at 09:44 -0300, Marcelo Schmitt wrote: > > This patch series adds basic support for ad4134. AD4134 is a very flexible > > device that can be configured in many different ways. This series aims to > > support the simplest way of interfacing with AD4134 which is called minimum I/O > > mode in data sheet. This is essentially usual SPI with the addition of an ODR > > (Output Data Rate) GPIO which functions as conversion start signal in minimum > > I/O mode. The CS pin may be connected to a host controller CS pin or grounded. > > > > This set provides just one feature: > > - Single-shot ADC sample read. > > > > [PATCH 1] Device tree documentation for AD4134. > > [PATCH 2] IIO Linux driver for AD4134. > > [PATCH 3] Initial IIO documentation. > > > > There is a driver by Cosmin on ADI Linux tree that supports AD4134 in wiring > > configurations suited for high speed data transfers. Even though the minimum I/O > > support was initialy based on that high speed transfer driver, the result ended > > up becoming entirely different. Also, because the different wiring > > configurations are likely going to use different resources and software > > interfaces, the code for AD4134 support was split into ad4134-spi.c, > > ad4134-common.h, and ad4134-common.c. > > I'm familiar with the odd way this part is implemented in ADI tree :). Question is, are > you intending to support the high speed bits? I guess so, otherwise having the above split > would not make much sense. > Yes, the intent is that the common parts may be reusable by the high speed driver when we get to upstream that. For now, this only supports conventional SPI. We may, at least, get some support for AD4134, though.