Skip to content

iio: chemical: Add support for sgp40 gas sensor

Andreas Klinger linux-devicetree linux-iio lkml 2 versions – In review

Get series with b4
b4 am 20210804154526.GA3207@arbad

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: iio: chemical: Add trivial DT binding for sgp40Documentation/devicetree/bindings/trivial-devices.yaml+2 -00 replies
2/2iio: chemical: Add driver support for sgp40Documentation/ABI/testing/sysfs-bus-iio-chemical-sgp40 MAINTAINERS drivers/iio/chemical/Kconfig +2 more+421 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] iio: chemical: Add support for sgp40 gas sensor

This patch set adds support for sensirion sgp40 gas sensor.

Many thanks for the in-depth reviews, especially of Jonathan who triggered some important improvements for v2:
- provide more precision for voc value; this in turn triggered the folling point:
- rework of e^x calculation with an optimization on the interesting range between e^(-6) and e^6
- restructure use of endian types
- use __packed structures for sent telegrams
- optimize usage of mutex
- optimize switch-cases
- replace attributes by read_raw() and write_raw() values
- add documentation in Documentation/ABI/testing/sysfs-bus-iio-sgp40 as well as in the source code

Andreas Klinger (2):
dt-bindings: iio: chemical: Add trivial DT binding for sgp40
iio: chemical: Add driver support for sgp40

 .../ABI/testing/sysfs-bus-iio-chemical-sgp40  |  31 ++
 .../devicetree/bindings/trivial-devices.yaml  |   2 +
 MAINTAINERS                                   |   6 +
 drivers/iio/chemical/Kconfig                  |  11 +
 drivers/iio/chemical/Makefile                 |   1 +
 drivers/iio/chemical/sgp40.c                  | 372 ++++++++++++++++++
 6 files changed, 423 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-chemical-sgp40
 create mode 100644 drivers/iio/chemical/sgp40.c
Signature · 1 line
2.20.1