0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/chemical/ams,ccs811.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: AMS CCS811 VOC Sensor
0008
0009 maintainers:
0010 - Narcisa Vasile <narcisaanamaria12@gmail.com>
0011
0012 description: |
0013 Ultra-Low Power Digital Gas Sensor for Monitoring Indoor Air Quality.
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - ams,ccs811
0019 reg:
0020 maxItems: 1
0021
0022 reset-gpios:
0023 description: GPIO connected to the nRESET line. This is an active low
0024 input to CCS811.
0025 maxItems: 1
0026
0027 wakeup-gpios:
0028 description: GPIO connected to the nWAKE line. This is an active low
0029 input to CCS811.
0030 maxItems: 1
0031
0032 required:
0033 - compatible
0034 - reg
0035
0036 additionalProperties: false
0037
0038 examples:
0039 - |
0040 #include <dt-bindings/gpio/gpio.h>
0041 i2c {
0042 #address-cells = <1>;
0043 #size-cells = <0>;
0044
0045 voc@5b {
0046 compatible = "ams,ccs811";
0047 reg = <0x5b>;
0048 reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>;
0049 wakeup-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
0050 };
0051 };
0052
0053 ...