Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/light/ti,opt4060.yaml
26309 views
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
...
52
53