dt-bindings: iio: light: Add max44009
authorRobert Eshleman <bobbyeshleman@gmail.com>
Thu, 31 Jan 2019 15:49:16 +0000 (07:49 -0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Feb 2019 16:01:22 +0000 (16:01 +0000)
Adds device tree bindings for the max44009 light sensor.

Signed-off-by: Robert Eshleman <bobbyeshleman@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/light/max44009.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/iio/light/max44009.txt b/Documentation/devicetree/bindings/iio/light/max44009.txt
new file mode 100644 (file)
index 0000000..4a98848
--- /dev/null
@@ -0,0 +1,24 @@
+* MAX44009 Ambient Light Sensor
+
+Required properties:
+
+- compatible: should be "maxim,max44009"
+- reg: the I2C address of the device (default is <0x4a>)
+
+Optional properties:
+
+- interrupts: interrupt mapping for GPIO IRQ. Should be configured with
+  IRQ_TYPE_EDGE_FALLING.
+
+Refer to interrupt-controller/interrupts.txt for generic interrupt client
+node bindings.
+
+Example:
+
+light-sensor@4a {
+       compatible = "maxim,max44009";
+       reg = <0x4a>;
+
+       interrupt-parent = <&gpio1>;
+       interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
+};