0001 # SPDX-License-Identifier: GPL-2.0+
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/veml6030.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: VEML6030 Ambient Light Sensor (ALS)
0008
0009 maintainers:
0010 - Rishi Gupta <gupt21@gmail.com>
0011
0012 description: |
0013 Bindings for the ambient light sensor veml6030 from Vishay
0014 Semiconductors over an i2c interface.
0015
0016 Irrespective of whether interrupt is used or not, application
0017 can get the ALS and White channel reading from IIO raw interface.
0018
0019 If the interrupts are used, application will receive an IIO event
0020 whenever configured threshold is crossed.
0021
0022 Specifications about the sensor can be found at:
0023 https://www.vishay.com/docs/84366/veml6030.pdf
0024
0025 properties:
0026 compatible:
0027 enum:
0028 - vishay,veml6030
0029
0030 reg:
0031 description:
0032 I2C address of the device.
0033 enum:
0034 - 0x10 # ADDR pin pulled down
0035 - 0x48 # ADDR pin pulled up
0036
0037 interrupts:
0038 description:
0039 interrupt mapping for IRQ. Configure with IRQ_TYPE_LEVEL_LOW.
0040 Refer to interrupt-controller/interrupts.txt for generic
0041 interrupt client node bindings.
0042 maxItems: 1
0043
0044 required:
0045 - compatible
0046 - reg
0047
0048 additionalProperties: false
0049
0050 examples:
0051 - |
0052 #include <dt-bindings/interrupt-controller/irq.h>
0053
0054 i2c {
0055 #address-cells = <1>;
0056 #size-cells = <0>;
0057
0058 light-sensor@10 {
0059 compatible = "vishay,veml6030";
0060 reg = <0x10>;
0061 interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
0062 };
0063 };
0064 ...