From: Conor Dooley <conor@kernel.org>
To: Marilene Andrade Garcia <marilene.agarcia@gmail.com>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Marcelo Schmitt" <marcelo.schmitt1@gmail.com>,
"Marcelo Schmitt" <Marcelo.Schmitt@analog.com>,
"Ceclan Dumitru" <dumitru.ceclan@analog.com>,
"Jonathan Santos" <Jonathan.Santos@analog.com>,
"Dragos Bogdan" <dragos.bogdan@analog.com>,
"Kim Seer Paller" <kimseer.paller@analog.com>
Subject: Re: [PATCH v1 0/2] Add MAX14001/MAX14002 support
Date: Thu, 21 Aug 2025 19:06:48 +0100 [thread overview]
Message-ID: <20250821-haziness-squeamish-81713e94d079@spud> (raw)
In-Reply-To: <cover.1755778211.git.marilene.agarcia@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2950 bytes --]
On Thu, Aug 21, 2025 at 10:36:06AM -0300, Marilene Andrade Garcia wrote:
> Hello maintainers,
>
> This patch series adds basic support for the Analog Devices
> MAX14001/MAX14002, configurable, isolated 10-bit ADCs for multi-range
> binary inputs. Besides the implemented ADC readings, these devices have
> more features, like a binary comparator; a filtered reading that can
> provide the average of the last 2, 4, or 8 ADC readings; and an inrush
> comparator that triggers the inrush current. There is also a fault feature
> that can diagnose seven possible fault conditions.
>
> To keep the commits simple and organized, these initial driver support
> patches aim to upstream only the features related to reading two registers,
> one that contains the latest ADC reading, and another one that contains
> the latest filtered ADC readings. Though, _raw and _mean_raw are providing
> the same results in this initial version since the data averaging config
> interface is not implemented yet. For this, IIO_CHAN_INFO_AVERAGE_RAW was
> used to return the filtered average of ADC readings. An additional patch
> documenting the in_voltageY_mean_raw interface can be added on v2 if that
> would be desirable. The idea is to use in_voltageY_mean_raw to return the
> filtered average value, and also to set how many ADC readings (0, 2, 4,
> or 8) are included in the mean calculation. I would also like to know if
> you have any feedback on using IIO_CHAN_INFO_AVERAGE_RAW in this way.
>
> The changes were tested using the Raspberry Pi modified kernel version
> rpi-6.6 on Raspberry Pi 5 hardware. For testing, the MAX14001PMB evaluation
> board was used, which contains two MAX14001 devices. According to the
> board’s circuit configuration, one device measures current and the other
> measures voltage. Due to the evaluation board’s circuitry, the devices
> also receive an offset that allows them to measure negative values. None
> of these evaluation board-specific characteristics were included in the
> driver code (neither the offset nor the current channel capability).
> However, they were considered in the calculation of the values read by the
> devices. Should the code that applies these board configuration parameters
> be added as an additional driver file inside the IIO subsystem, or should
> it remain only in a user application file?
>
> The code was developed during the GSoC program as part of the Analog
> Devices Mentorship. Many thanks to my mentors Marcelo Schmitt, Ceclan
> Dumitru, Jonathan Santos and Dragos Bogdan for their guidance, reviews,
> and explanations about the IIO subsystem code.
>
> I intend to keep sending patches to cover all the features of the device.
Something gone wrong here? There's already a v9 from another ADI
employee on the list:
https://lore.kernel.org/all/20230710042723.46084-2-kimseer.paller@analog.com/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-08-21 18:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 13:36 [PATCH v1 0/2] Add MAX14001/MAX14002 support Marilene Andrade Garcia
2025-08-21 13:38 ` [PATCH v1 1/2] dt-bindings: iio: adc: Add MAX14001 Marilene Andrade Garcia
2025-10-02 16:25 ` ChaosEsque Team
2025-08-21 13:39 ` [PATCH v1 2/2] iio: adc: Add basic support for MAX14001 Marilene Andrade Garcia
2025-08-22 6:52 ` kernel test robot
2025-08-25 11:16 ` Jonathan Cameron
2025-08-21 18:06 ` Conor Dooley [this message]
2025-08-21 19:24 ` [PATCH v1 0/2] Add MAX14001/MAX14002 support Marcelo Schmitt
2025-08-22 16:25 ` Conor Dooley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250821-haziness-squeamish-81713e94d079@spud \
--to=conor@kernel.org \
--cc=Jonathan.Santos@analog.com \
--cc=Marcelo.Schmitt@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=dragos.bogdan@analog.com \
--cc=dumitru.ceclan@analog.com \
--cc=jic23@kernel.org \
--cc=kimseer.paller@analog.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.com \
--cc=marilene.agarcia@gmail.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox