invensense,mpu3050.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Invensense MPU-3050 Gyroscope device tree bindings
  2. Required properties:
  3. - compatible : should be "invensense,mpu3050"
  4. - reg : the I2C address of the sensor
  5. Optional properties:
  6. - interrupts : interrupt mapping for the trigger interrupt from the
  7. internal oscillator. The following IRQ modes are supported:
  8. IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, IRQ_TYPE_LEVEL_HIGH and
  9. IRQ_TYPE_LEVEL_LOW. The driver should detect and configure the hardware
  10. for the desired interrupt type.
  11. - vdd-supply : supply regulator for the main power voltage.
  12. - vlogic-supply : supply regulator for the signal voltage.
  13. - mount-matrix : see iio/mount-matrix.txt
  14. Optional subnodes:
  15. - The MPU-3050 will pass through and forward the I2C signals from the
  16. incoming I2C bus, alternatively drive traffic to a slave device (usually
  17. an accelerometer) on its own initiative. Therefore is supports a subnode
  18. i2c gate node. For details see: i2c/i2c-gate.txt
  19. Example:
  20. mpu3050@68 {
  21. compatible = "invensense,mpu3050";
  22. reg = <0x68>;
  23. interrupt-parent = <&foo>;
  24. interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
  25. vdd-supply = <&bar>;
  26. vlogic-supply = <&baz>;
  27. /* External I2C interface */
  28. i2c-gate {
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. fnord@18 {
  32. compatible = "fnord";
  33. reg = <0x18>;
  34. interrupt-parent = <&foo>;
  35. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  36. };
  37. };
  38. };