Skip to content

add support for PMS7003 PM sensor

Tomasz Duszynski 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. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v23 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches7 repliesSuperseded

Changes in v4 from the cover letter

* add vendor prefix to set-gpios property

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: chemical: add support for Plantower PMS7003 sensordrivers/iio/chemical/Kconfig drivers/iio/chemical/Makefile drivers/iio/chemical/pms7003.c+351 -01 reply
2/3dt-bindings: add Plantower to the vendor prefixesDocumentation/devicetree/bindings/vendor-prefixes.txt+1 -01 reply
3/3dt-bindings: iio: chemical: pms7003: add device tree supportDocumentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt+20 -01 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/3
2/3R-b
3/3

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

Read the v4 thread

Cover letter [PATCH v4 0/3] add support for PMS7003 PM sensor

This patch series adds support for Plantower PMS7003 PM matter sensor.

Unfortunately datasheet is not available for download from the Plantower website so one needs to find it elsewhere, for instance here:

https://download.kamami.com/p564008-p564008-PMS7003%20series%20data%20manua_English_V2.5.pdf

v4:
* add vendor prefix to set-gpios property

v3:
* fix whitespaces
* drop unused printk format specifier
* make vcc-supply mandatory in dt binding
* use a generic node name (air-pollution-sensor) instead of a sensor model

v2:
* check number of bytes returned from serdev_device_write()
(due to changes in linux 5.0 serdev api)
* add missing pins descriptions to the driver binding
* keep commands in the lookup table
* buffer data and process everything in one go instead of using state machine
* keep pm offset in channel address to simplify reading measurements

Tomasz Duszynski (3):
iio: chemical: add support for Plantower PMS7003 sensor
dt-bindings: add Plantower to the vendor prefixes
dt-bindings: iio: chemical: pms7003: add device tree support

 .../iio/chemical/plantower,pms7003.txt        |  20 ++
 .../devicetree/bindings/vendor-prefixes.txt   |   1 +
 drivers/iio/chemical/Kconfig                  |  10 +
 drivers/iio/chemical/Makefile                 |   1 +
 drivers/iio/chemical/pms7003.c                | 340 ++++++++++++++++++
 5 files changed, 372 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
 create mode 100644 drivers/iio/chemical/pms7003.c

--
2.20.1