Path: blob/main/sys/contrib/device-tree/Bindings/iio/light/veml6030.yaml
48406 views
# SPDX-License-Identifier: GPL-2.0+1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/veml6030.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: VEML6030 Ambient Light Sensor (ALS)78maintainers:9- Rishi Gupta <gupt21@gmail.com>1011description: |12Bindings for the ambient light sensor veml6030 from Vishay13Semiconductors over an i2c interface.1415Irrespective of whether interrupt is used or not, application16can get the ALS and White channel reading from IIO raw interface.1718If the interrupts are used, application will receive an IIO event19whenever configured threshold is crossed.2021Specifications about the sensor can be found at:22https://www.vishay.com/docs/84366/veml6030.pdf2324properties:25compatible:26enum:27- vishay,veml60302829reg:30description:31I2C address of the device.32enum:33- 0x10 # ADDR pin pulled down34- 0x48 # ADDR pin pulled up3536interrupts:37description:38interrupt mapping for IRQ. Configure with IRQ_TYPE_LEVEL_LOW.39Refer to interrupt-controller/interrupts.txt for generic40interrupt client node bindings.41maxItems: 14243required:44- compatible45- reg4647additionalProperties: false4849examples:50- |51#include <dt-bindings/interrupt-controller/irq.h>5253i2c {54#address-cells = <1>;55#size-cells = <0>;5657light-sensor@10 {58compatible = "vishay,veml6030";59reg = <0x10>;60interrupts = <12 IRQ_TYPE_LEVEL_LOW>;61};62};63...646566