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

dt-bindings: iio: light: veml6046x00: add color sensor

Add a new compatible for Vishay high accuracy RGBIR color sensor
veml6046x00.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Link: https://patch.msgid.link/20250728075447.338725-2-ak@it-klinger.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andreas Klinger and committed by
Jonathan Cameron
7e2d03d0 65e8202f

+51
+51
Documentation/devicetree/bindings/iio/light/vishay,veml6046x00.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/light/vishay,veml6046x00.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Vishay VEML6046X00 High accuracy RGBIR color sensor 8 + 9 + maintainers: 10 + - Andreas Klinger <ak@it-klinger.de> 11 + 12 + description: 13 + VEML6046X00 datasheet at https://www.vishay.com/docs/80173/veml6046x00.pdf 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - vishay,veml6046x00 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + vdd-supply: true 24 + 25 + interrupts: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - vdd-supply 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + #include <dt-bindings/interrupt-controller/irq.h> 38 + 39 + i2c { 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 + 43 + color-sensor@29 { 44 + compatible = "vishay,veml6046x00"; 45 + reg = <0x29>; 46 + vdd-supply = <&vdd_reg>; 47 + interrupt-parent = <&gpio2>; 48 + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; 49 + }; 50 + }; 51 + ...