This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

invensense,mpu9250 (on i2c bus)

Vendor: InvenSense Inc.

Description

InvenSense MPU-9250 Nine-Axis (Gyro + Accelerometer + Compass). See more
info at https://www.invensense.com/products/motion-tracking/9-axis/mpu-9250/

Properties

Properties not inherited from the base binding file.

Name

Type

Details

irq-gpios

phandle-array

The INT signal default configuration is active-high.  The
property value should ensure the flags properly describe the
signal that is presented to the driver.
This property is required when the trigger mode is used.

gyro-sr-div

int

Default gyrscope sample rate divider. This divider is only effective
when gyro-dlpf is in range 5-184.
rate = sample_rate / (1 + gyro-sr-div)
Valid range: 0 - 255

This property is required.

gyro-dlpf

int

Default digital low pass filter frequency of gyroscope.
Maps to DLPF_CFG field in Configuration setting.

This property is required.

Legal values: 250, 184, 92, 41, 20, 10, 5, 3600

gyro-fs

int

Default full scale of gyroscope. (Unit - DPS).
Maps to GYRO_FS_SEL field in Gyroscope Configuration setting.

This property is required.

Legal values: 250, 500, 1000, 2000

accel-fs

int

Default full scale of accelerometer. (Unit - g)
Maps to ACCEL_FS_SEL field in Accelerometer Configuration setting

This property is required.

Legal values: 2, 4, 8, 16

accel-dlpf

string

Default digital low pass filter frequency of accelerometer.
Maps to DLPF_CFG field in Accelerometer Configuration 2 setting.

This property is required.

Legal values: '218.1', '218.1a', '99', '44.8', '21.2', '10.2', '5.05', '420'

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.