summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/chemical/winsen,mhz19b.yaml
blob: 2a6ddb33f16392834aa2a6b8ee28966fd4611ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/chemical/winsen,mhz19b.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MHZ19B CO2 sensor

maintainers:
  - Gyeyoung Baek <gye976@gmail.com>

properties:
  compatible:
    const: winsen,mhz19b

  vin-supply:
    description: Regulator that provides power to the sensor

required:
  - compatible
  - vin-supply

additionalProperties: false

examples:
  - |
    serial {
      co2-sensor {
        compatible = "winsen,mhz19b";
        vin-supply = <&vdd>;
      };
    };
...