From: Muhammad Abu Bakar <m.abubakar365@yahoo.com>
To: Jonathan Cameron <jic23@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, m.abubakar365@yahoo.com
Subject: [PATCH v5 0/2] iio: pressure: add Sensirion SDP31 driver
Date: Sat, 3 Oct 2026 21:09:47 +0500 [thread overview]
Message-ID: <20261003160949.4657-1-m.abubakar365@yahoo.com> (raw)
In-Reply-To: 20261003160949.4657-1-m.abubakar365.ref@yahoo.com
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 SDP32 and SDP33 differ from the SDP31 only in range
and use it as a fallback compatible; the scale factor is read from the
sensor at runtime. Tested on an SDP31 wired to the I2C bus of a
Raspberry Pi 4.
Changes since v4:
- dt-bindings: use sensirion,sdp31 as the fallback compatible for the
SDP32 and SDP33 instead of listing them as independent compatibles.
- driver: match only sensirion,sdp31 and report the device as sdp31.
- driver: include headers for everything used directly, drop redundant
casts and use KILO.
- Add the Assisted-by tags, which were missing from earlier versions.
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/
v4: https://lore.kernel.org/linux-iio/20260928215422.3720-1-m.abubakar365@yahoo.com/
Muhammad Abu Bakar (2):
dt-bindings: iio: pressure: add Sensirion SDP31
iio: pressure: add Sensirion SDP31 driver
.../iio/pressure/sensirion,sdp31.yaml | 51 ++++
MAINTAINERS | 6 +
drivers/iio/pressure/Kconfig | 11 +
drivers/iio/pressure/Makefile | 1 +
drivers/iio/pressure/sdp31.c | 244 ++++++++++++++++++
5 files changed, 313 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/pressure/sensirion,sdp31.yaml
create mode 100644 drivers/iio/pressure/sdp31.c
--
2.43.0
next parent reply other threads:[~2026-10-03 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261003160949.4657-1-m.abubakar365.ref@yahoo.com>
2026-10-03 16:09 ` Muhammad Abu Bakar [this message]
2026-10-03 16:09 ` [PATCH v5 1/2] dt-bindings: iio: pressure: add Sensirion SDP31 Muhammad Abu Bakar
2026-10-04 7:53 ` Krzysztof Kozlowski
2026-10-03 16:09 ` [PATCH v5 2/2] iio: pressure: add Sensirion SDP31 driver Muhammad Abu Bakar
2026-10-03 19:14 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261003160949.4657-1-m.abubakar365@yahoo.com \
--to=m.abubakar365@yahoo.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox