diff options
author | Parthiban Nallathambi <pn@denx.de> | 2018-11-07 20:08:21 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-11-16 21:32:29 +0300 |
commit | 74a257a0b5f0118b183a3be4b35530a30e30de48 (patch) | |
tree | 7d1ed0a7af9e2772123faced4b625323978058b4 /Documentation/devicetree/bindings/iio/light | |
parent | 55707294c4eb0d61054468ecccdddef5c5151fc0 (diff) | |
download | linux-74a257a0b5f0118b183a3be4b35530a30e30de48.tar.xz |
iio: light: Add device tree binding for vishay vcnl4035
Adding device tree binding for vcnl4035 and vendor
prefix for Vishay Intertechnology
Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Reviewed-by: Rob Herring <robh@kernel.org>
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/vcnl4035.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/light/vcnl4035.txt b/Documentation/devicetree/bindings/iio/light/vcnl4035.txt new file mode 100644 index 000000000000..c07c7f052556 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/vcnl4035.txt @@ -0,0 +1,18 @@ +VISHAY VCNL4035 - Ambient Light and proximity sensor + +Link to datasheet: https://www.vishay.com/docs/84251/vcnl4035x01.pdf + +Required properties: + + -compatible: should be "vishay,vcnl4035" + -reg: I2C address of the sensor, should be 0x60 + -interrupts: interrupt mapping for GPIO IRQ (level active low) + +Example: + +light-sensor@60 { + compatible = "vishay,vcnl4035"; + reg = <0x60>; + interrupt-parent = <&gpio4>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; +}; |