linux/drivers/iio/chemical
Himanshu Jha 1b3bd85927 iio: chemical: Add support for Bosch BME680 sensor
Bosch BME680 is a 4-in-1 sensor with temperature, pressure, humidity
and gas sensing capability. It supports both I2C and SPI communication
protocol for effective data communication.

The device supports two modes:

1. Sleep mode
2. Forced mode

The measurements only takes place when forced mode is triggered and a
single TPHG cycle is performed by the sensor. The sensor automatically
goes to sleep after afterwards.

The device has various calibration constants/parameters programmed into
devices' non-volatile memory(NVM) during production and can't be altered
by the user. These constants are used in the compensation functions to
get the required compensated readings along with the raw data. The
compensation functions/algorithms are provided by Bosch Sensortec GmbH
via their API[1]. As these don't change during the measurement cycle,
therefore we read and store them at the probe. The default configs
supplied by Bosch are also set at probe.

0-day tested with build success.

GSoC-2018: https://summerofcode.withgoogle.com/projects/#6691473790074880
Mentor: Daniel Baluta
[1] https://github.com/BoschSensortec/BME680_driver
Datasheet:
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME680-DS001-00.pdf

Note from Jonathan: The compensation functions are 'interesting' and
could do with a tidy up in future.  However, they work so we can leave that
for another day.

Cc: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-07-28 11:38:46 +01:00
..
ams-iaq-core.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
atlas-ph-sensor.c iio: chemical: atlas-ph-sensor: use msleep() for long uncritical delays 2018-04-15 18:37:26 +01:00
bme680_core.c iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
bme680_i2c.c iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
bme680_spi.c iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
bme680.h iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
ccs811.c Merge 4.16-rc7 into staging-next 2018-03-28 13:33:37 +02:00
Kconfig iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
Makefile iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
vz89x.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00