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 maxItems: 1 32 33 vdda-supply: 34 description: 35 analog voltage regulator (see regulator/regulator.txt) 36 maxItems: 1 37 38 reset-gpios: 39 description: 40 A GPIO line handling reset of the sensor. As the line is active low, 41 it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt) 42 maxItems: 1 43 44 interrupts: 45 description: 46 interrupt mapping for IRQ (BMP085 only) 47 maxItems: 1 48 49required: 50 - compatible 51 - vddd-supply 52 - vdda-supply 53 54examples: 55 - | 56 #include <dt-bindings/gpio/gpio.h> 57 #include <dt-bindings/interrupt-controller/irq.h> 58 i2c0 { 59 #address-cells = <1>; 60 #size-cells = <0>; 61 pressure@77 { 62 compatible = "bosch,bmp085"; 63 reg = <0x77>; 64 interrupt-parent = <&gpio0>; 65 interrupts = <25 IRQ_TYPE_EDGE_RISING>; 66 reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 67 vddd-supply = <&foo>; 68 vdda-supply = <&bar>; 69 }; 70 }; 71