brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 6fda887 Raw
78 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---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 sensors8 9maintainers:10  - Andreas Klinger <ak@it-klinger.de>11 12description: |13  Pressure, temperature and humidity iio sensors with i2c and spi interfaces14 15  Specifications about the sensor can be found at:16    https://www.bosch-sensortec.com/bst/products/all_products/bmp18017    https://www.bosch-sensortec.com/bst/products/all_products/bmp28018    https://www.bosch-sensortec.com/bst/products/all_products/bme28019    https://www.bosch-sensortec.com/bst/products/all_products/bmp38020    https://www.bosch-sensortec.com/bst/products/all_products/bmp58021 22properties:23  compatible:24    enum:25      - bosch,bmp08526      - bosch,bmp18027      - bosch,bmp28028      - bosch,bme28029      - bosch,bmp38030      - bosch,bmp58031 32  reg:33    maxItems: 134 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: 148 49  interrupts:50    description:51      interrupt mapping for IRQ (BMP085 only)52    maxItems: 153 54required:55  - compatible56  - vddd-supply57  - vdda-supply58 59additionalProperties: false60 61examples:62  - |63    #include <dt-bindings/gpio/gpio.h>64    #include <dt-bindings/interrupt-controller/irq.h>65    i2c {66        #address-cells = <1>;67        #size-cells = <0>;68        pressure@77 {69            compatible = "bosch,bmp085";70            reg = <0x77>;71            interrupt-parent = <&gpio0>;72            interrupts = <25 IRQ_TYPE_EDGE_RISING>;73            reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;74            vddd-supply = <&foo>;75            vdda-supply = <&bar>;76        };77    };78