xref: /linux/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/pressure/bmp085.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: BMP085/BMP180/BMP280/BME280/BMP380 pressure iio sensors
8
9maintainers:
10  - Andreas Klinger <ak@it-klinger.de>
11
12description: |
13  Pressure, temperature and humidity iio sensors with i2c and spi interfaces
14
15  Specifications about the sensor can be found at:
16    https://www.bosch-sensortec.com/bst/products/all_products/bmp180
17    https://www.bosch-sensortec.com/bst/products/all_products/bmp280
18    https://www.bosch-sensortec.com/bst/products/all_products/bme280
19    https://www.bosch-sensortec.com/bst/products/all_products/bmp380
20    https://www.bosch-sensortec.com/bst/products/all_products/bmp580
21
22properties:
23  compatible:
24    enum:
25      - bosch,bmp085
26      - bosch,bmp180
27      - bosch,bmp280
28      - bosch,bme280
29      - bosch,bmp380
30      - bosch,bmp580
31
32  reg:
33    maxItems: 1
34
35  vddd-supply:
36    description:
37      digital voltage regulator (see regulator/regulator.txt)
38
39  vdda-supply:
40    description:
41      analog voltage regulator (see regulator/regulator.txt)
42
43  reset-gpios:
44    description:
45      A GPIO line handling reset of the sensor. As the line is active low,
46      it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt)
47    maxItems: 1
48
49  interrupts:
50    description:
51      interrupt mapping for IRQ (BMP085 only)
52    maxItems: 1
53
54required:
55  - compatible
56  - vddd-supply
57  - vdda-supply
58
59additionalProperties: false
60
61examples:
62  - |
63    #include <dt-bindings/gpio/gpio.h>
64    #include <dt-bindings/interrupt-controller/irq.h>
65    i2c {
66        #address-cells = <1>;
67        #size-cells = <0>;
68        pressure@77 {
69            compatible = "bosch,bmp085";
70            reg = <0x77>;
71            interrupt-parent = <&gpio0>;
72            interrupts = <25 IRQ_TYPE_EDGE_RISING>;
73            reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
74            vddd-supply = <&foo>;
75            vdda-supply = <&bar>;
76        };
77    };
78