Texas Instruments OPT4060 RGBW Color Sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/ti,opt4060.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Per-Daniel Olsson <perdaniel.olsson@axis.com>"
Texas Instrument RGBW high resolution color sensor over I2C. https://www.ti.com/lit/gpn/opt4060
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,opt4060"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@44 {
compatible = "ti,opt4060";
reg = <0x44>;
vdd-supply = <&vdd_reg>;
interrupt-parent = <&gpio5>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)