Merge tag 'v4.20' into next
[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,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
22 Optional properties:
23  - vddio-supply: regulator phandle for VDDIO supply
24  - mount-matrix: an optional 3x3 mounting rotation matrix
25  - i2c-gate node.  These devices also support an auxiliary i2c bus.  This is
26    simple enough to be described using the i2c-gate binding. See
27    i2c/i2c-gate.txt for more details.
28
29 Example:
30         mpu6050@68 {
31                 compatible = "invensense,mpu6050";
32                 reg = <0x68>;
33                 interrupt-parent = <&gpio1>;
34                 interrupts = <18 IRQ_TYPE_EDGE_RISING>;
35                 mount-matrix = "-0.984807753012208",  /* x0 */
36                                "0",                   /* y0 */
37                                "-0.173648177666930",  /* z0 */
38                                "0",                   /* x1 */
39                                "-1",                  /* y1 */
40                                "0",                   /* z1 */
41                                "-0.173648177666930",  /* x2 */
42                                "0",                   /* y2 */
43                                "0.984807753012208";   /* z2 */
44         };
45
46
47         mpu9250@68 {
48                 compatible = "invensense,mpu9250";
49                 reg = <0x68>;
50                 interrupt-parent = <&gpio3>;
51                 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
52                 i2c-gate {
53                         #address-cells = <1>;
54                         #size-cells = <0>;
55                         ax8975@c {
56                                 compatible = "ak,ak8975";
57                                 reg = <0x0c>;
58                         };
59                 };
60         };