InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device

Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/invensense,mpu6050.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>"

These devices support both I2C and SPI bus interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "invensense,iam20380", "invensense,iam20680", "invensense,icm20608", "invensense,icm20609", "invensense,icm20689", "invensense,icm20602", "invensense,icm20690", "invensense,mpu6000", "invensense,mpu6050", "invensense,mpu6500", "invensense,mpu6515", "invensense,mpu6880", "invensense,mpu9150", "invensense,mpu9250", "invensense,mpu9255"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "invensense,icm20600"

Item 2

Exact value (const): "invensense,icm20602"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "invensense,icm20608d"

Item 2

Exact value (const): "invensense,icm20608"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "invensense,iam20680hp", "invensense,iam20680ht"

Item 2

Exact value (const): "invensense,iam20680"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

true — No constraints added by this property rule.

vddio-supply — not listed as required here #

true — No constraints added by this property rule.

mount-matrix — not listed as required here #

true — No constraints added by this property rule.

invensense,level-shifter — not listed as required here #

Value type (type): "boolean"

From ancient platform data struct: false: VLogic, true: VDD

i2c-gate — not listed as required here #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

These devices also support an auxiliary i2c bus via an i2c-gate.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "invensense,iam20680", "invensense,icm20602", "invensense,icm20608", "invensense,icm20609", "invensense,icm20689"

When the condition matches (then) #

Properties and child nodes (properties)

i2c-gate — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    imu@68 {
        compatible = "invensense,mpu9250";
        reg = <0x68>;
        interrupt-parent = <&gpio3>;
        interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
        mount-matrix = "-0.984807753012208",  /* x0 */
                       "0",                   /* y0 */
                       "-0.173648177666930",  /* z0 */
                       "0",                   /* x1 */
                       "-1",                  /* y1 */
                       "0",                   /* z1 */
                       "-0.173648177666930",  /* x2 */
                       "0",                   /* y2 */
                       "0.984807753012208";   /* z2 */
        i2c-gate {
            #address-cells = <1>;
            #size-cells = <0>;
            magnetometer@c {
                compatible = "asahi-kasei,ak8975";
                reg = <0x0c>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page