diff mbox series

[v3,3/5] dt-bindings: iio: light: add vcnl4000 devicetree bindings

Message ID 20190321154047.23236-4-angus@akkea.ca (mailing list archive)
State New, archived
Headers show
Series Add a VCNL4040 light and proximity driver | expand

Commit Message

Angus Ainslie March 21, 2019, 3:40 p.m. UTC
Document the vishay VCNL4000 devicetree bindings.

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
---
 .../bindings/iio/light/vcnl4000.txt           | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4000.txt

Comments

Jonathan Cameron March 24, 2019, 5:20 p.m. UTC | #1
On Thu, 21 Mar 2019 08:40:45 -0700
"Angus Ainslie (Purism)" <angus@akkea.ca> wrote:

> Document the vishay VCNL4000 devicetree bindings.
> 
> Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Fairly straight forward, so I'll take this without explicitly waiting
for a dt ack.  Still plenty of time to add one if Rob or anyone else
does want to take a look.

Applied to the togreg branch of iio.git and pushed out as testing

Thanks,

Jonathan

> ---
>  .../bindings/iio/light/vcnl4000.txt           | 22 +++++++++++++++++++
>  1 file changed, 22 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4000.txt
> 
> diff --git a/Documentation/devicetree/bindings/iio/light/vcnl4000.txt b/Documentation/devicetree/bindings/iio/light/vcnl4000.txt
> new file mode 100644
> index 000000000000..4a9d558a412a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/vcnl4000.txt
> @@ -0,0 +1,22 @@
> +VISHAY VCNL4000 -  Ambient Light and proximity sensor
> +
> +This driver supports the VCNL4000/10/20 and VCNL4200 chips
> +
> +Required properties:
> +
> +	-compatible: must be one of :
> +        vishay,vcnl4000
> +        vishay,vcnl4010
> +        vishay,vcnl4020
> +        vishay,vcnl4200
> +
> +	-reg: I2C address of the sensor, should be one from below based on the model:
> +        0x13
> +        0x51
> +
> +Example:
> +
> +light-sensor@51 {
> +	compatible = "vishay,vcnl4200";
> +	reg = <0x51>;
> +};
Rob Herring (Arm) March 28, 2019, 5:53 p.m. UTC | #2
On Thu, 21 Mar 2019 08:40:45 -0700, "Angus Ainslie (Purism)" wrote:
> Document the vishay VCNL4000 devicetree bindings.
> 
> Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
> ---
>  .../bindings/iio/light/vcnl4000.txt           | 22 +++++++++++++++++++
>  1 file changed, 22 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4000.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/light/vcnl4000.txt b/Documentation/devicetree/bindings/iio/light/vcnl4000.txt
new file mode 100644
index 000000000000..4a9d558a412a
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/vcnl4000.txt
@@ -0,0 +1,22 @@ 
+VISHAY VCNL4000 -  Ambient Light and proximity sensor
+
+This driver supports the VCNL4000/10/20 and VCNL4200 chips
+
+Required properties:
+
+	-compatible: must be one of :
+        vishay,vcnl4000
+        vishay,vcnl4010
+        vishay,vcnl4020
+        vishay,vcnl4200
+
+	-reg: I2C address of the sensor, should be one from below based on the model:
+        0x13
+        0x51
+
+Example:
+
+light-sensor@51 {
+	compatible = "vishay,vcnl4200";
+	reg = <0x51>;
+};