xref: /freebsd/sys/contrib/device-tree/Bindings/iio/chemical/sciosense,ens160.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/chemical/sciosense,ens160.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: ScioSense ENS160 multi-gas sensor
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Gustavo Silva <gustavograzs@gmail.com>
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotdescription: |
13*0e8011faSEmmanuel Vadot  Digital Multi-Gas Sensor for Monitoring Indoor Air Quality.
14*0e8011faSEmmanuel Vadot
15*0e8011faSEmmanuel Vadot  Datasheet:
16*0e8011faSEmmanuel Vadot    https://www.sciosense.com/wp-content/uploads/2023/12/ENS160-Datasheet.pdf
17*0e8011faSEmmanuel Vadot
18*0e8011faSEmmanuel Vadotproperties:
19*0e8011faSEmmanuel Vadot  compatible:
20*0e8011faSEmmanuel Vadot    enum:
21*0e8011faSEmmanuel Vadot      - sciosense,ens160
22*0e8011faSEmmanuel Vadot
23*0e8011faSEmmanuel Vadot  reg:
24*0e8011faSEmmanuel Vadot    maxItems: 1
25*0e8011faSEmmanuel Vadot
26*0e8011faSEmmanuel Vadot  interrupts:
27*0e8011faSEmmanuel Vadot    maxItems: 1
28*0e8011faSEmmanuel Vadot
29*0e8011faSEmmanuel Vadot  vdd-supply: true
30*0e8011faSEmmanuel Vadot  vddio-supply: true
31*0e8011faSEmmanuel Vadot
32*0e8011faSEmmanuel Vadotrequired:
33*0e8011faSEmmanuel Vadot  - compatible
34*0e8011faSEmmanuel Vadot  - reg
35*0e8011faSEmmanuel Vadot
36*0e8011faSEmmanuel VadotallOf:
37*0e8011faSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
38*0e8011faSEmmanuel Vadot
39*0e8011faSEmmanuel VadotunevaluatedProperties: false
40*0e8011faSEmmanuel Vadot
41*0e8011faSEmmanuel Vadotexamples:
42*0e8011faSEmmanuel Vadot  - |
43*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
44*0e8011faSEmmanuel Vadot    i2c {
45*0e8011faSEmmanuel Vadot      #address-cells = <1>;
46*0e8011faSEmmanuel Vadot      #size-cells = <0>;
47*0e8011faSEmmanuel Vadot
48*0e8011faSEmmanuel Vadot      gas-sensor@52 {
49*0e8011faSEmmanuel Vadot        compatible = "sciosense,ens160";
50*0e8011faSEmmanuel Vadot        reg = <0x52>;
51*0e8011faSEmmanuel Vadot        interrupt-parent = <&gpio0>;
52*0e8011faSEmmanuel Vadot        interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
53*0e8011faSEmmanuel Vadot      };
54*0e8011faSEmmanuel Vadot    };
55*0e8011faSEmmanuel Vadot  - |
56*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
57*0e8011faSEmmanuel Vadot    spi {
58*0e8011faSEmmanuel Vadot      #address-cells = <1>;
59*0e8011faSEmmanuel Vadot      #size-cells = <0>;
60*0e8011faSEmmanuel Vadot
61*0e8011faSEmmanuel Vadot      gas-sensor@0 {
62*0e8011faSEmmanuel Vadot        compatible = "sciosense,ens160";
63*0e8011faSEmmanuel Vadot        reg = <0>;
64*0e8011faSEmmanuel Vadot        spi-max-frequency = <10000000>;
65*0e8011faSEmmanuel Vadot        interrupt-parent = <&gpio>;
66*0e8011faSEmmanuel Vadot        interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
67*0e8011faSEmmanuel Vadot      };
68*0e8011faSEmmanuel Vadot    };
69*0e8011faSEmmanuel Vadot
70*0e8011faSEmmanuel Vadot...
71