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 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 20properties: 21 compatible: 22 enum: 23 - bosch,bmp085 24 - bosch,bmp180 25 - bosch,bmp280 26 - bosch,bme280 27 28 vddd-supply: 29 description: 30 digital voltage regulator (see regulator/regulator.txt) 31 32 vdda-supply: 33 description: 34 analog voltage regulator (see regulator/regulator.txt) 35 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 41 42 interrupts: 43 description: 44 interrupt mapping for IRQ (BMP085 only) 45 maxItems: 1 46 47required: 48 - compatible 49 - vddd-supply 50 - vdda-supply 51 52examples: 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 }; 69