linux/drivers/iio/chemical
Manivannan Sadhasivam c6644f7201 iio: chemical: Add support for external Reset and Wakeup in CCS811
CCS811 VOC sensor exposes nRESET and nWAKE pins which can be connected
to GPIO pins of the host controller. These pins can be used to externally
release the device from reset and also to wake it up before any I2C
transaction. The initial driver support assumed that the nRESET pin is not
connected and the nWAKE pin is tied to ground.

This commit improves it by adding support for controlling those two pins
externally using a host controller. For the case of reset, if the hardware
reset is not available, the mechanism to do software reset is also added.

As a side effect of doing this, the IIO device allocation needs to be
slightly moved to top of probe to make use of priv data early.

Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-05-03 09:47:18 +01:00
..
ams-iaq-core.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
atlas-sensor.c iio: chemical: atlas-sensor: add RTD-SM module support 2020-04-25 15:20:47 +01:00
bme680_core.c iio:chemical:bme680: Tidy up parameters to regmap_bulk_read 2020-04-19 16:56:39 +01:00
bme680_i2c.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680_spi.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680.h iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
ccs811.c iio: chemical: Add support for external Reset and Wakeup in CCS811 2020-05-03 09:47:18 +01:00
Kconfig iio: chemical: sps30: fix missing triggered buffer dependency 2020-03-08 16:21:23 +00:00
Makefile iio: chemical: atlas-ph-sensor: rename atlas-ph-sensor to atlas-sensor 2019-12-29 15:20:06 +00:00
pms7003.c iio: chemical: pms7003: extend supported sensors list 2019-04-04 20:19:40 +01:00
sgp30.c iio: chemical: sgp30: drop excess semicolon 2019-10-22 12:41:07 +01:00
sps30.c iio: chemical: sps30: Explicity truncate constant by masking 2019-10-18 19:52:03 +01:00
vz89x.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00