From: Jonathan Cameron <jic23@kernel.org>
To: Eason Yang <j2anfernee@gmail.com>
Cc: avifishman70@gmail.com, tmaimon77@gmail.com,
tali.perry1@gmail.com, venture@google.com, yuenn@google.com,
benjaminfair@google.com, lars@metafoo.de, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, nuno.sa@analog.com,
dlechner@baylibre.com, javier.carrasco.cruz@gmail.com,
andriy.shevchenko@linux.intel.com, gstols@baylibre.com,
olivier.moysan@foss.st.com, mitrutzceclan@gmail.com,
tgamblin@baylibre.com, matteomartelli3@gmail.com,
marcelo.schmitt@analog.com, alisadariana@gmail.com,
joao.goncalves@toradex.com, thomas.bonnefille@bootlin.com,
ramona.nechita@analog.com, herve.codina@bootlin.com,
chanh@os.amperecomputing.com, KWLIU@nuvoton.com,
yhyang2@nuvoton.com, openbmc@lists.ozlabs.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/2] iio: adc: add Nuvoton NCT7201 ADC driver
Date: Sat, 22 Feb 2025 15:25:37 +0000 [thread overview]
Message-ID: <20250222152537.2a24d80f@jic23-huawei> (raw)
In-Reply-To: <20250221090918.1487689-1-j2anfernee@gmail.com>
On Fri, 21 Feb 2025 17:09:16 +0800
Eason Yang <j2anfernee@gmail.com> wrote:
Hi Eason,
Not sure if I asked this before, but this is a device that seems
to be typically used for hardware monitoring and there are a number
of similar sounding device in drivers/hwmon/
That raises a couple of questions:
1) Is it compatible with any of those existing drivers?
2) Why IIO rather than HWMON?
There isn't normally a problem with having a hardware monitoring
related device supported by IIO, it is just good to know if your
usecase makes that a good idea. We have the iio-hwmon bridge
driver to solve the problem of a device than can be used either
as a generic ADC or as a hwmon type monitoring device (which tends
to have more alarms etc)
Jonathan
> Change since version 4:
> - Fix comments
> - Add interrupts and reset-gpios to the DT example
> - Use the FIELD_PREP and FIELD_GET
> - Add use_single_write in regmap_config
> - Use regmap_access_table
>
> Change since version 3:
> - Fix comments
> - Don't put nct720"x" in the name, just call it nct7201
> - Remove differential inputs until conversions are finished
> - Add NCT7201_ prefix in all macros and avoid the tables
> - Correct event threshold values in raw units
> - Add with and without interrupt callback function to have the event
> config part and one that doesn't
> - Remove print an error message if regmap_wirte failed case
>
> Change since version 2:
> - Remvoe read-vin-data-size property, default use read word vin data
> - Use regmap instead of i2c smbus API
> - IIO should be IIO_CHAN_INFO_RAW and _SCALE not _PROCESSED
> - Use dev_xxx_probe in probe function and dev_xxx in other functions
> - Use devm_iio_device_register replace of iio_device_register
> - Use guard(mutex) replace of mutex_lock
> - Use get_unaligned_le16 conversion API
>
> Changes since version 1:
> - Add new property in iio:adc binding document
> - Add new driver for Nuvoton NCT720x driver
>
> Eason Yang (2):
> dt-bindings: iio: adc: add NCT7201 ADCs
> iio: adc: add support for Nuvoton NCT7201
>
> .../bindings/iio/adc/nuvoton,nct7201.yaml | 57 ++
> MAINTAINERS | 2 +
> drivers/iio/adc/Kconfig | 11 +
> drivers/iio/adc/Makefile | 1 +
> drivers/iio/adc/nct7201.c | 487 ++++++++++++++++++
> 5 files changed, 558 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
> create mode 100644 drivers/iio/adc/nct7201.c
>
next prev parent reply other threads:[~2025-02-22 15:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 9:09 [PATCH v4 0/2] iio: adc: add Nuvoton NCT7201 ADC driver Eason Yang
2025-02-21 9:09 ` [PATCH v4 1/2] dt-bindings: iio: adc: add NCT7201 ADCs Eason Yang
2025-02-21 15:56 ` David Lechner
2025-04-07 13:41 ` Yu-Hsian Yang
2025-02-21 16:56 ` Conor Dooley
2025-02-21 9:09 ` [PATCH v4 2/2] iio: adc: add support for Nuvoton NCT7201 Eason Yang
2025-02-21 16:30 ` David Lechner
2025-02-22 15:56 ` Jonathan Cameron
2025-02-25 21:11 ` Paul Menzel
2025-02-22 15:25 ` Jonathan Cameron [this message]
2025-04-07 13:51 ` [PATCH v4 0/2] iio: adc: add Nuvoton NCT7201 ADC driver Yu-Hsian Yang
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=20250222152537.2a24d80f@jic23-huawei \
--to=jic23@kernel.org \
--cc=KWLIU@nuvoton.com \
--cc=alisadariana@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=avifishman70@gmail.com \
--cc=benjaminfair@google.com \
--cc=chanh@os.amperecomputing.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=gstols@baylibre.com \
--cc=herve.codina@bootlin.com \
--cc=j2anfernee@gmail.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=joao.goncalves@toradex.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--cc=matteomartelli3@gmail.com \
--cc=mitrutzceclan@gmail.com \
--cc=nuno.sa@analog.com \
--cc=olivier.moysan@foss.st.com \
--cc=openbmc@lists.ozlabs.org \
--cc=ramona.nechita@analog.com \
--cc=robh@kernel.org \
--cc=tali.perry1@gmail.com \
--cc=tgamblin@baylibre.com \
--cc=thomas.bonnefille@bootlin.com \
--cc=tmaimon77@gmail.com \
--cc=venture@google.com \
--cc=yhyang2@nuvoton.com \
--cc=yuenn@google.com \
/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