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
7 title: BMP085/BMP180/BMP280/BME280 pressure iio sensors
8
9 maintainers:
10 - Andreas Klinger <ak@it-klinger.de>
11
12 description: |
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
20 properties:
21 compatible:
22 enum:
23 - bosch,bmp085
24 - bosch,bmp180
25 - bosch,bmp280
26 - bosch,bme280
27
28 reg:
29 maxItems: 1
30
31 vddd-supply:
32 description:
33 digital voltage regulator (see regulator/regulator.txt)
34
35 vdda-supply:
36 description:
37 analog voltage regulator (see regulator/regulator.txt)
38
39 reset-gpios:
40 description:
41 A GPIO line handling reset of the sensor. As the line is active low,
42 it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt)
43 maxItems: 1
44
45 interrupts:
46 description:
47 interrupt mapping for IRQ (BMP085 only)
48 maxItems: 1
49
50 required:
51 - compatible
52 - vddd-supply
53 - vdda-supply
54
55 additionalProperties: false
56
57 examples:
58 - |
59 #include <dt-bindings/gpio/gpio.h>
60 #include <dt-bindings/interrupt-controller/irq.h>
61 i2c0 {
62 #address-cells = <1>;
63 #size-cells = <0>;
64 pressure@77 {
65 compatible = "bosch,bmp085";
66 reg = <0x77>;
67 interrupt-parent = <&gpio0>;
68 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
69 reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
70 vddd-supply = <&foo>;
71 vdda-supply = <&bar>;
72 };
73 };
Cache object: 184552e2ec0d0062bfe695299dd6749f
|