[PATCH 0/2] iio: pressure: add Honeywell ABP2 driver

Petre Rodan posted 2 patches 1 week, 2 days ago
There is a newer version of this series
.../bindings/iio/pressure/honeywell,abp2030pa.yaml | 133 +++++
MAINTAINERS                                        |   7 +
drivers/iio/pressure/Kconfig                       |  24 +
drivers/iio/pressure/Makefile                      |   3 +
drivers/iio/pressure/abp2030pa.c                   | 543 +++++++++++++++++++++
drivers/iio/pressure/abp2030pa.h                   |  79 +++
drivers/iio/pressure/abp2030pa_i2c.c               |  93 ++++
drivers/iio/pressure/abp2030pa_spi.c               |  88 ++++
8 files changed, 970 insertions(+)
[PATCH 0/2] iio: pressure: add Honeywell ABP2 driver
Posted by Petre Rodan 1 week, 2 days ago
Adds driver for digital Honeywell ABP2 series of board mount
pressure and temperature sensors.

This driver differs quite a bit from the Honeywell ABP series that
is already present in the kernel:

- many more pressure-triplet variations of pressure ranges and
units
- extra end of conversion interrupt feature
- implements both i2c and SPI interfaces
- uses a bidirectional data retrieving protocol (4 wire SPI instead of 3 wire)
- 24+24bit resolution vs 14+11bit on the ABP

Specific low level i2c and spi data transfer API is used instead
of regmap because the protocol is based on simple commands instead
of on a memory map.

Given the fact that the sensor can perform gage and differential
pressure measurements with a full-scale range of down to 500 pascals
the offset and scale are calculated in such a way to provide a result
in pascals, not kilopascals. Just like the Honeywell MPR driver.
For a kilopascal output the scale representation would lose too much
precision.

Tested on two different sensors.

datasheet:
https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/basic-abp2-series/documents/sps-siot-abp2-series-datasheet-32350268-en.pdf

Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
---
Petre Rodan (2):
      dt-bindings: iio: pressure: add honeywell,abp2030pa
      iio: pressure: add Honeywell ABP2 driver

 .../bindings/iio/pressure/honeywell,abp2030pa.yaml | 133 +++++
 MAINTAINERS                                        |   7 +
 drivers/iio/pressure/Kconfig                       |  24 +
 drivers/iio/pressure/Makefile                      |   3 +
 drivers/iio/pressure/abp2030pa.c                   | 543 +++++++++++++++++++++
 drivers/iio/pressure/abp2030pa.h                   |  79 +++
 drivers/iio/pressure/abp2030pa_i2c.c               |  93 ++++
 drivers/iio/pressure/abp2030pa_spi.c               |  88 ++++
 8 files changed, 970 insertions(+)
---
base-commit: f9e05791642810a0cf6237d39fafd6fec5e0b4bb
change-id: 20251122-honeywell_abp2_driver-9c796ef0c4b2

Best regards,
-- 
Petre Rodan <petre.rodan@subdimension.ro>