inv_mpu6050.txt 1.7 KB

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