Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/chemical/sensirion,scd30.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Sensirion SCD30 carbon dioxide sensor
0008 
0009 maintainers:
0010   - Tomasz Duszynski <tomasz.duszynski@octakon.com>
0011 
0012 description: |
0013   Air quality sensor capable of measuring co2 concentration, temperature
0014   and relative humidity.
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - sensirion,scd30
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   interrupts:
0025     maxItems: 1
0026 
0027   vdd-supply: true
0028 
0029   sensirion,sel-gpios:
0030     description: GPIO connected to the SEL line
0031     maxItems: 1
0032 
0033   sensirion,pwm-gpios:
0034     description: GPIO connected to the PWM line
0035     maxItems: 1
0036 
0037 required:
0038   - compatible
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   - |
0044     # include <dt-bindings/interrupt-controller/irq.h>
0045     i2c {
0046       #address-cells = <1>;
0047       #size-cells = <0>;
0048 
0049       co2-sensor@61 {
0050         compatible = "sensirion,scd30";
0051         reg = <0x61>;
0052         vdd-supply = <&vdd>;
0053         interrupt-parent = <&gpio0>;
0054         interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0055       };
0056     };
0057   - |
0058     # include <dt-bindings/interrupt-controller/irq.h>
0059     serial {
0060       co2-sensor {
0061         compatible = "sensirion,scd30";
0062         vdd-supply = <&vdd>;
0063         interrupt-parent = <&gpio0>;
0064         interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0065       };
0066     };
0067 
0068 ...