st_gyro_core.c 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. /*
  2. * STMicroelectronics gyroscopes driver
  3. *
  4. * Copyright 2012-2013 STMicroelectronics Inc.
  5. *
  6. * Denis Ciocca <denis.ciocca@st.com>
  7. *
  8. * Licensed under the GPL-2.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/module.h>
  12. #include <linux/slab.h>
  13. #include <linux/errno.h>
  14. #include <linux/types.h>
  15. #include <linux/mutex.h>
  16. #include <linux/interrupt.h>
  17. #include <linux/i2c.h>
  18. #include <linux/gpio.h>
  19. #include <linux/irq.h>
  20. #include <linux/delay.h>
  21. #include <linux/iio/iio.h>
  22. #include <linux/iio/sysfs.h>
  23. #include <linux/iio/trigger.h>
  24. #include <linux/iio/buffer.h>
  25. #include <linux/iio/common/st_sensors.h>
  26. #include "st_gyro.h"
  27. #define ST_GYRO_NUMBER_DATA_CHANNELS 3
  28. /* DEFAULT VALUE FOR SENSORS */
  29. #define ST_GYRO_DEFAULT_OUT_X_L_ADDR 0x28
  30. #define ST_GYRO_DEFAULT_OUT_Y_L_ADDR 0x2a
  31. #define ST_GYRO_DEFAULT_OUT_Z_L_ADDR 0x2c
  32. /* FULLSCALE */
  33. #define ST_GYRO_FS_AVL_250DPS 250
  34. #define ST_GYRO_FS_AVL_500DPS 500
  35. #define ST_GYRO_FS_AVL_2000DPS 2000
  36. /* CUSTOM VALUES FOR SENSOR 1 */
  37. #define ST_GYRO_1_WAI_EXP 0xd3
  38. #define ST_GYRO_1_ODR_ADDR 0x20
  39. #define ST_GYRO_1_ODR_MASK 0xc0
  40. #define ST_GYRO_1_ODR_AVL_100HZ_VAL 0x00
  41. #define ST_GYRO_1_ODR_AVL_200HZ_VAL 0x01
  42. #define ST_GYRO_1_ODR_AVL_400HZ_VAL 0x02
  43. #define ST_GYRO_1_ODR_AVL_800HZ_VAL 0x03
  44. #define ST_GYRO_1_PW_ADDR 0x20
  45. #define ST_GYRO_1_PW_MASK 0x08
  46. #define ST_GYRO_1_FS_ADDR 0x23
  47. #define ST_GYRO_1_FS_MASK 0x30
  48. #define ST_GYRO_1_FS_AVL_250_VAL 0x00
  49. #define ST_GYRO_1_FS_AVL_500_VAL 0x01
  50. #define ST_GYRO_1_FS_AVL_2000_VAL 0x02
  51. #define ST_GYRO_1_FS_AVL_250_GAIN IIO_DEGREE_TO_RAD(8750)
  52. #define ST_GYRO_1_FS_AVL_500_GAIN IIO_DEGREE_TO_RAD(17500)
  53. #define ST_GYRO_1_FS_AVL_2000_GAIN IIO_DEGREE_TO_RAD(70000)
  54. #define ST_GYRO_1_BDU_ADDR 0x23
  55. #define ST_GYRO_1_BDU_MASK 0x80
  56. #define ST_GYRO_1_DRDY_IRQ_ADDR 0x22
  57. #define ST_GYRO_1_DRDY_IRQ_INT2_MASK 0x08
  58. #define ST_GYRO_1_MULTIREAD_BIT true
  59. /* CUSTOM VALUES FOR SENSOR 2 */
  60. #define ST_GYRO_2_WAI_EXP 0xd4
  61. #define ST_GYRO_2_ODR_ADDR 0x20
  62. #define ST_GYRO_2_ODR_MASK 0xc0
  63. #define ST_GYRO_2_ODR_AVL_95HZ_VAL 0x00
  64. #define ST_GYRO_2_ODR_AVL_190HZ_VAL 0x01
  65. #define ST_GYRO_2_ODR_AVL_380HZ_VAL 0x02
  66. #define ST_GYRO_2_ODR_AVL_760HZ_VAL 0x03
  67. #define ST_GYRO_2_PW_ADDR 0x20
  68. #define ST_GYRO_2_PW_MASK 0x08
  69. #define ST_GYRO_2_FS_ADDR 0x23
  70. #define ST_GYRO_2_FS_MASK 0x30
  71. #define ST_GYRO_2_FS_AVL_250_VAL 0x00
  72. #define ST_GYRO_2_FS_AVL_500_VAL 0x01
  73. #define ST_GYRO_2_FS_AVL_2000_VAL 0x02
  74. #define ST_GYRO_2_FS_AVL_250_GAIN IIO_DEGREE_TO_RAD(8750)
  75. #define ST_GYRO_2_FS_AVL_500_GAIN IIO_DEGREE_TO_RAD(17500)
  76. #define ST_GYRO_2_FS_AVL_2000_GAIN IIO_DEGREE_TO_RAD(70000)
  77. #define ST_GYRO_2_BDU_ADDR 0x23
  78. #define ST_GYRO_2_BDU_MASK 0x80
  79. #define ST_GYRO_2_DRDY_IRQ_ADDR 0x22
  80. #define ST_GYRO_2_DRDY_IRQ_INT2_MASK 0x08
  81. #define ST_GYRO_2_MULTIREAD_BIT true
  82. /* CUSTOM VALUES FOR SENSOR 3 */
  83. #define ST_GYRO_3_WAI_EXP 0xd7
  84. #define ST_GYRO_3_ODR_ADDR 0x20
  85. #define ST_GYRO_3_ODR_MASK 0xc0
  86. #define ST_GYRO_3_ODR_AVL_95HZ_VAL 0x00
  87. #define ST_GYRO_3_ODR_AVL_190HZ_VAL 0x01
  88. #define ST_GYRO_3_ODR_AVL_380HZ_VAL 0x02
  89. #define ST_GYRO_3_ODR_AVL_760HZ_VAL 0x03
  90. #define ST_GYRO_3_PW_ADDR 0x20
  91. #define ST_GYRO_3_PW_MASK 0x08
  92. #define ST_GYRO_3_FS_ADDR 0x23
  93. #define ST_GYRO_3_FS_MASK 0x30
  94. #define ST_GYRO_3_FS_AVL_250_VAL 0x00
  95. #define ST_GYRO_3_FS_AVL_500_VAL 0x01
  96. #define ST_GYRO_3_FS_AVL_2000_VAL 0x02
  97. #define ST_GYRO_3_FS_AVL_250_GAIN IIO_DEGREE_TO_RAD(8750)
  98. #define ST_GYRO_3_FS_AVL_500_GAIN IIO_DEGREE_TO_RAD(17500)
  99. #define ST_GYRO_3_FS_AVL_2000_GAIN IIO_DEGREE_TO_RAD(70000)
  100. #define ST_GYRO_3_BDU_ADDR 0x23
  101. #define ST_GYRO_3_BDU_MASK 0x80
  102. #define ST_GYRO_3_DRDY_IRQ_ADDR 0x22
  103. #define ST_GYRO_3_DRDY_IRQ_INT2_MASK 0x08
  104. #define ST_GYRO_3_MULTIREAD_BIT true
  105. static const struct iio_chan_spec st_gyro_16bit_channels[] = {
  106. ST_SENSORS_LSM_CHANNELS(IIO_ANGL_VEL,
  107. BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
  108. ST_SENSORS_SCAN_X, 1, IIO_MOD_X, 's', IIO_LE, 16, 16,
  109. ST_GYRO_DEFAULT_OUT_X_L_ADDR),
  110. ST_SENSORS_LSM_CHANNELS(IIO_ANGL_VEL,
  111. BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
  112. ST_SENSORS_SCAN_Y, 1, IIO_MOD_Y, 's', IIO_LE, 16, 16,
  113. ST_GYRO_DEFAULT_OUT_Y_L_ADDR),
  114. ST_SENSORS_LSM_CHANNELS(IIO_ANGL_VEL,
  115. BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
  116. ST_SENSORS_SCAN_Z, 1, IIO_MOD_Z, 's', IIO_LE, 16, 16,
  117. ST_GYRO_DEFAULT_OUT_Z_L_ADDR),
  118. IIO_CHAN_SOFT_TIMESTAMP(3)
  119. };
  120. static const struct st_sensor_settings st_gyro_sensors_settings[] = {
  121. {
  122. .wai = ST_GYRO_1_WAI_EXP,
  123. .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
  124. .sensors_supported = {
  125. [0] = L3G4200D_GYRO_DEV_NAME,
  126. [1] = LSM330DL_GYRO_DEV_NAME,
  127. },
  128. .ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
  129. .odr = {
  130. .addr = ST_GYRO_1_ODR_ADDR,
  131. .mask = ST_GYRO_1_ODR_MASK,
  132. .odr_avl = {
  133. { 100, ST_GYRO_1_ODR_AVL_100HZ_VAL, },
  134. { 200, ST_GYRO_1_ODR_AVL_200HZ_VAL, },
  135. { 400, ST_GYRO_1_ODR_AVL_400HZ_VAL, },
  136. { 800, ST_GYRO_1_ODR_AVL_800HZ_VAL, },
  137. },
  138. },
  139. .pw = {
  140. .addr = ST_GYRO_1_PW_ADDR,
  141. .mask = ST_GYRO_1_PW_MASK,
  142. .value_on = ST_SENSORS_DEFAULT_POWER_ON_VALUE,
  143. .value_off = ST_SENSORS_DEFAULT_POWER_OFF_VALUE,
  144. },
  145. .enable_axis = {
  146. .addr = ST_SENSORS_DEFAULT_AXIS_ADDR,
  147. .mask = ST_SENSORS_DEFAULT_AXIS_MASK,
  148. },
  149. .fs = {
  150. .addr = ST_GYRO_1_FS_ADDR,
  151. .mask = ST_GYRO_1_FS_MASK,
  152. .fs_avl = {
  153. [0] = {
  154. .num = ST_GYRO_FS_AVL_250DPS,
  155. .value = ST_GYRO_1_FS_AVL_250_VAL,
  156. .gain = ST_GYRO_1_FS_AVL_250_GAIN,
  157. },
  158. [1] = {
  159. .num = ST_GYRO_FS_AVL_500DPS,
  160. .value = ST_GYRO_1_FS_AVL_500_VAL,
  161. .gain = ST_GYRO_1_FS_AVL_500_GAIN,
  162. },
  163. [2] = {
  164. .num = ST_GYRO_FS_AVL_2000DPS,
  165. .value = ST_GYRO_1_FS_AVL_2000_VAL,
  166. .gain = ST_GYRO_1_FS_AVL_2000_GAIN,
  167. },
  168. },
  169. },
  170. .bdu = {
  171. .addr = ST_GYRO_1_BDU_ADDR,
  172. .mask = ST_GYRO_1_BDU_MASK,
  173. },
  174. .drdy_irq = {
  175. .addr = ST_GYRO_1_DRDY_IRQ_ADDR,
  176. .mask_int2 = ST_GYRO_1_DRDY_IRQ_INT2_MASK,
  177. },
  178. .multi_read_bit = ST_GYRO_1_MULTIREAD_BIT,
  179. .bootime = 2,
  180. },
  181. {
  182. .wai = ST_GYRO_2_WAI_EXP,
  183. .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
  184. .sensors_supported = {
  185. [0] = L3GD20_GYRO_DEV_NAME,
  186. [1] = LSM330D_GYRO_DEV_NAME,
  187. [2] = LSM330DLC_GYRO_DEV_NAME,
  188. [3] = L3G4IS_GYRO_DEV_NAME,
  189. [4] = LSM330_GYRO_DEV_NAME,
  190. },
  191. .ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
  192. .odr = {
  193. .addr = ST_GYRO_2_ODR_ADDR,
  194. .mask = ST_GYRO_2_ODR_MASK,
  195. .odr_avl = {
  196. { 95, ST_GYRO_2_ODR_AVL_95HZ_VAL, },
  197. { 190, ST_GYRO_2_ODR_AVL_190HZ_VAL, },
  198. { 380, ST_GYRO_2_ODR_AVL_380HZ_VAL, },
  199. { 760, ST_GYRO_2_ODR_AVL_760HZ_VAL, },
  200. },
  201. },
  202. .pw = {
  203. .addr = ST_GYRO_2_PW_ADDR,
  204. .mask = ST_GYRO_2_PW_MASK,
  205. .value_on = ST_SENSORS_DEFAULT_POWER_ON_VALUE,
  206. .value_off = ST_SENSORS_DEFAULT_POWER_OFF_VALUE,
  207. },
  208. .enable_axis = {
  209. .addr = ST_SENSORS_DEFAULT_AXIS_ADDR,
  210. .mask = ST_SENSORS_DEFAULT_AXIS_MASK,
  211. },
  212. .fs = {
  213. .addr = ST_GYRO_2_FS_ADDR,
  214. .mask = ST_GYRO_2_FS_MASK,
  215. .fs_avl = {
  216. [0] = {
  217. .num = ST_GYRO_FS_AVL_250DPS,
  218. .value = ST_GYRO_2_FS_AVL_250_VAL,
  219. .gain = ST_GYRO_2_FS_AVL_250_GAIN,
  220. },
  221. [1] = {
  222. .num = ST_GYRO_FS_AVL_500DPS,
  223. .value = ST_GYRO_2_FS_AVL_500_VAL,
  224. .gain = ST_GYRO_2_FS_AVL_500_GAIN,
  225. },
  226. [2] = {
  227. .num = ST_GYRO_FS_AVL_2000DPS,
  228. .value = ST_GYRO_2_FS_AVL_2000_VAL,
  229. .gain = ST_GYRO_2_FS_AVL_2000_GAIN,
  230. },
  231. },
  232. },
  233. .bdu = {
  234. .addr = ST_GYRO_2_BDU_ADDR,
  235. .mask = ST_GYRO_2_BDU_MASK,
  236. },
  237. .drdy_irq = {
  238. .addr = ST_GYRO_2_DRDY_IRQ_ADDR,
  239. .mask_int2 = ST_GYRO_2_DRDY_IRQ_INT2_MASK,
  240. },
  241. .multi_read_bit = ST_GYRO_2_MULTIREAD_BIT,
  242. .bootime = 2,
  243. },
  244. {
  245. .wai = ST_GYRO_3_WAI_EXP,
  246. .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
  247. .sensors_supported = {
  248. [0] = L3GD20_GYRO_DEV_NAME,
  249. },
  250. .ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
  251. .odr = {
  252. .addr = ST_GYRO_3_ODR_ADDR,
  253. .mask = ST_GYRO_3_ODR_MASK,
  254. .odr_avl = {
  255. { 95, ST_GYRO_3_ODR_AVL_95HZ_VAL, },
  256. { 190, ST_GYRO_3_ODR_AVL_190HZ_VAL, },
  257. { 380, ST_GYRO_3_ODR_AVL_380HZ_VAL, },
  258. { 760, ST_GYRO_3_ODR_AVL_760HZ_VAL, },
  259. },
  260. },
  261. .pw = {
  262. .addr = ST_GYRO_3_PW_ADDR,
  263. .mask = ST_GYRO_3_PW_MASK,
  264. .value_on = ST_SENSORS_DEFAULT_POWER_ON_VALUE,
  265. .value_off = ST_SENSORS_DEFAULT_POWER_OFF_VALUE,
  266. },
  267. .enable_axis = {
  268. .addr = ST_SENSORS_DEFAULT_AXIS_ADDR,
  269. .mask = ST_SENSORS_DEFAULT_AXIS_MASK,
  270. },
  271. .fs = {
  272. .addr = ST_GYRO_3_FS_ADDR,
  273. .mask = ST_GYRO_3_FS_MASK,
  274. .fs_avl = {
  275. [0] = {
  276. .num = ST_GYRO_FS_AVL_250DPS,
  277. .value = ST_GYRO_3_FS_AVL_250_VAL,
  278. .gain = ST_GYRO_3_FS_AVL_250_GAIN,
  279. },
  280. [1] = {
  281. .num = ST_GYRO_FS_AVL_500DPS,
  282. .value = ST_GYRO_3_FS_AVL_500_VAL,
  283. .gain = ST_GYRO_3_FS_AVL_500_GAIN,
  284. },
  285. [2] = {
  286. .num = ST_GYRO_FS_AVL_2000DPS,
  287. .value = ST_GYRO_3_FS_AVL_2000_VAL,
  288. .gain = ST_GYRO_3_FS_AVL_2000_GAIN,
  289. },
  290. },
  291. },
  292. .bdu = {
  293. .addr = ST_GYRO_3_BDU_ADDR,
  294. .mask = ST_GYRO_3_BDU_MASK,
  295. },
  296. .drdy_irq = {
  297. .addr = ST_GYRO_3_DRDY_IRQ_ADDR,
  298. .mask_int2 = ST_GYRO_3_DRDY_IRQ_INT2_MASK,
  299. },
  300. .multi_read_bit = ST_GYRO_3_MULTIREAD_BIT,
  301. .bootime = 2,
  302. },
  303. };
  304. static int st_gyro_read_raw(struct iio_dev *indio_dev,
  305. struct iio_chan_spec const *ch, int *val,
  306. int *val2, long mask)
  307. {
  308. int err;
  309. struct st_sensor_data *gdata = iio_priv(indio_dev);
  310. switch (mask) {
  311. case IIO_CHAN_INFO_RAW:
  312. err = st_sensors_read_info_raw(indio_dev, ch, val);
  313. if (err < 0)
  314. goto read_error;
  315. return IIO_VAL_INT;
  316. case IIO_CHAN_INFO_SCALE:
  317. *val = 0;
  318. *val2 = gdata->current_fullscale->gain;
  319. return IIO_VAL_INT_PLUS_MICRO;
  320. case IIO_CHAN_INFO_SAMP_FREQ:
  321. *val = gdata->odr;
  322. return IIO_VAL_INT;
  323. default:
  324. return -EINVAL;
  325. }
  326. read_error:
  327. return err;
  328. }
  329. static int st_gyro_write_raw(struct iio_dev *indio_dev,
  330. struct iio_chan_spec const *chan, int val, int val2, long mask)
  331. {
  332. int err;
  333. switch (mask) {
  334. case IIO_CHAN_INFO_SCALE:
  335. err = st_sensors_set_fullscale_by_gain(indio_dev, val2);
  336. break;
  337. case IIO_CHAN_INFO_SAMP_FREQ:
  338. if (val2)
  339. return -EINVAL;
  340. mutex_lock(&indio_dev->mlock);
  341. err = st_sensors_set_odr(indio_dev, val);
  342. mutex_unlock(&indio_dev->mlock);
  343. return err;
  344. default:
  345. err = -EINVAL;
  346. }
  347. return err;
  348. }
  349. static ST_SENSORS_DEV_ATTR_SAMP_FREQ_AVAIL();
  350. static ST_SENSORS_DEV_ATTR_SCALE_AVAIL(in_anglvel_scale_available);
  351. static struct attribute *st_gyro_attributes[] = {
  352. &iio_dev_attr_sampling_frequency_available.dev_attr.attr,
  353. &iio_dev_attr_in_anglvel_scale_available.dev_attr.attr,
  354. NULL,
  355. };
  356. static const struct attribute_group st_gyro_attribute_group = {
  357. .attrs = st_gyro_attributes,
  358. };
  359. static const struct iio_info gyro_info = {
  360. .driver_module = THIS_MODULE,
  361. .attrs = &st_gyro_attribute_group,
  362. .read_raw = &st_gyro_read_raw,
  363. .write_raw = &st_gyro_write_raw,
  364. .debugfs_reg_access = &st_sensors_debugfs_reg_access,
  365. };
  366. #ifdef CONFIG_IIO_TRIGGER
  367. static const struct iio_trigger_ops st_gyro_trigger_ops = {
  368. .owner = THIS_MODULE,
  369. .set_trigger_state = ST_GYRO_TRIGGER_SET_STATE,
  370. };
  371. #define ST_GYRO_TRIGGER_OPS (&st_gyro_trigger_ops)
  372. #else
  373. #define ST_GYRO_TRIGGER_OPS NULL
  374. #endif
  375. int st_gyro_common_probe(struct iio_dev *indio_dev)
  376. {
  377. struct st_sensor_data *gdata = iio_priv(indio_dev);
  378. int irq = gdata->get_irq_data_ready(indio_dev);
  379. int err;
  380. indio_dev->modes = INDIO_DIRECT_MODE;
  381. indio_dev->info = &gyro_info;
  382. mutex_init(&gdata->tb.buf_lock);
  383. st_sensors_power_enable(indio_dev);
  384. err = st_sensors_check_device_support(indio_dev,
  385. ARRAY_SIZE(st_gyro_sensors_settings),
  386. st_gyro_sensors_settings);
  387. if (err < 0)
  388. return err;
  389. gdata->num_data_channels = ST_GYRO_NUMBER_DATA_CHANNELS;
  390. gdata->multiread_bit = gdata->sensor_settings->multi_read_bit;
  391. indio_dev->channels = gdata->sensor_settings->ch;
  392. indio_dev->num_channels = ST_SENSORS_NUMBER_ALL_CHANNELS;
  393. gdata->current_fullscale = (struct st_sensor_fullscale_avl *)
  394. &gdata->sensor_settings->fs.fs_avl[0];
  395. gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz;
  396. err = st_sensors_init_sensor(indio_dev,
  397. (struct st_sensors_platform_data *)&gyro_pdata);
  398. if (err < 0)
  399. return err;
  400. err = st_gyro_allocate_ring(indio_dev);
  401. if (err < 0)
  402. return err;
  403. if (irq > 0) {
  404. err = st_sensors_allocate_trigger(indio_dev,
  405. ST_GYRO_TRIGGER_OPS);
  406. if (err < 0)
  407. goto st_gyro_probe_trigger_error;
  408. }
  409. err = iio_device_register(indio_dev);
  410. if (err)
  411. goto st_gyro_device_register_error;
  412. dev_info(&indio_dev->dev, "registered gyroscope %s\n",
  413. indio_dev->name);
  414. return 0;
  415. st_gyro_device_register_error:
  416. if (irq > 0)
  417. st_sensors_deallocate_trigger(indio_dev);
  418. st_gyro_probe_trigger_error:
  419. st_gyro_deallocate_ring(indio_dev);
  420. return err;
  421. }
  422. EXPORT_SYMBOL(st_gyro_common_probe);
  423. void st_gyro_common_remove(struct iio_dev *indio_dev)
  424. {
  425. struct st_sensor_data *gdata = iio_priv(indio_dev);
  426. st_sensors_power_disable(indio_dev);
  427. iio_device_unregister(indio_dev);
  428. if (gdata->get_irq_data_ready(indio_dev) > 0)
  429. st_sensors_deallocate_trigger(indio_dev);
  430. st_gyro_deallocate_ring(indio_dev);
  431. }
  432. EXPORT_SYMBOL(st_gyro_common_remove);
  433. MODULE_AUTHOR("Denis Ciocca <denis.ciocca@st.com>");
  434. MODULE_DESCRIPTION("STMicroelectronics gyroscopes driver");
  435. MODULE_LICENSE("GPL v2");