AMS CCS811 VOC Sensor

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

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

Maintainers (maintainers): "Narcisa Vasile <narcisaanamaria12@gmail.com>"

Ultra-Low Power Digital Gas Sensor for Monitoring Indoor Air Quality.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ams,ccs811"

reg — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

GPIO connected to the nRESET line. This is an active low input to CCS811.

Maximum number of items (maxItems): 1

wakeup-gpios — not listed as required here #

GPIO connected to the nWAKE line. This is an active low input to CCS811.

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/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  voc@5b {
    compatible = "ams,ccs811";
    reg = <0x5b>;
    reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>;
    wakeup-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page