From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136857; b=EujTpSu8j4i0zrgCh6HQw/rQ734799Y4L2XIzXX54rlceU/+e31uCi0ClVsVNZ1g3vz6 9QiZUnEYfQCMQg4yzIKvydejnJqsxlXofaJPYaKfL0hTlZNXZywXCJ7XpadbTu4i5ksfO zaldrZ2a0z91+36PplCn8DsBcq8k52wxBJOop5RoKbRZdtYtWykZE2+xteMcKiL7Gh93o wzOY5nbHwzpy5NbNR0h0/nT1kymbMN/XH/RG62lwz6AszLIKGN+smkwgnB1w/b11v1cTm dzTIdK6mffTUsN2CUZdzteq7Hj/+b6kJ+m3xFa9wK/s2Bcirf/K6OLbsbvKoonaYfgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136857; 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=XxdlGEC0YWaet/gx6eG5H5x6imC2sRzpXKUrB0nODJnDhFRc9sp4wH0ODPGJUiaPnXa5 G/wrZkwIv+yzhg1a9t616FZEQk/hQ2auZRb8gKT9bqxObvOVpkNJzIpS1uHHheWYRRNp9 HYmvU+7tRDqPmEMfNMBt2pte9H2ypv6C1pzrslkBpaye5E+xd5GlL7UMHrHaImK+Tzm3l ACl+IEWo2IupZzVfwMJOBP/vfjgBc5fQHV+2qnzbDCK4AadmZhuPjbUF+Z/iwAzSvC87l ZdqpbuppDwnhIqc6E/Df3z36kKLAFNlPeaIOjnayLGMlOJ49a0vMz/1EhU+9pnYR5Og== 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.43 Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) (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 7BFFF606A320 for ; Tue, 1 Dec 2026 14:54:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7BFFF606A320 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-f43.google.com with SMTP id a92af1059eb24-1b5b93bdc2dso2692284c88.0 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=pXgOlHjXgXcF42UECmTeKhxOcwtNyRK8dlAXiDpRD3V8PO9XGaoCxD9sAfRA5dGjqI MiV9OvsmF9SOu5i1S9AxIE/ucrr3UHt5vlxJ4rgU0FN6U8P5X3D1kIRPt6GcTMWPD5Co NAWKNAVBGMsExrCusc1/ZNQaC5ipdv8lt3ux3aiiH760IaIUTS5Kag/Ygoak4w2rdiQr hMgJ5pOLw/ISGQvdFAFHt97Z4ihHQIxF9gM6IOPZ8tA0I0VjZLvZhZ3A9l6rV+WuoPoX 2Zuzn09JykWoIIDLona2eTWBaJavkMK59wwS+o39CfNu51d4FA/7icPNYWkvuz2iM1md HodQ== X-Forwarded-Encrypted: i=1; AL+hErGwD9XWlcyw46/aB8PC4JS7WI0y2I9AR66L2/9Icf57zIFMjeL+86Eu9SeK/AxWp2tfEW78DFS6TqXAHtU=@vger.kernel.org X-Gm-Message-State: APuU4Z82Pegi0WzXq633D5R+ilKG0529ou5EAgZ2g8p6ACx+4v8JOn4P FTegvUzXYo5zRRKeWTL2U58uDzMDIys5LkxylKxYIhP8/JwXHezTEmHk X-Gm-Gg: AZFdTZdtAJ7cI1rQYoLoJMxECeLkoQAybm4gdoc3n9YvtOI9QCjEJhemn4CyT1Eshtr wI0hsHMyukLRGsccxx9hDTb1ypdCrPZtG7rV6z5i5hWUeAQRYTFR9rI/6Pjp2884ES+VfCf0tbH RTkw5RMbry/68HazmqvWU75PiGwlG/gwquu5kufrBObUV1cHCLkv52zAxjjbsAc7FkyFTSOIW1r 07SFBynsZer2a8IayxVzg6Hh8B5nCvCJBzPixBXOuVj6cFWbGaPm72uOw7Bhr9x5Wq/bd9GwhZx WEKO7NCpTga1ob8VYJug5mYJJlkln51yvMC2N5e+BdA2Yi4wEjPwO6tTxkkwkGBNr9L5oK2/Zbn 0eilrbMTmT3PD916vA//8HR3D4iz6CyT342NavMNYDquK8+l0XLTVPu+R78dLp4bgs/9/o846zA vPvTVvRqnxjoTsBQ5wHS2BeRix4JyqhK4gov1Xj5K2MVXBKiiktBxnehqU6wdDeWlohjaD5KXrY QHWDnEhBxBHv5A/rB3j8lpBtZn+7HW5GWDrUVMc4t38EOn6XCwr0AN8mRL7ww5z5XWL1weB4jGN 7KAFXr1tb2tKFmA9fdH03eDaLWz1korGDGM= 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: linux-kernel@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