devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Add support for ADAQ776x-1 ADC Family
@ 2025-11-26 21:55 Jonathan Santos
  2025-11-26 21:56 ` [PATCH v4 1/4] dt-bindings: iio: adc: ad7768-1: add new supported parts Jonathan Santos
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jonathan Santos @ 2025-11-26 21:55 UTC (permalink / raw)
  To: linux-iio, devicetree, linux-kernel
  Cc: Jonathan Santos, Michael.Hennerich, jic23, dlechner, nuno.sa,
	andy, robh, krzk+dt, conor+dt, marcelo.schmitt, jonath4nns

This adds support for the ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1 devices. 

The ADAQ7768-1 and ADAQ7769-1 integrate a programmable gain amplifier (PGA)
with 7 and 8 gain options, respectively. The ADAQ7767-1 and ADAQ7769-1 
also feature a 3-pin selectable Anti-aliasing filter (AAF) gain.

---
Changes in v4:
* Removed u64_fract type patch, as it is not used. u32_fract is sufficient
  for the PGA gain calculations.
* Added new patch adding BASIS_POINTS macro to units.h.
* Included pga-gpios property for parts that support PGA gain.
  Before we were using the internal gpio controller to manage the PGA pins,
  but still exposing the controller for external use (causing possible conflicts).
* Addressed other review comments, see individual patches.
* Link to v3: https://lore.kernel.org/linux-iio/cover.1757001160.git.Jonathan.Santos@analog.com/T/#t

Changes in v3:
* Renamed adi,gain-milli to adi,aaf-gain-bp. Now it represents basis points
  (one hundredth of a percent).
* ad7768_channel_masks removed along with available_masks element in
  ad7768_chip_info struct. It does not add anything for single channels,
  so not needed, at least for now.
* New patch adding 64-bit fractional number types to math.h.
* Moved aaf gain parsing to its own function, and now returning after
  warning to avoid setting a variable when it shouldn't (avoid confusion).
* ad7768_set_pga_gain(): removed the pgia enable check, relying on the
  regmap cache.
* Addressed other review comments, see individual patches.

Changes in v2:
* adi,aaf-gain property renamed to adi,gain-milli. Default value added.
* fixed some commit messages. 
* Added 'select RATIONAL' to Kconfig.
* Added lock to protect PGA value access.
* rewrote AAF gain check and replaced error returns with warnings.
* Addressed other review comments, see individual patches.
* Link to v1: https://lore.kernel.org/linux-iio/cover.1754617360.git.Jonathan.Santos@analog.com/T/#t
---

Jonathan Santos (4):
  dt-bindings: iio: adc: ad7768-1: add new supported parts
  iio: adc: ad7768-1: introduce chip info for future multidevice support
  units: add BASIS_POINTS macro
  iio: adc: ad7768-1: add support for ADAQ776x-1 ADC Family

 .../bindings/iio/adc/adi,ad7768-1.yaml        |  64 ++-
 drivers/iio/adc/Kconfig                       |   1 +
 drivers/iio/adc/ad7768-1.c                    | 386 ++++++++++++++++--
 include/linux/units.h                         |   2 +
 4 files changed, 422 insertions(+), 31 deletions(-)


base-commit: f9e05791642810a0cf6237d39fafd6fec5e0b4bb
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-07 18:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-26 21:55 [PATCH v4 0/4] Add support for ADAQ776x-1 ADC Family Jonathan Santos
2025-11-26 21:56 ` [PATCH v4 1/4] dt-bindings: iio: adc: ad7768-1: add new supported parts Jonathan Santos
2025-12-04  8:14   ` Krzysztof Kozlowski
2025-11-26 21:56 ` [PATCH v4 2/4] iio: adc: ad7768-1: introduce chip info for future multidevice support Jonathan Santos
2025-11-26 21:56 ` [PATCH v4 3/4] units: add BASIS_POINTS macro Jonathan Santos
2025-11-26 22:01   ` Andy Shevchenko
2025-11-26 21:56 ` [PATCH v4 4/4] iio: adc: ad7768-1: add support for ADAQ776x-1 ADC Family Jonathan Santos
2025-12-07 18:24   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).