GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / iio / chemical / aosong,ags02ma.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/chemical/aosong,ags02ma.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Aosong AGS02MA VOC Sensor
8
9 description: |
10   AGS02MA is an TVOC (Total Volatile Organic Compounds) i2c sensor with default
11   address of 0x1a.
12
13   Datasheet:
14     https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf
15
16 maintainers:
17   - Anshul Dalal <anshulusr@gmail.com>
18
19 properties:
20   compatible:
21     enum:
22       - aosong,ags02ma
23
24   reg:
25     maxItems: 1
26
27   vdd-supply: true
28
29 required:
30   - compatible
31   - reg
32   - vdd-supply
33
34 additionalProperties: false
35
36 examples:
37   - |
38     i2c {
39         #address-cells = <1>;
40         #size-cells = <0>;
41
42         voc-sensor@1a {
43             compatible = "aosong,ags02ma";
44             reg = <0x1a>;
45             vdd-supply = <&vdd_regulator>;
46         };
47     };