treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / pressure / bmp085.yaml
blob519137e5c1701fdbb5d5524ac99c251b798badda
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#
7 title: BMP085/BMP180/BMP280/BME280 pressure iio sensors
9 maintainers:
10   - Andreas Klinger <ak@it-klinger.de>
12 description: |
13   Pressure, temperature and humidity iio sensors with i2c and spi interfaces
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
20 properties:
21   compatible:
22     enum:
23       - bosch,bmp085
24       - bosch,bmp180
25       - bosch,bmp280
26       - bosch,bme280
28   vddd-supply:
29     description:
30       digital voltage regulator (see regulator/regulator.txt)
32   vdda-supply:
33     description:
34       analog voltage regulator (see regulator/regulator.txt)
36   reset-gpios:
37     description:
38       A GPIO line handling reset of the sensor. As the line is active low,
39       it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt)
40     maxItems: 1
42   interrupts:
43     description:
44       interrupt mapping for IRQ (BMP085 only)
45     maxItems: 1
47 required:
48   - compatible
49   - vddd-supply
50   - vdda-supply
52 examples:
53   - |
54     #include <dt-bindings/gpio/gpio.h>
55     #include <dt-bindings/interrupt-controller/irq.h>
56     i2c0 {
57       #address-cells = <1>;
58       #size-cells = <0>;
59       pressure@77 {
60           compatible = "bosch,bmp085";
61           reg = <0x77>;
62           interrupt-parent = <&gpio0>;
63           interrupts = <25 IRQ_TYPE_EDGE_RISING>;
64           reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
65           vddd-supply = <&foo>;
66           vdda-supply = <&bar>;
67       };
68     };