Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: light: veml6030: add veml6035

The veml6035 is a similar ambient light sensor to the veml6030, and
from the bindings point of view, it shares the same properties. Its
only difference in that respect is a different I2C address.

Estend the existing bindings to support the veml6035 ALS.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241001-veml6035-v3-8-d789f6ff147c@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Javier Carrasco and committed by
Jonathan Cameron
f1bfc1c9 e980726d

+31 -9
+31 -9
Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
··· 4 4 $id: http://devicetree.org/schemas/iio/light/vishay,veml6030.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: VEML6030 Ambient Light Sensor (ALS) 7 + title: VEML6030 and VEML6035 Ambient Light Sensors (ALS) 8 8 9 9 maintainers: 10 10 - Rishi Gupta <gupt21@gmail.com> 11 11 12 12 description: | 13 - Bindings for the ambient light sensor veml6030 from Vishay 14 - Semiconductors over an i2c interface. 13 + Bindings for the ambient light sensors veml6030 and veml6035 from 14 + Vishay Semiconductors over an i2c interface. 15 15 16 16 Irrespective of whether interrupt is used or not, application 17 17 can get the ALS and White channel reading from IIO raw interface. ··· 19 19 If the interrupts are used, application will receive an IIO event 20 20 whenever configured threshold is crossed. 21 21 22 - Specifications about the sensor can be found at: 22 + Specifications about the sensors can be found at: 23 23 https://www.vishay.com/docs/84366/veml6030.pdf 24 + https://www.vishay.com/docs/84889/veml6035.pdf 24 25 25 26 properties: 26 27 compatible: 27 28 enum: 28 29 - vishay,veml6030 30 + - vishay,veml6035 29 31 30 32 reg: 31 - description: 32 - I2C address of the device. 33 - enum: 34 - - 0x10 # ADDR pin pulled down 35 - - 0x48 # ADDR pin pulled up 33 + maxItems: 1 36 34 37 35 interrupts: 38 36 description: ··· 45 47 - compatible 46 48 - reg 47 49 - vdd-supply 50 + 51 + allOf: 52 + - if: 53 + properties: 54 + compatible: 55 + enum: 56 + - vishay,veml6030 57 + then: 58 + properties: 59 + reg: 60 + enum: 61 + - 0x10 # ADDR pin pulled down 62 + - 0x48 # ADDR pin pulled up 63 + 64 + - if: 65 + properties: 66 + compatible: 67 + enum: 68 + - vishay,veml6035 69 + then: 70 + properties: 71 + reg: 72 + enum: 73 + - 0x29 48 74 49 75 additionalProperties: false 50 76