summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/iio/light/max44009.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dts/Bindings/iio/light/max44009.txt')
-rw-r--r--dts/Bindings/iio/light/max44009.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/dts/Bindings/iio/light/max44009.txt b/dts/Bindings/iio/light/max44009.txt
new file mode 100644
index 0000000..4a98848
--- /dev/null
+++ b/dts/Bindings/iio/light/max44009.txt
@@ -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>;
+};