From: Tomasz Duszynski <tduszyns@gmail.com>
To: linux-iio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
robh+dt@kernel.org, jic23@jic23.retrosnub.co.uk,
a.brauchli@elementarea.net, Tomasz Duszynski <tduszyns@gmail.com>
Subject: [PATCH v4 0/3] add support for Sensirion SPS30 PM sensor
Date: Fri, 14 Dec 2018 19:28:00 +0100 [thread overview]
Message-ID: <20181214182803.9006-1-tduszyns@gmail.com> (raw)
This patch series adds support for Sensirion SPS30 particulate matter
sensor. Along with a driver itself, new channel type and modifiers
for distinguishing between coarse and fine particles measurements are
introduced.
Sensor datasheet can be downloaded from
https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Particulate_Matter/Sensirion_PM_Sensors_SPS30_Datasheet.pdf
v4:
* this will likely go in next release cycle so increase version to 4.22
* use KBUILD_MODNAME in format specifier
v3:
* convert be32 to cpu using predefined macro
* remove semicolon: reported by semicolon.cocci
* use capitalization consistently (particulate matter)
v2:
* add support for PM1 and PM4 measurements
* get rid of variable length arrays
* do proper cleanup via devm_add_action_or_reset()
* add extra level of precision (two decimal places) while displaying
measurements
* improve comments a little bit
* slight refactoring and general improvements here and there
Tomasz Duszynski (3):
iio: add IIO_MASSCONCENTRATION channel type
iio: chemical: add support for Sensirion SPS30 sensor
iio: chemical: sps30: add device tree support
Documentation/ABI/testing/sysfs-bus-iio | 17 +-
.../bindings/iio/chemical/sensirion,sps30.txt | 12 +
drivers/iio/chemical/Kconfig | 11 +
drivers/iio/chemical/Makefile | 1 +
drivers/iio/chemical/sps30.c | 406 ++++++++++++++++++
drivers/iio/industrialio-core.c | 5 +
include/uapi/linux/iio/types.h | 5 +
tools/iio/iio_event_monitor.c | 10 +
8 files changed, 466 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.txt
create mode 100644 drivers/iio/chemical/sps30.c
--
2.20.0
next reply other threads:[~2018-12-14 18:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 18:28 Tomasz Duszynski [this message]
2018-12-14 18:28 ` [PATCH v4 1/3] iio: add IIO_MASSCONCENTRATION channel type Tomasz Duszynski
2018-12-16 13:15 ` Jonathan Cameron
2018-12-14 18:28 ` [PATCH v4 2/3] iio: chemical: add support for Sensirion SPS30 sensor Tomasz Duszynski
2018-12-16 13:14 ` Jonathan Cameron
2018-12-16 16:07 ` Tomasz Duszynski
2018-12-14 18:28 ` [PATCH v4 3/3] iio: chemical: sps30: add device tree support Tomasz Duszynski
2018-12-16 13:15 ` Jonathan Cameron
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=20181214182803.9006-1-tduszyns@gmail.com \
--to=tduszyns@gmail.com \
--cc=a.brauchli@elementarea.net \
--cc=devicetree@vger.kernel.org \
--cc=jic23@jic23.retrosnub.co.uk \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).