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