Vishay VEML6046X00 High accuracy RGBIR color sensor

Schema identifier ($id): "http://devicetree.org/schemas/iio/light/vishay,veml6046x00.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andreas Klinger <ak@it-klinger.de>"

VEML6046X00 datasheet at https://www.vishay.com/docs/80173/veml6046x00.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "vishay,veml6046x00"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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>;

    color-sensor@29 {
        compatible = "vishay,veml6046x00";
        reg = <0x29>;
        vdd-supply = <&vdd_reg>;
        interrupt-parent = <&gpio2>;
        interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page