Merge tag 'bcm2835-dt-next-2017-03-30' into devicetree/fixes
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / imu / inv_mpu6050.txt
1 InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device
2
3 http://www.invensense.com/mems/gyro/mpu6050.html
4
5 Required properties:
6  - compatible : should be one of
7                 "invensense,mpu6050"
8                 "invensense,mpu6500"
9                 "invensense,mpu9150"
10                 "invensense,mpu9250"
11                 "invensense,icm20608"
12  - reg : the I2C address of the sensor
13  - interrupt-parent : should be the phandle for the interrupt controller
14  - interrupts : interrupt mapping for GPIO IRQ
15
16 Optional properties:
17  - mount-matrix: an optional 3x3 mounting rotation matrix
18  - i2c-gate node.  These devices also support an auxiliary i2c bus.  This is
19    simple enough to be described using the i2c-gate binding. See
20    i2c/i2c-gate.txt for more details.
21
22 Example:
23         mpu6050@68 {
24                 compatible = "invensense,mpu6050";
25                 reg = <0x68>;
26                 interrupt-parent = <&gpio1>;
27                 interrupts = <18 1>;
28                 mount-matrix = "-0.984807753012208",  /* x0 */
29                                "0",                   /* y0 */
30                                "-0.173648177666930",  /* z0 */
31                                "0",                   /* x1 */
32                                "-1",                  /* y1 */
33                                "0",                   /* z1 */
34                                "-0.173648177666930",  /* x2 */
35                                "0",                   /* y2 */
36                                "0.984807753012208";   /* z2 */
37         };
38
39
40         mpu9250@68 {
41                 compatible = "invensense,mpu9250";
42                 reg = <0x68>;
43                 interrupt-parent = <&gpio3>;
44                 interrupts = <21 1>;
45                 i2c-gate {
46                         #address-cells = <1>;
47                         #size-cells = <0>;
48                         ax8975@c {
49                                 compatible = "ak,ak8975";
50                                 reg = <0x0c>;
51                         };
52                 };
53         };