Skip to contentSkip to conversation

iio: chemical: add dsm501 particle sensor driver bindings

PATCH In review Tomasz Duszynski 2 participants 2 messages Feb 5, 2017 – Feb 8, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/4 iio: chemical: add dsm501 particle sensor driver bindings

This patch adds bindings for dsm501 particle sensor driver.

---
 .../devicetree/bindings/iio/chemical/dsm501.txt          | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/chemical/dsm501.txt
Documentation/devicetree/bindings/iio/chemical/dsm501.txt new file +16 -0
new file mode 100644
index 000000000000..918c55c4c401
@@ -0,0 +1,16 @@
+* DSM501 particle sensor
+
+Required properties:
+
+- compatible: should be one of:
+	      "samyoung,dsm501"
+	      "shinyei,ppd42ns"
+- gpios: should specify the GPIO connected to the sensor's data line, see
+  	 "gpios property" in Documentation/devicetree/bindings/gpio/gpio.txt
+
+Example:
+
+dsm501 {
+	compatible = "samyoung,dsm501";
+	gpios = <&gpio1 28 0>;
+};
Signature · 6 lines
2.11.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Acked-by on v1 4/4
#1 lore raw
Quoted 14 lines · Tomasz Duszynski

This patch adds bindings for dsm501 particle sensor driver.

---
 .../devicetree/bindings/iio/chemical/dsm501.txt          | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/chemical/dsm501.txt
Documentation/devicetree/bindings/iio/chemical/dsm501.txt new file +0 -0
new file mode 100644
index 000000000000..918c55c4c401

Documentation/devicetree/bindings/iio/chemical/dsm501.txt line 9

Quoted 9 lines
Documentation/devicetree/bindings/iio/chemical/dsm501.txt new file +9 -0
@@ -0,0 +1,16 @@
+* DSM501 particle sensor
+
+Required properties:
+
+- compatible: should be one of:
+	      "samyoung,dsm501"
+	      "shinyei,ppd42ns"
+- gpios: should specify the GPIO connected to the sensor's data line, see
+  	 "gpios property" in Documentation/devicetree/bindings/gpio/gpio.txt

data-gpios would be preferred. With that,

Quoted 10 lines
Documentation/devicetree/bindings/iio/chemical/dsm501.txt new file +7 -0
+
+Example:
+
+dsm501 {
+	compatible = "samyoung,dsm501";
+	gpios = <&gpio1 28 0>;
+};
Signature · 1 line
2.11.1