xref: /freebsd/sys/contrib/device-tree/Bindings/iio/light/veml6030.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1# SPDX-License-Identifier: GPL-2.0+
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/veml6030.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: VEML6030 Ambient Light Sensor (ALS)
8
9maintainers:
10  - Rishi Gupta <gupt21@gmail.com>
11
12description: |
13  Bindings for the ambient light sensor veml6030 from Vishay
14  Semiconductors over an i2c interface.
15
16  Irrespective of whether interrupt is used or not, application
17  can get the ALS and White channel reading from IIO raw interface.
18
19  If the interrupts are used, application will receive an IIO event
20  whenever configured threshold is crossed.
21
22  Specifications about the sensor can be found at:
23    https://www.vishay.com/docs/84366/veml6030.pdf
24
25properties:
26  compatible:
27    enum:
28      - vishay,veml6030
29
30  reg:
31    description:
32      I2C address of the device.
33    enum:
34      - 0x10 # ADDR pin pulled down
35      - 0x48 # ADDR pin pulled up
36
37  interrupts:
38    description:
39      interrupt mapping for IRQ. Configure with IRQ_TYPE_LEVEL_LOW.
40      Refer to interrupt-controller/interrupts.txt for generic
41      interrupt client node bindings.
42    maxItems: 1
43
44required:
45  - compatible
46  - reg
47
48additionalProperties: false
49
50examples:
51  - |
52    #include <dt-bindings/interrupt-controller/irq.h>
53
54    i2c {
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        light-sensor@10 {
59                compatible = "vishay,veml6030";
60                reg = <0x10>;
61                interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
62        };
63    };
64...
65