bosch,bmp581 (on i2c bus)

Vendor: Bosch Sensortec GmbH

Note

An implementation of a driver matching this compatible is available in drivers/sensor/bosch/bmp581.

Description

The BMP581 is a Barometric pressure sensor. See more info at:
https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp581/

When setting the sensor DTS properties, make sure to include
bmp581.h and use the macros defined there.

Example:
#include <zephyr/dt-bindings/sensor/bmp581.h>

bmp581@46 {
    ...
    odr = <BMP581_DT_ODR_50_HZ>;
    press-osr = <BMP581_DT_OVERSAMPLING_8X>;
    temp-osr = <BMP581_DT_OVERSAMPLING_4X>;
    press-iir = <BMP581_DT_IIR_FILTER_COEFF_7>;
    temp-iir = <BMP581_DT_IIR_FILTER_COEFF_3>;
    power-mode = <BMP581_DT_MODE_NORMAL>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

int-gpios

phandle-array

Interrupt pin.
The interrupt pin of BMP581 is open-drain, active low. If connected directly to the MCU, the pin should be configured as pull-up, active low.

odr

int

Output data rate. Please note this is only valid on BMP581_DT_MODE_NORMAL.
Default is power-on reset.

Default value: 28

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31

press-osr

int

Pressure oversampling rate.
Default is power-on reset.

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

temp-osr

int

Temperature oversampling rate.
Default is power-on reset.

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

power-mode

int

Power mode.
Default favors ease of use by simply setting ODR and OSR. Otherwise user
needs to look into driver details, as the other modes require some quirks
(e.g: Forced mode does not just work).

Default value: 1

Legal values: 1, 2, 3

press-iir

int

Pressure IIR filter coefficient.
Default is power-on reset (bypass).

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

temp-iir

int

Temperature IIR filter coefficient.
Default is power-on reset (bypass).

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

fifo-watermark

int

Specify the FIFO watermark level in frame count.
Only supports frames with both Pressure and Temperature
Valid range: 1 - 15

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.