Path: blob/master/Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/pressure/bmp085.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: BMP085/BMP180/BMP280/BME280/BMP380 pressure iio sensors78maintainers:9- Andreas Klinger <ak@it-klinger.de>1011description: |12Pressure, temperature and humidity iio sensors with i2c and spi interfaces1314Specifications about the sensor can be found at:15https://www.bosch-sensortec.com/bst/products/all_products/bmp18016https://www.bosch-sensortec.com/bst/products/all_products/bmp28017https://www.bosch-sensortec.com/bst/products/all_products/bme28018https://www.bosch-sensortec.com/bst/products/all_products/bmp38019https://www.bosch-sensortec.com/bst/products/all_products/bmp5802021properties:22compatible:23enum:24- bosch,bmp08525- bosch,bmp18026- bosch,bmp28027- bosch,bme28028- bosch,bmp38029- bosch,bmp5803031reg:32maxItems: 13334vddd-supply:35description:36digital voltage regulator (see regulator/regulator.txt)3738vdda-supply:39description:40analog voltage regulator (see regulator/regulator.txt)4142reset-gpios:43description:44A GPIO line handling reset of the sensor. As the line is active low,45it should be marked GPIO_ACTIVE_LOW (see gpio/gpio.txt)46maxItems: 14748interrupts:49maxItems: 15051drive-open-drain:52description:53set if the interrupt pin should be configured as open drain.54If not set, defaults to push-pull configuration.55type: boolean5657spi-max-frequency:58maximum: 100000005960required:61- compatible62- vddd-supply63- vdda-supply6465allOf:66- $ref: /schemas/spi/spi-peripheral-props.yaml#67- if:68properties:69compatible:70not:71contains:72enum:73- bosch,bmp08574- bosch,bmp38075- bosch,bmp58076then:77properties:78interrupts: false79- if:80properties:81compatible:82contains:83enum:84- bosch,bmp08585- bosch,bmp18086then:87properties:88spi-max-frequency: false8990additionalProperties: false9192examples:93- |94#include <dt-bindings/gpio/gpio.h>95#include <dt-bindings/interrupt-controller/irq.h>96i2c {97#address-cells = <1>;98#size-cells = <0>;99pressure@77 {100compatible = "bosch,bmp085";101reg = <0x77>;102interrupt-parent = <&gpio0>;103interrupts = <25 IRQ_TYPE_EDGE_RISING>;104reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;105vddd-supply = <&foo>;106vdda-supply = <&bar>;107};108};109- |110# include <dt-bindings/gpio/gpio.h>111# include <dt-bindings/interrupt-controller/irq.h>112spi {113#address-cells = <1>;114#size-cells = <0>;115pressure@0 {116compatible = "bosch,bmp280";117reg = <0>;118spi-max-frequency = <10000000>;119reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;120vddd-supply = <&foo>;121vdda-supply = <&bar>;122};123};124125126