[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231219130230.32584-1-petre.rodan@subdimension.ro>
Date: Tue, 19 Dec 2023 15:02:19 +0200
From: Petre Rodan <petre.rodan@...dimension.ro>
To: linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org
Cc: Petre Rodan <petre.rodan@...dimension.ro>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Angel Iglesias <ang.iglesiasg@...il.com>,
Matti Vaittinen <mazziesaccount@...il.com>,
Andreas Klinger <ak@...klinger.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Subject: [PATCH 0/2] iio: pressure: changes to mprls0025pa
ChangeLog
- rewrite flow so that driver can use either i2c or spi as communication bus
- add spi driver (tested on MPRLS0015PA0000SA)
- add pressure-triplet property that automatically sets pmin, pmax
- fix transfer-function enum typo based on previous review [1]
- fix interrupt example in binding file (FALLING -> RISING edge)
- indentation changes based on previous code reviews
- renamed mpr_read_pressure to mpr_read_conversion since the sensor is
supposed to also provide temperature measuremets
(but I think mine is broken since the raw temperature value is always
0x800000 - so temp reading not currently implemented)
patch uses device_property_match_property_string() from the 'togreg' branch
[1]: https://lore.kernel.org/lkml/20231116-grudge-hankering-b7a71d831b93@squawk/T/
Petre Rodan (2):
dt-bindings: iio: pressure: change honeywell,mprls0025pa
iio: pressure: change driver for Honeywell MPR series
.../iio/pressure/honeywell,mprls0025pa.yaml | 60 ++-
MAINTAINERS | 3 +-
drivers/iio/pressure/Kconfig | 14 +-
drivers/iio/pressure/Makefile | 2 +
drivers/iio/pressure/mprls0025pa.c | 353 +++++++++---------
drivers/iio/pressure/mprls0025pa.h | 103 +++++
drivers/iio/pressure/mprls0025pa_i2c.c | 76 ++++
drivers/iio/pressure/mprls0025pa_spi.c | 67 ++++
8 files changed, 491 insertions(+), 187 deletions(-)
create mode 100644 drivers/iio/pressure/mprls0025pa.h
create mode 100644 drivers/iio/pressure/mprls0025pa_i2c.c
create mode 100644 drivers/iio/pressure/mprls0025pa_spi.c
--
2.41.0
Powered by blists - more mailing lists