AMS AS73211 JENCOLOR(R) Digital XYZ Sensor and AMS AS7331 UV Sensor

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

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

Maintainers (maintainers): "Christian Eggers <ceggers@arri.de>"

AMS AS73211 XYZ True Color Sensor with I2C Interface https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616df AMS AS7331 UVA, UVB and UVC Sensor with I2C Interface https://ams.com/documents/20143/9106314/AS7331_DS001047_4-00.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ams,as73211", "ams,as7331"

reg — required here #

I2C address of the device (0x74...0x77).

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Interrupt specifier for the READY interrupt generated by the device.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

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

    as73211@74 {
        compatible = "ams,as73211";
        reg = <0x74>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_color_sensor>;
        interrupt-parent = <&gpio2>;
        interrupts = <19 IRQ_TYPE_EDGE_RISING>; /* READY */
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page