Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136856; b=iToNp+sOEWIPDB7aKH9gsJNkhkB+zaywZ1xaD0hXD1+Zp/VcG63QMHio7xeVBpkty1bX 3rlGpP/62NWbzO4gZNAyq3e3kzQSQDLDnqDUdcEIGlxSPKJGitHKylfHs4zzkYio7tV8R EEeCOgLj19/LF95nj4mBedCJiEg54zv7NcaalExdGsLefaXPQruRUi1JqXQCGJ49qSayI /tb8qf6Np3rVnHov35/27PqDURwOmfgBXBl+4LP0dDgLwhYwBZx/khuV9Xqo28BYzBZc8 WW/jYGqk/ZloZKaKVhZcTEnbBpLXxgGz72GJDy2AaF4eYLoU8pbtgKzrJFpKZQlyeqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136856; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=75ynI745JTh/eQG/NEzhD+/VsP3Y2RgOq2ZkfD8/RJI=; b=COMvZ48m5u/eyObMK5Ki9e0M9fAgMI9RDLf98lULb5NGwGofx/Y+j8tKiLggOJRqpkIn eZim4PRQ4+ovzQiej/klymRrDiHrgeQX/04OlvGKyEpT66AwY7yxx3A44a7+nPWysJdxv aUq2x9wZ14Z3U9OhkjukRQ6ONaI3eJpjlTVfkuWF3eTfjHse4eZClmn36pwq/YDwg7fGP jwNWMGhGYMR5TiMc56pnVXMDWoyKYjxXkVscvo5ek5HtOIFBohbhMlDKQopiIlDmoW4tb f+E8sJtZPMzkzvKjyWAz452cfa4I7gMiIC+yCcPGYmEl+kbvD8Rc+Oy87EH9Whc3DBg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QGU3jj+J; arc=none smtp.remote-ip=74.125.82.54 Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83E94606A322 for ; Tue, 1 Dec 2026 14:54:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 83E94606A322 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.a=rsa-sha256 header.s=20260707 header.b=QGU3jj+J Received: by mail-dl1-f54.google.com with SMTP id a92af1059eb24-1b59e19b33bso1036935c88.1 for ; Tue, 01 Dec 2026 06:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796136855; x=1796741655; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=75ynI745JTh/eQG/NEzhD+/VsP3Y2RgOq2ZkfD8/RJI=; b=QGU3jj+JSElhd2Z6e7JD2DWOM75fjTSsPezmCIJi8rHvh1VWg4umXnxzJEbXbpLjQm 82ng8B/jYY6hlKkCiKMMqUJvMJ5P6BXx2lfhMxn01m2EHgbAgUfAcRVmt9AKaTPTHa6u 6UsrJ/ABMhY1FS+MxgwhmX0BcS1MTKJt2JCdS3JF2MGif31Y/4zkmOT/um59D9MhSXE4 qRsJAJjCprcR9bLbnhMKh7pFJ1wjoDxAXwwDNev8OWRDOkolRadS0GT4XpQa2hqhsrPa K6uzYPc1vq0Hzcazwdu/0fSHfIKKAaFr+iGflDLlIP1nHLWvezAehHyAfetiuywjHh8W edoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796136855; x=1796741655; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=75ynI745JTh/eQG/NEzhD+/VsP3Y2RgOq2ZkfD8/RJI=; b=rk4xFwJ4n4LmE84nKl2Lzu69fc9nh/vVEQsLRJCebJ2tduL0Hj/VGjh1k/+8i80kVw siftVUzB22s0l7DZbyHyRvcMn/wVOfmGEwieQFRL471OLLzyqYSZuH84pnfZFb66a5sk W78XND2Fm1N7fE+IUCYOGtH7DCqiUpvH4ey82G83+6xO946D+/Pup/3G8c8gsdY9XHnn BXAZf5ieIGdke0zE68kCxFr0yrWViQBGV8LB05Obrk40sHtmZ4xBWLgHjY1CMlaSxTfM CeB0mqrE9EycZU0//i9DrKTQ8fQX63RgsRTBdJdiD1rCLUBUUZtVPBI98C10mx8Ffyu6 vw+A== X-Forwarded-Encrypted: i=1; AL+hErG/kds9lYqX3P90Nlo28K83iWEFMgSaHNJLjEVz0pSSAiHkR+UnAJuZV8yKcyE5lU+HwbRdAI8uDcu/@vger.kernel.org X-Gm-Message-State: APuU4Z/t18RqdN/wyP25fbAVoaDHI/tSq+NsNxXaZsaKLzjBQyUnecP8 DHflm6u/JEoDqhFFDj7m3C3i5P7Dfb4gyyJJz2J7rtJPwRpyxXveR/p9 X-Gm-Gg: AZFdTZfyCidQzUtRLB/qup4wPIN6jZOrkL9YW2YGNfFRywk8WYFJ6gc+tHP9tfrO8Ne pKHEfCFyY11dimUk4Gb5p+IcqyRaaYlArrCjTYdS6L+w2uNI3dV3O9yAtEgQa9QQkJCQ4TOs7Tn LpARHM0E3MlrN+xYmHno26x0vlTGHFMPCzOF8yoghiq+VZg9lT0qxoiCkuLjy4YV+iojSUYpm4f y1yEAKyY7coz3ES/kXcpilm3FLXODTegwRf+DHYvOpjF/HeetIMDvnA3SQvYoRlRR5FsxA1N70H TmdzZ+ex+JLZoNghpQiVkGzGy9QFTqKzlPczZ2jvseQ/vowG/XczlWFLeijxLexk8k+YDf747EF CfBk+irZLzIOwrNaHp2iGFesgymzX9tbJHeLzjBwIqEV/ra838LhWk/a9L2att2N+okkqE4ld65 tFLGKW1J8jCAowG6e62jt5JreKEv7LNb75CO2n37iZfdCkNk2It3fl2cRIzK8TFhHNNvDh7QMMc DlAbz3YnQJ1vz51Yfs3XbZgZQNEjkz18dP984NTznCUxqXtTnUQi7Lpx1IXwZbciQfVB704ECVM 1kuFv39ZCcbryehQVChSvL6J/QNSiK8Cq4k= X-Received: by 2002:a05:7022:f513:b0:14f:4b01:40a1 with SMTP id a92af1059eb24-1b5566a6fedmr31441889c88.0.1796136855403; Tue, 01 Dec 2026 06:54:15 -0800 (PST) Received: from localhost ([2804:30c:915:2300:82c4:399b:a3d4:4b54]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556847fdasm95768516c88.13.2026.12.01.06.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 06:54:14 -0800 (PST) Date: Tue, 1 Dec 2026 11:55:47 -0300 From: Marcelo Schmitt To: Geert Uytterhoeven Cc: Marcelo Schmitt , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux@analog.com, 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, skhan@linuxfoundation.org Subject: Re: [PATCH v6 15/16] iio: adc: ad4134: Support high-speed data capture Message-ID: References: <129d38f50d44c804d657d067a9c77691ec4b9d74.1792792325.git.marcelo.schmitt@analog.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 12/01, Geert Uytterhoeven wrote: > Hi Marcelo, > Hi Geert, > On Sat, 24 Oct 2026 at 00:38, Marcelo Schmitt > wrote: > > Make use of SPI transfer offloading to speed up data capture, enabling data > > acquisition at faster sample rates (up to 1.496 MSPS). In this operation > > mode, a PWM connected to ADC ODR pin and single-shot reads can't be > > supported due to that. > > > > Signed-off-by: Marcelo Schmitt > > Thanks for your patch, which is now commit 12c531a201c92635 ("iio: > adc: ad4134: Support high-speed data capture") in iio/togreg. > > > --- a/drivers/iio/adc/Kconfig > > +++ b/drivers/iio/adc/Kconfig > > @@ -123,9 +123,14 @@ config AD4130 > > config AD4134 > > tristate "Analog Devices AD4134 ADC Driver" > > depends on SPI > > + depends on PWM > > Just wondering: as the PWM input is optional, would it make sense to > not let the driver itself depend on PWM, but only the code implementing > this feature? That way users don't have to enable CONFIG_PWM to use > this driver without PWM input. Well, I've proposed that a while ago. The suggestion was to factor out PWM dependant code into a separate device driver file (e.g. ad4134-offload) [1]. Some time later, I then proposed a device driver following that separate file approach, but that was dismissed [2]. My impression is that the users of these devices either don't care or would enable anything to use these ADCs. [1]: https://lore.kernel.org/linux-pwm/51dab5dee00b95018c8bc6b7ef56b9b722d618f3.camel@gmail.com/ [2]: https://lore.kernel.org/linux-iio/1dd07840-9a52-4f9c-8e4b-476232d2d4c2@baylibre.com/ With best regards, Marcelo > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds