Path: blob/master/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
26309 views
# SPDX-License-Identifier: GPL-2.0+1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/vishay,veml6030.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: VEML3235, VEML6030, VEML6035 and VEML7700 Ambient Light Sensors (ALS)78maintainers:9- Rishi Gupta <gupt21@gmail.com>1011description: |12Bindings for the ambient light sensors veml6030 and veml6035 from13Vishay Semiconductors 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 sensors can be found at:22https://www.vishay.com/docs/80131/veml3235.pdf23https://www.vishay.com/docs/84366/veml6030.pdf24https://www.vishay.com/docs/84889/veml6035.pdf25https://www.vishay.com/docs/84286/veml7700.pdf2627properties:28compatible:29enum:30- vishay,veml323531- vishay,veml603032- vishay,veml603533- vishay,veml77003435reg:36maxItems: 13738interrupts:39description:40interrupt mapping for IRQ. Configure with IRQ_TYPE_LEVEL_LOW.41Refer to interrupt-controller/interrupts.txt for generic42interrupt client node bindings.43maxItems: 14445vdd-supply: true4647required:48- compatible49- reg50- vdd-supply5152allOf:53- if:54properties:55compatible:56enum:57- vishay,veml603058then:59properties:60reg:61enum:62- 0x10 # ADDR pin pulled down63- 0x48 # ADDR pin pulled up6465- if:66properties:67compatible:68enum:69- vishay,veml603570then:71properties:72reg:73enum:74- 0x297576- if:77properties:78compatible:79enum:80- vishay,veml323581- vishay,veml770082then:83properties:84reg:85enum:86- 0x1087interrupts: false8889additionalProperties: false9091examples:92- |93#include <dt-bindings/interrupt-controller/irq.h>9495i2c {96#address-cells = <1>;97#size-cells = <0>;9899light-sensor@10 {100compatible = "vishay,veml6030";101reg = <0x10>;102interrupts = <12 IRQ_TYPE_LEVEL_LOW>;103vdd-supply = <&vdd>;104};105};106...107108109