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 maxItems: 1 51 52 drive-open-drain: 53 description: 54 set if the interrupt pin should be configured as open drain. 55 If not set, defaults to push-pull configuration. 56 type: boolean 57 58required: 59 - compatible 60 - vddd-supply 61 - vdda-supply 62 63allOf: 64 - if: 65 properties: 66 compatible: 67 not: 68 contains: 69 enum: 70 - bosch,bmp085 71 - bosch,bmp380 72 - bosch,bmp580 73 then: 74 properties: 75 interrupts: false 76 77additionalProperties: false 78 79examples: 80 - | 81 #include <dt-bindings/gpio/gpio.h> 82 #include <dt-bindings/interrupt-controller/irq.h> 83 i2c { 84 #address-cells = <1>; 85 #size-cells = <0>; 86 pressure@77 { 87 compatible = "bosch,bmp085"; 88 reg = <0x77>; 89 interrupt-parent = <&gpio0>; 90 interrupts = <25 IRQ_TYPE_EDGE_RISING>; 91 reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 92 vddd-supply = <&foo>; 93 vdda-supply = <&bar>; 94 }; 95 }; 96