From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1C2A1F30BB; Sat, 17 Oct 2026 20:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792269809; cv=none; b=oVw86CphZwDbdoKftdrx2SroDSH4tYPg/sodwDMKl0k/TKrLCeg02dJXImEqhc2Lll14E1BHcJKKHin6/OMrbK4EIdL6RPv4TTA24dv8cPsNadKSwzYoAfEbK8p++ERh00RIMQxBVLjhE2sdve2rgY0EsNYLtXIQYyAN5OIlyxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792269809; c=relaxed/simple; bh=XLTzlxNswd+J2h5xRwgmO2wKKamRw8v4OH5Ce/ACgKo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Fbkfi48iZ4Xif62OJni0WPcwIwQuu1le0puXkf3nG7wrYqRno/k1EeRzCu0OOt6UvT7Ymapu8D0DBDfxhnXvQhc3sW74QZ/4OptLNCVYwiz9i7XC1lBUAgE/HBbP+xxmzoHHg98lzxunzk7SAkgoPXmdt7MH56iT15+biopWSk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bd1ia3aY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bd1ia3aY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFA6E1F000C4; Sat, 17 Oct 2026 20:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792269808; bh=RtHD7f1E0o6AMzDo/ulqt+/XCIIbhi0p9y0fo3+h8wU=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Bd1ia3aYyEjVie7uNtMVne8BJwiJJT88JfxC2z8Fu5TjP9YitgKTUDH0UgMKqWk1b PWdjZmRieRoRaNL8gNXTCEE/8UsthVrHXiXhzMmBn7W/8NUG5/flHzpOwESKSqpFfw NzY4DKyZGK7HfvbcLAZ2yF2zTfX0D+1lW0tuWZwibYpi3OeNqh3QTzeD/IeYgJYRNt BvR5W0vdvmkhSHbVAsyesh6MOmkGDlYbwMX2c6LF1sFI3NxZxf1Mqw5fnV7rN95JXg A/N/69vY1M5dcW8oRA0lSRNYTO/AWPK18IUMWBu1nhcEXQrMpRRrZAjR97RugS//XL zJ7ZnLXkAAqzQ== Date: Sat, 17 Oct 2026 21:43:21 +0100 From: Jonathan Cameron To: Rodrigo Alencar via B4 Relay Cc: rodrigo.alencar@analog.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux@analog.com, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-doc@vger.kernel.org, Olivier Moysan , Jonathan Cameron , David Lechner , Andy Shevchenko , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Jonathan Corbet , Shuah Khan , Randy Dunlap Subject: Re: [PATCH 09/10] iio: ABI: add integration_time for output channels Message-ID: <20261017214321.2b9adfd4@jic23-hlaptop> In-Reply-To: <20261015-ad9910-backend-support-v1-9-3c21648c8e26@analog.com> References: <20261015-ad9910-backend-support-v1-0-3c21648c8e26@analog.com> <20261015-ad9910-backend-support-v1-9-3c21648c8e26@analog.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 15 Oct 2026 13:49:49 -0300 Rodrigo Alencar via B4 Relay wrote: > From: Rodrigo Alencar > > Document the integration_time attribute for output channels, which is > the time interval during which the output is generated by integrating > a quantity, such as its rate of change. It is the output counterpart of > the integration_time already defined for input channels. > Add entries for the altcurrent, frequency and phase channel types, which > are going to be used by the AD9910 DDS driver. > > Signed-off-by: Rodrigo Alencar > --- > Documentation/ABI/testing/sysfs-bus-iio | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio > index 2b6f57041763..a41a96935cfb 100644 > --- a/Documentation/ABI/testing/sysfs-bus-iio > +++ b/Documentation/ABI/testing/sysfs-bus-iio > @@ -1744,6 +1744,23 @@ Description: > seconds. If shared across all channels of a given type, > _integration_time is used. > > +What: /sys/bus/iio/devices/iio:deviceX/out_altcurrentY_integration_time > +What: /sys/bus/iio/devices/iio:deviceX/out_frequencyY_integration_time > +What: /sys/bus/iio/devices/iio:deviceX/out_phaseY_integration_time > +KernelVersion: 7.4 > +Contact: linux-iio@vger.kernel.org > +Description: > + This attribute is used to get/set the integration time in > + seconds of an output channel, i.e., the time interval during > + which the output is generated by integrating (accumulating) a > + quantity over time, such as the rate of change (roc) of the > + channel. The output variation over this interval corresponds to > + the integral of that quantity, which may be bounded by limits > + configured through other channel attributes. The written value > + may be adjusted to the nearest interval supported by the > + hardware. If shared across all channels of a given type, > + _integration_time is used. Interesting adaption. I wonder how often we will see this in drivers. Works for me as I can't think what else integration time would mean for outputs. Jonathan > + > What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time > KernelVersion: 4.0 > Contact: linux-iio@vger.kernel.org >