Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/chemical/ams,ccs811.yaml
26309 views
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
7
title: AMS CCS811 VOC Sensor
8
9
maintainers:
10
- Narcisa Vasile <narcisaanamaria12@gmail.com>
11
12
description: |
13
Ultra-Low Power Digital Gas Sensor for Monitoring Indoor Air Quality.
14
15
properties:
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
32
required:
33
- compatible
34
- reg
35
36
additionalProperties: false
37
38
examples:
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
55