[PATCH v4 0/2] iio: pressure: add Sensirion SDP31 driver
From: Muhammad Abu Bakar <hidden>
Date: 2026-09-28 21:54:54
Also in:
linux-iio, lkml
This series adds support for the Sensirion SDP3x family of differential pressure sensors (SDP31, SDP32 and SDP33), I2C devices that also report temperature. The SDP3x uses a completely different I2C command protocol from the already supported SDP500, so extending the sdp500 driver does not make sense. Patch 1 adds the device tree binding. Patch 2 adds the IIO driver, which exposes differential pressure and temperature channels and validates each measurement using the sensor's CRC-8 checksum. The scale factor is read from the sensor at runtime, so the SDP31, SDP32 and SDP33 (which differ only in range) are all supported. Tested on an SDP31 wired to the I2C bus of a Raspberry Pi 4. Changes since v3: - dt-bindings: support the whole SDP3x family (sdp31/sdp32/sdp33) and describe the optional interrupt line. - driver: for a normal measurement read only the pressure and temperature words (6 bytes); read the scale factor once at probe. - driver: add sdp32/sdp33 to the match tables and report the matched part name. - driver: add a file header with the datasheet link and drop comments that only restated the code. v1: https://lore.kernel.org/linux-iio/20260919223650.13396-1-m.abubakar365@yahoo.com/ v2: https://lore.kernel.org/linux-iio/20260920164533.31988-1-m.abubakar365@yahoo.com/ v3: https://lore.kernel.org/linux-iio/20260926154118.5471-1-m.abubakar365@yahoo.com/ (local) Muhammad Abu Bakar (2): dt-bindings: iio: pressure: add Sensirion SDP31 iio: pressure: add Sensirion SDP31 driver .../iio/pressure/sensirion,sdp31.yaml | 48 ++++ MAINTAINERS | 6 + drivers/iio/pressure/Kconfig | 11 + drivers/iio/pressure/Makefile | 1 + drivers/iio/pressure/sdp31.c | 241 ++++++++++++++++++ 5 files changed, 307 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/pressure/sensirion,sdp31.yaml create mode 100644 drivers/iio/pressure/sdp31.c -- 2.43.0