xref: /linux/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml (revision 83bd89291f5cc866f60d32c34e268896c7ba8a3d)
1*f11e4374SAntoni Pokusinski# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*f11e4374SAntoni Pokusinski%YAML 1.2
3*f11e4374SAntoni Pokusinski---
4*f11e4374SAntoni Pokusinski$id: http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml#
5*f11e4374SAntoni Pokusinski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*f11e4374SAntoni Pokusinski
7*f11e4374SAntoni Pokusinskititle: MPL3115 precision pressure sensor with altimetry
8*f11e4374SAntoni Pokusinski
9*f11e4374SAntoni Pokusinskimaintainers:
10*f11e4374SAntoni Pokusinski  - Antoni Pokusinski <apokusinski01@gmail.com>
11*f11e4374SAntoni Pokusinski
12*f11e4374SAntoni Pokusinskidescription: |
13*f11e4374SAntoni Pokusinski  MPL3115 is a pressure/altitude and temperature sensor with I2C interface.
14*f11e4374SAntoni Pokusinski  It features two programmable interrupt lines which indicate events such as
15*f11e4374SAntoni Pokusinski  data ready or pressure/temperature threshold reached.
16*f11e4374SAntoni Pokusinski  https://www.nxp.com/docs/en/data-sheet/MPL3115A2.pdf
17*f11e4374SAntoni Pokusinski
18*f11e4374SAntoni Pokusinskiproperties:
19*f11e4374SAntoni Pokusinski  compatible:
20*f11e4374SAntoni Pokusinski    const: fsl,mpl3115
21*f11e4374SAntoni Pokusinski
22*f11e4374SAntoni Pokusinski  reg:
23*f11e4374SAntoni Pokusinski    maxItems: 1
24*f11e4374SAntoni Pokusinski
25*f11e4374SAntoni Pokusinski  vdd-supply: true
26*f11e4374SAntoni Pokusinski
27*f11e4374SAntoni Pokusinski  vddio-supply: true
28*f11e4374SAntoni Pokusinski
29*f11e4374SAntoni Pokusinski  interrupts:
30*f11e4374SAntoni Pokusinski    minItems: 1
31*f11e4374SAntoni Pokusinski    maxItems: 2
32*f11e4374SAntoni Pokusinski
33*f11e4374SAntoni Pokusinski  interrupt-names:
34*f11e4374SAntoni Pokusinski    minItems: 1
35*f11e4374SAntoni Pokusinski    maxItems: 2
36*f11e4374SAntoni Pokusinski    items:
37*f11e4374SAntoni Pokusinski      enum:
38*f11e4374SAntoni Pokusinski        - INT1
39*f11e4374SAntoni Pokusinski        - INT2
40*f11e4374SAntoni Pokusinski
41*f11e4374SAntoni Pokusinski  drive-open-drain:
42*f11e4374SAntoni Pokusinski    type: boolean
43*f11e4374SAntoni Pokusinski    description:
44*f11e4374SAntoni Pokusinski      set if the specified interrupt pins should be configured as
45*f11e4374SAntoni Pokusinski      open drain. If not set, defaults to push-pull.
46*f11e4374SAntoni Pokusinski
47*f11e4374SAntoni Pokusinskirequired:
48*f11e4374SAntoni Pokusinski  - compatible
49*f11e4374SAntoni Pokusinski  - reg
50*f11e4374SAntoni Pokusinski  - vdd-supply
51*f11e4374SAntoni Pokusinski  - vddio-supply
52*f11e4374SAntoni Pokusinski
53*f11e4374SAntoni PokusinskiadditionalProperties: false
54*f11e4374SAntoni Pokusinski
55*f11e4374SAntoni Pokusinskiexamples:
56*f11e4374SAntoni Pokusinski  - |
57*f11e4374SAntoni Pokusinski    #include <dt-bindings/interrupt-controller/irq.h>
58*f11e4374SAntoni Pokusinski    i2c {
59*f11e4374SAntoni Pokusinski        #address-cells = <1>;
60*f11e4374SAntoni Pokusinski        #size-cells = <0>;
61*f11e4374SAntoni Pokusinski
62*f11e4374SAntoni Pokusinski        pressure@60 {
63*f11e4374SAntoni Pokusinski            compatible = "fsl,mpl3115";
64*f11e4374SAntoni Pokusinski            reg = <0x60>;
65*f11e4374SAntoni Pokusinski            vdd-supply = <&vdd>;
66*f11e4374SAntoni Pokusinski            vddio-supply = <&vddio>;
67*f11e4374SAntoni Pokusinski            interrupt-parent = <&gpio1>;
68*f11e4374SAntoni Pokusinski            interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
69*f11e4374SAntoni Pokusinski            interrupt-names = "INT2";
70*f11e4374SAntoni Pokusinski        };
71*f11e4374SAntoni Pokusinski    };
72