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