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