mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tomasz Duszynski <tomasz.duszynski@octakon.com>
To: <linux-iio@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<robh+dt@kernel.org>, <jic23@kernel.org>,
	<andy.shevchenko@gmail.com>, <pmeerw@pmeerw.net>,
	Tomasz Duszynski <tomasz.duszynski@octakon.com>
Subject: [PATCH v2 0/4] Add support for SCD30 sensor
Date: Sat, 30 May 2020 23:36:26 +0200	[thread overview]
Message-ID: <20200530213630.87159-1-tomasz.duszynski@octakon.com> (raw)

Following series adds support for Sensirion SCD30 sensor module capable of
measuring carbon dioxide, temperature and relative humidity. CO2 measurements
base on NDIR principle while temperature and relative humidity are measured by
the on board SHT31. As for sensor communication, both I2C and serial interfaces
are supported.

v2:
* move asm/byteorder.h towards the bottom of include list
* make channel address names in enum more specific
* add postfixes to defines and extra comments
* drop unneeded i2c include from scd30 header
* break generic command sending function into specialized options
* expose automatic calibration and forced calibration via the same attr
* use SAMP_FREQ to set frequency instead of meas_interval attr
* use CALISCALE to set pressure compensation instead of pressure_comp attr
* use CALIBBIAS to set temperature offset instead of temp_offset attr
* fix order in MAINTAINERS
* drop attribute allowing one to reset sensor
* as we have dt probing drop board file based probing (i2c_device_id)
* merge patches touching related files
* use fwnode API to retrieve interrupt from dt
* fix interrupt-parent spelling
* change binding license
* drop supply from required property

Tomasz Duszynski (4):
  iio: chemical: scd30: add core driver
  iio: chemical: scd30: add I2C interface driver
  iio: chemical: scd30: add serial interface driver
  dt-bindings: iio: scd30: add device binding file

 Documentation/ABI/testing/sysfs-bus-iio-scd30 |  20 +
 .../iio/chemical/sensirion,scd30.yaml         |  68 ++
 MAINTAINERS                                   |   9 +
 drivers/iio/chemical/Kconfig                  |  33 +
 drivers/iio/chemical/Makefile                 |   3 +
 drivers/iio/chemical/scd30.h                  |  75 ++
 drivers/iio/chemical/scd30_core.c             | 764 ++++++++++++++++++
 drivers/iio/chemical/scd30_i2c.c              | 134 +++
 drivers/iio/chemical/scd30_serial.c           | 266 ++++++
 9 files changed, 1372 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-scd30
 create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,scd30.yaml
 create mode 100644 drivers/iio/chemical/scd30.h
 create mode 100644 drivers/iio/chemical/scd30_core.c
 create mode 100644 drivers/iio/chemical/scd30_i2c.c
 create mode 100644 drivers/iio/chemical/scd30_serial.c

--
2.26.2


             reply	other threads:[~2020-05-30 21:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 21:36 Tomasz Duszynski [this message]
2020-05-30 21:36 ` [PATCH v2 1/4] iio: chemical: scd30: add core driver Tomasz Duszynski
2020-05-31  9:58   ` Jonathan Cameron
2020-05-31 10:16     ` Jonathan Cameron
2020-05-31 19:21     ` Tomasz Duszynski
2020-06-01 10:36       ` Jonathan Cameron
2020-06-01 11:30         ` Tomasz Duszynski
2020-06-01 13:41           ` Jonathan Cameron
2020-06-02  7:13             ` Tomasz Duszynski
2020-06-01 12:10       ` Tomasz Duszynski
2020-06-01 13:35         ` Jonathan Cameron
2020-05-30 21:36 ` [PATCH v2 2/4] iio: chemical: scd30: add I2C interface driver Tomasz Duszynski
2020-05-31 10:02   ` Jonathan Cameron
2020-05-30 21:36 ` [PATCH v2 3/4] iio: chemical: scd30: add serial " Tomasz Duszynski
2020-05-31 10:15   ` Jonathan Cameron
2020-05-31 15:50     ` Tomasz Duszynski
2020-05-30 21:36 ` [PATCH v2 4/4] dt-bindings: iio: scd30: add device binding file Tomasz Duszynski
2020-05-31 10:19   ` Jonathan Cameron
2020-05-31 15:44     ` Tomasz Duszynski

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=20200530213630.87159-1-tomasz.duszynski@octakon.com \
    --to=tomasz.duszynski@octakon.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    --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

Powered by JetHome