Skip to content

Add Reset and Wakeup support for CCS811

[email protected] linux-devicetree linux-iio lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 6 repliesIn review
  2. v3 posting 1/23 patches 1 replySuperseded
  3. v23 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches11 repliesSuperseded

Changes in v3 from the cover letter

* 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

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: iio: chemical: Add binding for CCS811 VOC sensorDocumentation/devicetree/bindings/iio/chemical/ams,ccs811.yaml+51 -03 replies
2/3iio: chemical: Add support for external Reset and Wakeup in CCS811drivers/iio/chemical/ccs811.c+94 -111 reply
3/3iio: chemical: Add OF match table for CCS811 VOC sensordrivers/iio/chemical/ccs811.c+7 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoRob Herring
1/3R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [RESEND PATCH v3 0/3] Add Reset and Wakeup support for CCS811

From: Manivannan Sadhasivam <[email protected]>

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
Signature · 1 line
2.17.1