54 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---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 Sensor8 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,ccs81119 reg:20 maxItems: 121 22 reset-gpios:23 description: GPIO connected to the nRESET line. This is an active low24 input to CCS811.25 maxItems: 126 27 wakeup-gpios:28 description: GPIO connected to the nWAKE line. This is an active low29 input to CCS811.30 maxItems: 131 32required:33 - compatible34 - reg35 36additionalProperties: false37 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