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