xref: /freebsd/sys/contrib/device-tree/Bindings/iio/light/ti,opt4060.yaml (revision 2846c90520eb4cc74e24d586a0ea0f4a0006bc73)
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
7title: Texas Instruments OPT4060 RGBW Color Sensor
8
9maintainers:
10  - Per-Daniel Olsson <perdaniel.olsson@axis.com>
11
12description:
13  Texas Instrument RGBW high resolution color sensor over I2C.
14  https://www.ti.com/lit/gpn/opt4060
15
16properties:
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
29required:
30  - compatible
31  - reg
32  - vdd-supply
33
34additionalProperties: false
35
36examples:
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...
52