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 2C2C8223328; Fri, 10 Jul 2026 02:16:55 +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=1783649817; cv=none; b=CJhleytvv8rp9c2mpsg55ANaMDWbOEDU3fPaK9xbA9PBX8senVcxID7bdUKuyla3k3+BsbGltoVlB0e6DxV1fErSUBGHe2cy5tVW7lEO61Rn8sBUqnoY+PZQcX0GLoxvWnxFcLbFL8RkrFXyhoBWe8WUQE3P/PsHad/SN5TyS+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783649817; c=relaxed/simple; bh=D/dN7LGqtP9647f0RQhBpO302dnD/skTciVXeHx//Uc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bMIlMP52FctXDcobf+V5mRfvVsOuhDIyElQgEIMni//rp2zezyjH2ZUkSOSljck30x5gWJ4nQg1pk8XnoMQXLY/Mz/fAs+a6uGr3cQq+baaMVSn+HgRysQVTCn2b2DrX6yoy/WpG7RGoogWAEz1zsc20SRTGZyEd/SQLUlpD/jI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d6O8wvXV; 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="d6O8wvXV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D3DA1F000E9; Fri, 10 Jul 2026 02:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783649815; bh=IGrOD0HuFaYY0Hyc+KEXUarnR1BmY8m/LQ1T4cO+tPg=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=d6O8wvXVU7uKNVVmrYKrHopvGZb29W5jTvjU/HPyWEOPtx3icE6BVSG+S6rGWofdj qqj2l2Z8KXUHmaOAEZeQbD34Vd76o3npxQSmOBdk4/gyNbn8gJDhqdlxyq33xYodAY Hhf6IQKcs/964iHDVlNj71ONwyZNfHv/nViRpHftfNCDDuUFBO8bxGZ1hzEmIf+DGv 84NBASMFkZ4yjHhxjOT1UVT47NgL/NxBlFSjgVO/RYdgGdptaFMAP7yq8tTcgDenp3 mNwLZ3Qgr8wLe7BB5hj2fQHTTXZ8AWehSk3lZmT+rzWpth8ds5QFcRa2Fs3vpDb1jZ DwWEQ0r7yzrYg== Date: Fri, 10 Jul 2026 03:16:49 +0100 From: Jonathan Cameron To: Janani Sunil Cc: Nuno =?UTF-8?B?U8Oh?= , Michael Hennerich , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Olivier Moysan , Philipp Zabel , Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , Shuah Khan , , , , , , , Subject: Re: [PATCH 6/6] Documentation: iio: Add AD7768 Documentation Message-ID: <20260710031649.48311368@jic23-huawei> In-Reply-To: <20260709-ad7768-driver-v1-6-44e1194fd96a@analog.com> References: <20260709-ad7768-driver-v1-0-44e1194fd96a@analog.com> <20260709-ad7768-driver-v1-6-44e1194fd96a@analog.com> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: devicetree@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, 9 Jul 2026 10:50:17 +0200 Janani Sunil wrote: > Add driver documentation for AD7768 > > Signed-off-by: Janani Sunil > --- > Documentation/iio/ad7768.rst | 207 +++++++++++++++++++++++++++++++++++++++++++ > Documentation/iio/index.rst | 1 + > MAINTAINERS | 1 + > 3 files changed, 209 insertions(+) > > diff --git a/Documentation/iio/ad7768.rst b/Documentation/iio/ad7768.rst > new file mode 100644 > index 000000000000..438e33d4f375 > --- /dev/null > +++ b/Documentation/iio/ad7768.rst > @@ -0,0 +1,207 @@ > +.. SPDX-License-Identifier: GPL-2.0-only > + > +============= > +AD7768 driver > +============= > + > +ADC driver for Analog Devices Inc. AD7768 and AD7768-4 devices. The module name > +is ``ad7768``. > + > +Supported devices > +================= > + > +The following chips are supported by this driver: > + > +* `AD7768 `_ - 8-channel, 24-bit simultaneous sampling ADC > +* `AD7768-4 `_ - 4-channel, 24-bit simultaneous sampling ADC Too long. Wrap those. In general keep to 80 chars for docs unless you are breaking up some thing greppable like a file name. > + > +Supported features > +================== > + > +Power modes > +----------- > + > +The AD7768 family supports three configurable power and performance modes: > + > +* **Low power mode** - Optimized for lowest power consumption > +* **Median mode** - Balanced power and performance > +* **Fast mode** - Highest performance with maximum sampling rates > + > +The power mode affects the available sampling frequencies and power consumption. > +Set via the ``adi,power-mode`` device tree property. Control it from the sampling frequency probably as David suggested. > + > +Per-channel calibration > +----------------------- > + > ++---------------------------------------+--------------------------------------------------------------+ > +| Attribute | Description | > ++=======================================+==============================================================+ > +| ``in_voltage_calibbias`` | Channel offset calibration value | > ++---------------------------------------+--------------------------------------------------------------+ > +| ``in_voltage_calibscale`` | Channel gain calibration value | > ++---------------------------------------+--------------------------------------------------------------+ > +| ``in_voltage_phase`` | Channel phase calibration value. | Be consistent on . Also does this mean the phase offset is a tweak, or do we know the scaling? > ++---------------------------------------+--------------------------------------------------------------+ > +