Texas Instruments OPT3001 Ambient Light Sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/light/ti,opt3001.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Dannenberg <dannenberg@ti.com>"
The device supports interrupt-driven and interrupt-less operation, depending on whether an interrupt property has been populated into the DT.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,opt3001", "ti,opt3002"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Should be configured with type IRQ_TYPE_EDGE_FALLING
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
light-sensor@44 {
compatible = "ti,opt3001";
reg = <0x44>;
interrupt-parent = <&gpio1>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)