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: Document TI OPT4060 RGBW sensor

Add devicetree bindings for the OPT4060 RGBW color sensor.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Per-Daniel Olsson <perdaniel.olsson@axis.com>
Link: https://patch.msgid.link/20241218104836.2784523-2-perdaniel.olsson@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Per-Daniel Olsson and committed by
Jonathan Cameron
8354dc89 e439c724

+51
+51
Documentation/devicetree/bindings/iio/light/ti,opt4060.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/light/ti,opt4060.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments OPT4060 RGBW Color Sensor 8 + 9 + maintainers: 10 + - Per-Daniel Olsson <perdaniel.olsson@axis.com> 11 + 12 + description: 13 + Texas Instrument RGBW high resolution color sensor over I2C. 14 + https://www.ti.com/lit/gpn/opt4060 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - ti,opt4060 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + vdd-supply: true 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - vdd-supply 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/interrupt-controller/irq.h> 39 + i2c { 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 + 43 + light-sensor@44 { 44 + compatible = "ti,opt4060"; 45 + reg = <0x44>; 46 + vdd-supply = <&vdd_reg>; 47 + interrupt-parent = <&gpio5>; 48 + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 49 + }; 50 + }; 51 + ...