1InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device 2 3http://www.invensense.com/mems/gyro/mpu6050.html 4 5Required properties: 6 - compatible : should be one of 7 "invensense,mpu6050" 8 "invensense,mpu6500" 9 "invensense,mpu6515" 10 "invensense,mpu9150" 11 "invensense,mpu9250" 12 "invensense,mpu9255" 13 "invensense,icm20608" 14 - reg : the I2C address of the sensor 15 - interrupts: interrupt mapping for IRQ. It should be configured with flags 16 IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or 17 IRQ_TYPE_EDGE_FALLING. 18 19 Refer to interrupt-controller/interrupts.txt for generic interrupt client node 20 bindings. 21 22Optional properties: 23 - mount-matrix: an optional 3x3 mounting rotation matrix 24 - i2c-gate node. These devices also support an auxiliary i2c bus. This is 25 simple enough to be described using the i2c-gate binding. See 26 i2c/i2c-gate.txt for more details. 27 28Example: 29 mpu6050@68 { 30 compatible = "invensense,mpu6050"; 31 reg = <0x68>; 32 interrupt-parent = <&gpio1>; 33 interrupts = <18 IRQ_TYPE_EDGE_RISING>; 34 mount-matrix = "-0.984807753012208", /* x0 */ 35 "0", /* y0 */ 36 "-0.173648177666930", /* z0 */ 37 "0", /* x1 */ 38 "-1", /* y1 */ 39 "0", /* z1 */ 40 "-0.173648177666930", /* x2 */ 41 "0", /* y2 */ 42 "0.984807753012208"; /* z2 */ 43 }; 44 45 46 mpu9250@68 { 47 compatible = "invensense,mpu9250"; 48 reg = <0x68>; 49 interrupt-parent = <&gpio3>; 50 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; 51 i2c-gate { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 ax8975@c { 55 compatible = "ak,ak8975"; 56 reg = <0x0c>; 57 }; 58 }; 59 }; 60