iio: chemical: pms7003: add other supported sensors
Tomasz Duszynski
maintainercover iio: chemical: pms7003: add other supported sensors
This series extends the supported sensors list with a new ones belonging to the PMSxxyy family. All share the very same binary protocol and are capable of measuring PM1.0, PM2.5 and PM10 dust particles.
Tomasz Duszynski (2):
iio: chemical: pms7003: extend supported sensors list
dt-bindings: iio: chemical: pms7003: extend supported sensors list
.../bindings/iio/chemical/plantower,pms7003.txt | 8 +++++++- drivers/iio/chemical/pms7003.c | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-)
--
2.20.1
Tomasz Duszynski
maintainerPATCH 1/2 iio: chemical: pms7003: extend supported sensors list
Add other sensors to the compatible list.
--- drivers/iio/chemical/pms7003.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/iio/chemical/pms7003.c +5 -0
@@ -321,7 +321,12 @@ static int pms7003_probe(struct serdev_device *serdev) }static const struct of_device_id pms7003_of_match[] = { + { .compatible ="plantower,pms1003" }, + { .compatible ="plantower,pms3003" }, + { .compatible ="plantower,pms5003" }, + { .compatible ="plantower,pms6003" }, { .compatible ="plantower,pms7003" }, + { .compatible ="plantower,pmsa003" }, { } };MODULE_DEVICE_TABLE (of, pms7003_of_match);
Signature · 1 line
2.20.1
Jonathan Cameron
AppliedRe: [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list
Quoted 3 lines · On Sun, 17 Feb 2019 20:22:12 +0100 Tomasz Duszynski <[email protected]> wrote:
Add other sensors to the compatible list.
Signed-off-by Tomasz Duszynski <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.
Thanks,
Jonathan
Quoted 21 lines
--- drivers/iio/chemical/pms7003.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/iio/chemical/pms7003.c +5
-0@@ -321,7 +321,12 @@ static int pms7003_probe(struct serdev_device *serdev) }static const struct of_device_id pms7003_of_match[] = { + { .compatible ="plantower,pms1003" }, + { .compatible ="plantower,pms3003" }, + { .compatible ="plantower,pms5003" }, + { .compatible ="plantower,pms6003" }, { .compatible ="plantower,pms7003" }, + { .compatible ="plantower,pmsa003" }, { } };MODULE_DEVICE_TABLE (of, pms7003_of_match);
Tomasz Duszynski
maintainerPATCH 2/2 dt-bindings: iio: chemical: pms7003: extend supported sensors list
In reply to Tomasz DuszynskiAdd other sensors to the compatible list.
--- .../bindings/iio/chemical/plantower,pms7003.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt +7 -1
@@ -1,7 +1,13 @@ * Plantower PMS7003 particulate matter sensor Required properties: -- compatible: must be "plantower,pms7003" +- compatible: must one of: + "plantower,pms1003" + "plantower,pms3003" + "plantower,pms5003" + "plantower,pms6003" + "plantower,pms7003" + "plantower,pmsa003" - vcc-supply: phandle to the regulator that provides power to the sensor Optional properties:
Signature · 1 line
2.20.1
Jonathan Cameron
AppliedRe: [PATCH 2/2] dt-bindings: iio: chemical: pms7003: extend supported sensors list
Quoted 3 lines · On Sun, 17 Feb 2019 20:22:13 +0100 Tomasz Duszynski <[email protected]> wrote:
Add other sensors to the compatible list.
Signed-off-by Tomasz Duszynski <[email protected]>
Applied, This will miss the coming merge window, so will be a while before it hits mainline.
Thanks,
Jonathan
Quoted 23 lines
--- .../bindings/iio/chemical/plantower,pms7003.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt +7
-1@@ -1,7 +1,13 @@ * Plantower PMS7003 particulate matter sensor Required properties: -- compatible: must be "plantower,pms7003" +- compatible: must one of: + "plantower,pms1003" + "plantower,pms3003" + "plantower,pms5003" + "plantower,pms6003" + "plantower,pms7003" + "plantower,pmsa003" - vcc-supply: phandle to the regulator that provides power to the sensor Optional properties: