diff options
author | Robert Eshleman <bobbyeshleman@gmail.com> | 2019-01-31 07:49:16 -0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-02-02 16:01:22 +0000 |
commit | 1e65b2f1f66358676a07c6352a1ff323f7c9fa5a (patch) | |
tree | 1621b22e3655849f55fa1283f8373420a183d823 /Documentation/devicetree/bindings/iio/light | |
parent | 6aef699a7d7e53164eaac54da57012c8440f1485 (diff) | |
download | talos-op-linux-1e65b2f1f66358676a07c6352a1ff323f7c9fa5a.tar.gz talos-op-linux-1e65b2f1f66358676a07c6352a1ff323f7c9fa5a.zip |
dt-bindings: iio: light: Add max44009
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>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/light')
-rw-r--r-- | Documentation/devicetree/bindings/iio/light/max44009.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/light/max44009.txt b/Documentation/devicetree/bindings/iio/light/max44009.txt new file mode 100644 index 000000000000..4a98848e35c0 --- /dev/null +++ b/Documentation/devicetree/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>; +}; |