[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210901105911.178646-1-roan@protonic.nl>
Date: Wed, 1 Sep 2021 12:59:08 +0200
From: Roan van Dijk <roan@...tonic.nl>
To: Jonathan Cameron <jic23@...nel.org>
Cc: Rob Herring <robh+dt@...nel.org>,
Tomasz Duszynski <tomasz.duszynski@...akon.com>,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, david@...tonic.nl,
Lars-Peter Clausen <lars@...afoo.de>,
Roan van Dijk <roan@...tonic.nl>
Subject: [PATCH v1 0/3] iio: chemical: Add support for Sensirion SCD4x CO2 sensor
This series adds support for the Sensirion SCD4x sensor.
The driver supports continuous reads of temperature, relative humdity and CO2
concentration. There is an interval of 5 seconds between readings. During
this interval the drivers checks if the sensor has new data available.
The driver is based on the scd30 driver. However, The scd4x has become too
different to just expand the scd30 driver. I made a new driver instead of
expanding the scd30 driver. I hope I made the right choice by doing so?
Changes since v1:
dt-bindings:
- Separated compatible string for each sensor type
scd4x.c:
- Changed probe, resume and suspend functions to static
- Added SIMPLE_DEV_PM_OPS function call for power management
operations.
Roan van Dijk (3):
dt-bindings: iio: chemical: sensirion,scd4x: Add yaml description
MAINTAINERS: Add myself as maintainer of the scd4x driver
drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor
.../iio/chemical/sensirion,scd4x.yaml | 46 ++
MAINTAINERS | 6 +
drivers/iio/chemical/Kconfig | 13 +
drivers/iio/chemical/Makefile | 1 +
drivers/iio/chemical/scd4x.c | 708 ++++++++++++++++++
5 files changed, 774 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,scd4x.yaml
create mode 100644 drivers/iio/chemical/scd4x.c
--
2.30.2
Powered by blists - more mailing lists