[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241226055313.2841977-1-j2anfernee@gmail.com>
Date: Thu, 26 Dec 2024 13:53:11 +0800
From: Eason Yang <j2anfernee@...il.com>
To: avifishman70@...il.com,
tmaimon77@...il.com,
tali.perry1@...il.com,
venture@...gle.com,
yuenn@...gle.com,
benjaminfair@...gle.com,
jic23@...nel.org,
lars@...afoo.de,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
nuno.sa@...log.com,
dlechner@...libre.com,
javier.carrasco.cruz@...il.com,
andriy.shevchenko@...ux.intel.com,
marcelo.schmitt@...log.com,
olivier.moysan@...s.st.com,
mitrutzceclan@...il.com,
tgamblin@...libre.com,
matteomartelli3@...il.com,
alisadariana@...il.com,
gstols@...libre.com,
thomas.bonnefille@...tlin.com,
herve.codina@...tlin.com,
chanh@...amperecomputing.com,
KWLIU@...oton.com,
yhyang2@...oton.com
Cc: openbmc@...ts.ozlabs.org,
linux-iio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Eason Yang <j2anfernee@...il.com>
Subject: [PATCH v3 0/2] iio: adc: add Nuvoton NCT7201 ADC driver
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 binding for Nuvoton NCT720x ADCs
iio: adc: add Nuvoton NCT7201 ADC driver
.../bindings/iio/adc/nuvoton,nct7201.yaml | 49 ++
MAINTAINERS | 2 +
drivers/iio/adc/Kconfig | 10 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/nct7201.c | 449 ++++++++++++++++++
5 files changed, 511 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
create mode 100644 drivers/iio/adc/nct7201.c
--
2.34.1
Powered by blists - more mailing lists