Sensirion SCD30 carbon dioxide sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/chemical/sensirion,scd30.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomasz Duszynski <tomasz.duszynski@octakon.com>"
Air quality sensor capable of measuring co2 concentration, temperature and relative humidity.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sensirion,scd30"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
sensirion,sel-gpios — not listed as required here #
GPIO connected to the SEL line
Maximum number of items (maxItems): 1
sensirion,pwm-gpios — not listed as required here #
GPIO connected to the PWM line
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
# include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
co2-sensor@61 {
compatible = "sensirion,scd30";
reg = <0x61>;
vdd-supply = <&vdd>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
# include <dt-bindings/interrupt-controller/irq.h>
serial {
co2-sensor {
compatible = "sensirion,scd30";
vdd-supply = <&vdd>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)