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