public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add max14001 support
@ 2023-06-05 13:07 Kim Seer Paller
  2023-06-05 13:07 ` [PATCH v2 1/2] dt-bindings:iio:adc: add max14001 Kim Seer Paller
  2023-06-05 13:07 ` [PATCH v2 2/2] iio: adc: max14001: New driver Kim Seer Paller
  0 siblings, 2 replies; 12+ messages in thread
From: Kim Seer Paller @ 2023-06-05 13:07 UTC (permalink / raw)
  To: jic23, lars, krzysztof.kozlowski
  Cc: broonie, lgirdwood, linux-iio, linux-kernel, kimseer.paller

It took more time than I expected, but I have followed up on this and now
I'm presenting the patch for your review.

Modified the code based on the implementation of this application note
as a reference:
https://www.analog.com/media/en/technical-documentation/user-guides/guide-to-programming-the-max14001max14002-isolated-adcs--maxim-integrated.pdf
For now, I'm figuring out how to implement daisy chain for future support.

Changes in v2:

 max14001:
  - Replaced verification register definitions with macro.
  - Removed local definition of IIO_DMA_MINALIGN.
  - Changed driver to big endian format and reverse data prior to outputting
  it to the device as per the app note.
  - Utilized default register values instead of zero to clear memory validation
  fault.
  - Converted driver to use custom regmap for register access.
  - Modified scaled value calculation and changed to IIO_VAL_FRACTIONAL_LOG2.
  - Removed offset attribute.
  - Added comments for clarity in write transactions.
  - Misc changes(blank lines...).

 Bindings:
  - Removed unneccessary device tree propertied and updated bindings.

The code was tested using max14001pmb and max14001evsys boards with
raspberry pi 4.

Kim Seer Paller (2):
  dt-bindings:iio:adc: add max14001
  iio: adc: max14001: New driver

 .../bindings/iio/adc/adi,max14001.yaml        |  55 +++
 MAINTAINERS                                   |   8 +
 drivers/iio/adc/Kconfig                       |  10 +
 drivers/iio/adc/Makefile                      |   1 +
 drivers/iio/adc/max14001.c                    | 333 ++++++++++++++++++
 5 files changed, 407 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,max14001.yaml
 create mode 100644 drivers/iio/adc/max14001.c


base-commit: 44149752e9987a9eac5ad78e6d3a20934b5e018d
-- 
2.34.1


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

end of thread, other threads:[~2023-06-07 14:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-05 13:07 [PATCH v2 0/2] Add max14001 support Kim Seer Paller
2023-06-05 13:07 ` [PATCH v2 1/2] dt-bindings:iio:adc: add max14001 Kim Seer Paller
2023-06-05 13:30   ` Krzysztof Kozlowski
2023-06-06  3:21     ` Paller, Kim Seer
2023-06-05 13:07 ` [PATCH v2 2/2] iio: adc: max14001: New driver Kim Seer Paller
2023-06-05 19:24   ` Jonathan Cameron
2023-06-06  3:21     ` Paller, Kim Seer
2023-06-06 10:35       ` Jonathan Cameron
2023-06-07 11:17         ` Paller, Kim Seer
2023-06-07 14:49           ` Jonathan Cameron
2023-06-06  0:48   ` andy.shevchenko
2023-06-06  3:39     ` Paller, Kim Seer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox