mma8x5x.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Freescale MMA8x5x 3-Axis Orientation/Motion Detection Sensor series
  2. (MMA8451/MMA8452/MMA8453/MMA8652/MMA8653)
  3. The Freescale 3-Axis Orientation/Motion Detection Sensor is
  4. connected to host processor via i2c.
  5. The sensor can be polling for acceleration data or configure to
  6. generates interrupts when a motion is detected.
  7. Required properties:
  8. - compatible : should be "fsl,mma8x5x"
  9. - reg : i2c slave address of the device
  10. - vdd-supply : power supply needed to power up the device.
  11. - vio-supply : power supply needed for device IO and to pullup i2c bus.
  12. - fsl,sensors-position : select from 0 to 7 depends on how the sensor is
  13. mounting on the board, this will decide how the 3-axis reading
  14. of data will be translated to X/Y/Z axis of acceleration data.
  15. Optional properties:
  16. Sensor can work on polling mode or interrupt mode, following interrupt
  17. is required if the sensor need to work on interrupt mode.
  18. - interrupt-parent : parent of interrupt.
  19. - interrupts : sensor signal interrupt to indicate new data ready or
  20. a motion is detected.
  21. - fsl,use-interrupt : to enable interrupt mode.
  22. - fsl,irq-gpio : First irq gpio which is to provide interrupts to host, same
  23. as "interrupts" node. It will also contain active low or active
  24. high information.
  25. Example:
  26. fsl@1c {
  27. compatible = "fsl,mma8x5x";
  28. reg = <0x1c>;
  29. interrupt-parent = <&msmgpio>;
  30. interrupts = <81 0x2>;
  31. vdd-supply = <&pm8110_l19>;
  32. vio-supply = <&pm8110_l14>;
  33. fsl,sensors-position = <5>;
  34. fsl,irq-gpio = <&msmgpio 0x81 0x02>;
  35. fsl,use-interrupt;
  36. };