kxtj9.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Kionis KXTIK-series accelerometer driver
  2. Required properties:
  3. - compatible : Should be "kionix,kxtj9".
  4. - reg : i2c slave address of the device.
  5. - interrupt-parent : Parent of interrupt.
  6. - interrupts : Accelerometer sample interrupt to indicate new data ready.
  7. - vdd-supply : Analog power supply needed to power device.
  8. - vio-supply : Digital IO power supply needed for IO and I2C.
  9. - kionix,min-interval : Minimal data polling interval in millisecond.
  10. - kionix,init-interval : Initial data polling interval in millisecond.
  11. - kionix,axis-map-x : Select which data will be X-axis of reading.
  12. The sensor measures and reports three axis of
  13. data, this property selset which data will be
  14. interpretd as X-axis gravity data of phone.
  15. e.g. Give "0" to this property means the first
  16. measurement data will be used as X-axis data
  17. - kionix,axis-map-y : Select which data will be Y-axis of reading.
  18. Similar to property above, this property selet
  19. Y-axis data.
  20. - kionix,axis-map-z : Select which data will be Z-axis of reading.
  21. Similar to property above, this property selet
  22. Z-axis data.
  23. - kionix,g-range : Select initial range of measurement. This define
  24. the initial configuration of maxinum
  25. measurement range of the sensor.Where 2 is 2G,
  26. 4 is 4G, 8 is 8G, 2G will be used for any other
  27. values.
  28. Optional properties:
  29. - kionix,negate-x : Boolean to select negate of X-axis data is
  30. required, if this property is defined, X-axis
  31. data will be negated.
  32. - kionix,negate-y : Boolean to select negate of Y-axis data is
  33. required, if this property is defined, Y-axis
  34. data will be negated.
  35. - kionix,negate-z : Boolean to select negate of Z-axis data is
  36. required, if this property is defined, Z-axis
  37. data will be negated.
  38. - kionix,res-12bit; : Boolean to select output data resolution, if this
  39. property is defined, sensor will be configured
  40. to output 12 bits of data, otherwise sensor will
  41. be configured to output 8 bits data.
  42. Example:
  43. i2c@f9925000 { /* BLSP-1 QUP-3 */
  44. kionix@f {
  45. compatible = "kionix,kxtj9";
  46. reg = <0x0f>;
  47. interrupt-parent = <&msmgpio>;
  48. interrupts = <81 0x2>;
  49. vdd-supply = <&pm8110_l19>;
  50. vio-supply = <&pm8110_l14>;
  51. kionix,min-interval = <5>;
  52. kionix,init-interval = <200>;
  53. kionix,axis-map-x = <1>;
  54. kionix,axis-map-y = <0>;
  55. kionix,axis-map-z = <2>;
  56. kionix,g-range = <2>;
  57. kionix,negate-x;
  58. kionix,negate-y;
  59. kionix,negate-z;
  60. kionix,res-12bit;
  61. };
  62. };