linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: chemical: pms7003: add other supported sensors
@ 2019-02-17 19:22 Tomasz Duszynski
  2019-02-17 19:22 ` [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list Tomasz Duszynski
  2019-02-17 19:22 ` [PATCH 2/2] dt-bindings: " Tomasz Duszynski
  0 siblings, 2 replies; 5+ messages in thread
From: Tomasz Duszynski @ 2019-02-17 19:22 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, devicetree, Tomasz Duszynski

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


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

* [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list
  2019-02-17 19:22 [PATCH 0/2] iio: chemical: pms7003: add other supported sensors Tomasz Duszynski
@ 2019-02-17 19:22 ` Tomasz Duszynski
  2019-02-20 10:52   ` Jonathan Cameron
  2019-02-17 19:22 ` [PATCH 2/2] dt-bindings: " Tomasz Duszynski
  1 sibling, 1 reply; 5+ messages in thread
From: Tomasz Duszynski @ 2019-02-17 19:22 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, devicetree, Tomasz Duszynski

Add other sensors to the compatible list.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
---
 drivers/iio/chemical/pms7003.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/iio/chemical/pms7003.c b/drivers/iio/chemical/pms7003.c
index db8e7b2327b3..23c9ab252470 100644
--- a/drivers/iio/chemical/pms7003.c
+++ b/drivers/iio/chemical/pms7003.c
@@ -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);
-- 
2.20.1


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

* [PATCH 2/2] dt-bindings: iio: chemical: pms7003: extend supported sensors list
  2019-02-17 19:22 [PATCH 0/2] iio: chemical: pms7003: add other supported sensors Tomasz Duszynski
  2019-02-17 19:22 ` [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list Tomasz Duszynski
@ 2019-02-17 19:22 ` Tomasz Duszynski
  2019-02-20 10:54   ` Jonathan Cameron
  1 sibling, 1 reply; 5+ messages in thread
From: Tomasz Duszynski @ 2019-02-17 19:22 UTC (permalink / raw)
  To: linux-iio; +Cc: linux-kernel, devicetree, Tomasz Duszynski

Add other sensors to the compatible list.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
---
 .../bindings/iio/chemical/plantower,pms7003.txt           | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
index 7b5f06f324c8..c52ea2126eaa 100644
--- a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
+++ b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
@@ -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:
-- 
2.20.1


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

* Re: [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list
  2019-02-17 19:22 ` [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list Tomasz Duszynski
@ 2019-02-20 10:52   ` Jonathan Cameron
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2019-02-20 10:52 UTC (permalink / raw)
  To: Tomasz Duszynski; +Cc: linux-iio, linux-kernel, devicetree

On Sun, 17 Feb 2019 20:22:12 +0100
Tomasz Duszynski <tduszyns@gmail.com> wrote:

> Add other sensors to the compatible list.
> 
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Applied to the togreg branch of iio.git and pushed out as
testing for the autobuilders to play with it.

Thanks,

Jonathan

> ---
>  drivers/iio/chemical/pms7003.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/iio/chemical/pms7003.c b/drivers/iio/chemical/pms7003.c
> index db8e7b2327b3..23c9ab252470 100644
> --- a/drivers/iio/chemical/pms7003.c
> +++ b/drivers/iio/chemical/pms7003.c
> @@ -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);


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

* Re: [PATCH 2/2] dt-bindings: iio: chemical: pms7003: extend supported sensors list
  2019-02-17 19:22 ` [PATCH 2/2] dt-bindings: " Tomasz Duszynski
@ 2019-02-20 10:54   ` Jonathan Cameron
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2019-02-20 10:54 UTC (permalink / raw)
  To: Tomasz Duszynski; +Cc: linux-iio, linux-kernel, devicetree

On Sun, 17 Feb 2019 20:22:13 +0100
Tomasz Duszynski <tduszyns@gmail.com> wrote:

> Add other sensors to the compatible list.
> 
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Applied,  This will miss the coming merge window, so will be a while
before it hits mainline.

Thanks,

Jonathan

> ---
>  .../bindings/iio/chemical/plantower,pms7003.txt           | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
> index 7b5f06f324c8..c52ea2126eaa 100644
> --- a/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
> +++ b/Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.txt
> @@ -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:


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

end of thread, other threads:[~2019-02-20 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-17 19:22 [PATCH 0/2] iio: chemical: pms7003: add other supported sensors Tomasz Duszynski
2019-02-17 19:22 ` [PATCH 1/2] iio: chemical: pms7003: extend supported sensors list Tomasz Duszynski
2019-02-20 10:52   ` Jonathan Cameron
2019-02-17 19:22 ` [PATCH 2/2] dt-bindings: " Tomasz Duszynski
2019-02-20 10:54   ` 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).