Path: blob/main/sys/contrib/device-tree/Bindings/iio/imu/inv_mpu6050.txt
48523 views
InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device12http://www.invensense.com/mems/gyro/mpu6050.html34Required properties:5- compatible : should be one of6"invensense,mpu6000"7"invensense,mpu6050"8"invensense,mpu6500"9"invensense,mpu6515"10"invensense,mpu9150"11"invensense,mpu9250"12"invensense,mpu9255"13"invensense,icm20608"14"invensense,icm20609"15"invensense,icm20689"16"invensense,icm20602"17"invensense,icm20690"18"invensense,iam20680"19- reg : the I2C address of the sensor20- interrupts: interrupt mapping for IRQ. It should be configured with flags21IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or22IRQ_TYPE_EDGE_FALLING.2324Refer to interrupt-controller/interrupts.txt for generic interrupt client node25bindings.2627Optional properties:28- vdd-supply: regulator phandle for VDD supply29- vddio-supply: regulator phandle for VDDIO supply30- mount-matrix: an optional 3x3 mounting rotation matrix31- i2c-gate node. These devices also support an auxiliary i2c bus. This is32simple enough to be described using the i2c-gate binding. See33i2c/i2c-gate.txt for more details.3435Example:36mpu6050@68 {37compatible = "invensense,mpu6050";38reg = <0x68>;39interrupt-parent = <&gpio1>;40interrupts = <18 IRQ_TYPE_EDGE_RISING>;41mount-matrix = "-0.984807753012208", /* x0 */42"0", /* y0 */43"-0.173648177666930", /* z0 */44"0", /* x1 */45"-1", /* y1 */46"0", /* z1 */47"-0.173648177666930", /* x2 */48"0", /* y2 */49"0.984807753012208"; /* z2 */50};515253mpu9250@68 {54compatible = "invensense,mpu9250";55reg = <0x68>;56interrupt-parent = <&gpio3>;57interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;58i2c-gate {59#address-cells = <1>;60#size-cells = <0>;61ax8975@c {62compatible = "ak,ak8975";63reg = <0x0c>;64};65};66};676869