mbox series

[0/2] iio: pressure: changes to mprls0025pa

Message ID 20231219130230.32584-1-petre.rodan@subdimension.ro (mailing list archive)
Headers show
Series iio: pressure: changes to mprls0025pa | expand

Message

Petre Rodan Dec. 19, 2023, 1:02 p.m. UTC
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