1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/chemical/ams,ccs811.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: AMS CCS811 VOC Sensor
8
9maintainers:
10  - Narcisa Vasile <narcisaanamaria12@gmail.com>
11
12description: |
13  Ultra-Low Power Digital Gas Sensor for Monitoring Indoor Air Quality.
14
15properties:
16  compatible:
17    enum:
18      - ams,ccs811
19  reg:
20    maxItems: 1
21
22  reset-gpios:
23    description: GPIO connected to the nRESET line. This is an active low
24                 input to CCS811.
25    maxItems: 1
26
27  wakeup-gpios:
28    description: GPIO connected to the nWAKE line. This is an active low
29                 input to CCS811.
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35
36additionalProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/gpio/gpio.h>
41    i2c {
42      #address-cells = <1>;
43      #size-cells = <0>;
44
45      voc@5b {
46        compatible = "ams,ccs811";
47        reg = <0x5b>;
48        reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>;
49        wakeup-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
50      };
51    };
52
53...
54