Skip to content

iio: chemical: add support for SGP41 sensor

Akshat Chandra linux-devicetree linux-iio lkml oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Changes in v2 from the cover letter

- Split the binding and driver into separate patches.
- Add a dedicated Device Tree binding documenting the VDD supply.
- Update the driver and patch descriptions following review feedback.
- Fixed some issues in driver.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: iio: chemical: Add Sensirion SGP41 bindingDocumentation/devicetree/bindings/iio/chemical/sensirion,sgp41.yaml+43 -00 replies
2/2iio: chemical: Add support for Sensirion SGP41drivers/iio/chemical/Kconfig drivers/iio/chemical/Makefile drivers/iio/chemical/sgp41.c+554 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] iio: chemical: add support for SGP41 sensor

The SGP41 is a gas sensor used for air quality monitoring by sensing VOC and NOx.

This driver follows the approach of exposing raw resistance values to userspace, where the gas-index algorithm can be applied.

Temperature and relative humidity compensation are supported and can be configured through the driver's IIO attributes.

The SGP41 is similar to the existing SGP40, but requires its own driver for the following reasons:

- It has a dedicated conditioning command that must be performed before raw measurements.
- A measurement returns a 6-byte response containing two raw tick values, each with its own CRC, rather than the SGP40's single value.
- It supports both VOC and NOx measurements and requires the heater to be powered off after use.

The series consists of two patches:

1/2: dt-bindings: iio: chemical: Add Sensirion SGP41 binding
Add a dedicated Device Tree binding, including the VDD supply.
2/2: iio: chemical: Add support for Sensirion SGP41
Add the IIO driver for the sensor.

Changes in v2:
- Split the binding and driver into separate patches.
- Add a dedicated Device Tree binding documenting the VDD supply.
- Update the driver and patch descriptions following review feedback.
- Fixed some issues in driver.

v1: https://patchew.org/linux/20260831151235.64076-1-notmissinge%40gmail.com/