linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH v3 0/3] Add Reset and Wakeup support for CCS811
@ 2020-04-14 18:49 mani
  2020-04-14 18:49 ` [RESEND PATCH v3 1/3] dt-bindings: iio: chemical: Add binding for CCS811 VOC sensor mani
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: mani @ 2020-04-14 18:49 UTC (permalink / raw)
  To: jic23, robh+dt, narcisaanamaria12
  Cc: knaack.h, lars, pmeerw, linux-iio, devicetree, linux-kernel,
	andy.shevchenko, Manivannan Sadhasivam

From: Manivannan Sadhasivam <mani@kernel.org>

Hello,

This patchset adds external reset and wakeup support for CCS811 VOC
gas sensor. The nRESET and nWAKE pins available on the device are
utilised to provide these functionalities.

The patchset has been validated using CCS811 connected to STM32MP1 based
board over I2C.

While at it, the devicetree yaml binding and OF match table for this sensor
are also added.

Thanks,
Mani

Changes in v3:

* Added ccs811_set_wake(false) to all error paths before calling it actually
* Added Andy's reviewed-by tag
* Added comment for reset procedure and dropped error print for gpio request

Changes in v2:

* Fixed DT binding schema and switched to dual license (GPL/BSD)
* Returned actual error code from devm_gpiod_get_optional()
* Dropped of.h include and of_match_ptr()

Manivannan Sadhasivam (3):
  dt-bindings: iio: chemical: Add binding for CCS811 VOC sensor
  iio: chemical: Add support for external Reset and Wakeup in CCS811
  iio: chemical: Add OF match table for CCS811 VOC sensor

 .../bindings/iio/chemical/ams,ccs811.yaml     |  51 ++++++++
 drivers/iio/chemical/ccs811.c                 | 112 ++++++++++++++++--
 2 files changed, 152 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/chemical/ams,ccs811.yaml

-- 
2.17.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-25 15:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 18:49 [RESEND PATCH v3 0/3] Add Reset and Wakeup support for CCS811 mani
2020-04-14 18:49 ` [RESEND PATCH v3 1/3] dt-bindings: iio: chemical: Add binding for CCS811 VOC sensor mani
2020-04-20 21:11   ` Rob Herring
2020-04-22 18:27     ` Manivannan Sadhasivam
2020-04-25 15:24       ` Jonathan Cameron
2020-04-14 18:49 ` [RESEND PATCH v3 2/3] iio: chemical: Add support for external Reset and Wakeup in CCS811 mani
2020-04-15 11:47   ` Andy Shevchenko
2020-04-14 18:49 ` [RESEND PATCH v3 3/3] iio: chemical: Add OF match table for CCS811 VOC sensor mani
2020-04-18 18:53 ` [RESEND PATCH v3 0/3] Add Reset and Wakeup support for CCS811 Jonathan Cameron
2020-04-25 15:26 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).