1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Accelerometer drivers 4# 5# When adding new entries keep the list in alphabetical order 6 7menu "Accelerometers" 8 9config ADIS16201 10 tristate "ADIS16201 Digital Inclinometer and similar" 11 depends on SPI 12 select IIO_ADIS_LIB 13 select IIO_ADIS_LIB_BUFFER if IIO_BUFFER 14 help 15 Say Y here to build support for Analog Devices Digital Inclinometers: 16 - ADIS16201 17 - ADIS16203 18 19 To compile this driver as a module, say M here: the module will 20 be called adis16201. 21 22config ADIS16209 23 tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" 24 depends on SPI 25 select IIO_ADIS_LIB 26 select IIO_ADIS_LIB_BUFFER if IIO_BUFFER 27 help 28 Say Y here to build support for Analog Devices adis16209 dual-axis digital inclinometer 29 and accelerometer. 30 31 To compile this driver as a module, say M here: the module will be 32 called adis16209. 33 34config ADXL313 35 tristate 36 select IIO_BUFFER 37 select IIO_KFIFO_BUF 38 39config ADXL313_I2C 40 tristate "Analog Devices ADXL313 3-Axis Digital Accelerometer I2C Driver" 41 depends on I2C 42 select ADXL313 43 select REGMAP_I2C 44 help 45 Say Y here if you want to build i2c support for the Analog Devices 46 ADXL313 3-axis digital accelerometer. 47 48 To compile this driver as a module, choose M here: the module 49 will be called adxl313_i2c and you will also get adxl313_core 50 for the core module. 51 52config ADXL313_SPI 53 tristate "Analog Devices ADXL313 3-Axis Digital Accelerometer SPI Driver" 54 depends on SPI 55 select ADXL313 56 select REGMAP_SPI 57 help 58 Say Y here if you want to build spi support for the Analog Devices 59 ADXL313 3-axis digital accelerometer. 60 61 To compile this driver as a module, choose M here: the module 62 will be called adxl313_spi and you will also get adxl313_core 63 for the core module. 64 65config ADXL345 66 tristate 67 select IIO_BUFFER 68 select IIO_KFIFO_BUF 69 70config ADXL345_I2C 71 tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer I2C Driver" 72 depends on !INPUT_ADXL34X 73 depends on I2C 74 select ADXL345 75 select REGMAP_I2C 76 help 77 Say Y here if you want to build support for the Analog Devices 78 ADXL345 or ADXL375 3-axis digital accelerometer. 79 80 To compile this driver as a module, choose M here: the module 81 will be called adxl345_i2c and you will also get adxl345_core 82 for the core module. INPUT_ADXL34X share compatibles with this 83 driver, do not add both modules to the kernel. 84 85config ADXL345_SPI 86 tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer SPI Driver" 87 depends on !INPUT_ADXL34X 88 depends on SPI 89 select ADXL345 90 select REGMAP_SPI 91 help 92 Say Y here if you want to build support for the Analog Devices 93 ADXL345 or ADXL375 3-axis digital accelerometer. 94 95 To compile this driver as a module, choose M here: the module 96 will be called adxl345_spi and you will also get adxl345_core 97 for the core module. INPUT_ADXL34X share compatibles with this 98 driver, do not add both modules to the kernel. 99 100config ADXL355 101 tristate 102 103config ADXL355_I2C 104 tristate "Analog Devices ADXL355 3-Axis Digital Accelerometer I2C Driver" 105 depends on I2C 106 select ADXL355 107 select REGMAP_I2C 108 select IIO_BUFFER 109 select IIO_TRIGGERED_BUFFER 110 help 111 Say Y here if you want to build i2c support for the Analog Devices 112 ADXL355 3-axis digital accelerometer. 113 114 To compile this driver as a module, choose M here: the module 115 will be called adxl355_i2c and you will also get adxl355_core 116 for the core module. 117 118config ADXL355_SPI 119 tristate "Analog Devices ADXL355 3-Axis Digital Accelerometer SPI Driver" 120 depends on SPI 121 select ADXL355 122 select REGMAP_SPI 123 select IIO_BUFFER 124 select IIO_TRIGGERED_BUFFER 125 help 126 Say Y here if you want to build spi support for the Analog Devices 127 ADXL355 3-axis digital accelerometer. 128 129 To compile this driver as a module, choose M here: the module 130 will be called adxl355_spi and you will also get adxl355_core 131 for the core module. 132 133config ADXL367 134 tristate 135 select IIO_BUFFER 136 select IIO_TRIGGERED_BUFFER 137 138config ADXL367_SPI 139 tristate "Analog Devices ADXL367 3-Axis Accelerometer SPI Driver" 140 depends on SPI 141 select ADXL367 142 select REGMAP_SPI 143 help 144 Say yes here to add support for the Analog Devices ADXL367 triaxial 145 acceleration sensor. 146 To compile this driver as a module, choose M here: the 147 module will be called adxl367_spi. 148 149config ADXL367_I2C 150 tristate "Analog Devices ADXL367 3-Axis Accelerometer I2C Driver" 151 depends on I2C 152 select ADXL367 153 select REGMAP_I2C 154 help 155 Say yes here to add support for the Analog Devices ADXL367 triaxial 156 acceleration sensor. 157 To compile this driver as a module, choose M here: the 158 module will be called adxl367_i2c. 159 160config ADXL372 161 tristate 162 select IIO_BUFFER 163 select IIO_TRIGGERED_BUFFER 164 165config ADXL372_SPI 166 tristate "Analog Devices ADXL371/ADXL372 3-Axis Accelerometer SPI Driver" 167 depends on SPI 168 select ADXL372 169 select REGMAP_SPI 170 help 171 Say yes here to add support for the Analog Devices ADXL371/ADXL372 172 triaxial acceleration sensor. 173 To compile this driver as a module, choose M here: the 174 module will be called adxl372_spi. 175 176config ADXL372_I2C 177 tristate "Analog Devices ADXL371/ADXL372 3-Axis Accelerometer I2C Driver" 178 depends on I2C 179 select ADXL372 180 select REGMAP_I2C 181 help 182 Say yes here to add support for the Analog Devices ADXL371/ADXL372 183 triaxial acceleration sensor. 184 To compile this driver as a module, choose M here: the 185 module will be called adxl372_i2c. 186 187config ADXL380 188 tristate 189 select IIO_BUFFER 190 select IIO_TRIGGERED_BUFFER 191 192config ADXL380_SPI 193 tristate "Analog Devices ADXL380 3-Axis Accelerometer SPI Driver" 194 depends on SPI 195 select ADXL380 196 select REGMAP_SPI 197 help 198 Say yes here to add support for the Analog Devices ADXL380 triaxial 199 acceleration sensor. 200 To compile this driver as a module, choose M here: the 201 module will be called adxl380_spi. 202 203config ADXL380_I2C 204 tristate "Analog Devices ADXL380 3-Axis Accelerometer I2C Driver" 205 depends on I2C 206 select ADXL380 207 select REGMAP_I2C 208 help 209 Say yes here to add support for the Analog Devices ADXL380 triaxial 210 acceleration sensor. 211 To compile this driver as a module, choose M here: the 212 module will be called adxl380_i2c. 213 214config BMA180 215 tristate "Bosch BMA023/BMA1x0/BMA250 3-Axis Accelerometer Driver" 216 depends on I2C && INPUT_BMA150=n 217 select IIO_BUFFER 218 select IIO_TRIGGERED_BUFFER 219 help 220 Say Y here if you want to build a driver for the Bosch BMA023, BMA150 221 BMA180, BMA250 or SMB380 triaxial acceleration sensor. 222 223 To compile this driver as a module, choose M here: the 224 module will be called bma180. 225 226config BMA220 227 tristate "Bosch BMA220 3-Axis Accelerometer Driver" 228 depends on I2C || SPI 229 select REGMAP 230 select IIO_BUFFER 231 select IIO_TRIGGERED_BUFFER 232 select BMA220_I2C if I2C 233 select BMA220_SPI if SPI 234 help 235 Say yes here to add support for the Bosch BMA220 triaxial 236 acceleration sensor. 237 238 To compile this driver as a module, choose M here: the 239 module will be called bma220_core and you will also get 240 bma220_i2c if I2C is enabled and bma220_spi if SPI is 241 enabled. 242 243config BMA220_I2C 244 tristate 245 select REGMAP_I2C 246 depends on BMA220 247 248config BMA220_SPI 249 tristate 250 select REGMAP_SPI 251 depends on BMA220 252 253config BMA400 254 tristate "Bosch BMA400 3-Axis Accelerometer Driver" 255 select REGMAP 256 select IIO_BUFFER 257 select IIO_TRIGGERED_BUFFER 258 select BMA400_I2C if I2C 259 select BMA400_SPI if SPI 260 help 261 Say Y here if you want to build a driver for the Bosch BMA400 262 triaxial acceleration sensor. 263 264 To compile this driver as a module, choose M here: the 265 module will be called bma400_core and you will also get 266 bma400_i2c if I2C is enabled and bma400_spi if SPI is 267 enabled. 268 269config BMA400_I2C 270 tristate 271 select REGMAP_I2C 272 depends on BMA400 273 274config BMA400_SPI 275 tristate 276 select REGMAP_SPI 277 depends on BMA400 278 279config BMC150_ACCEL 280 tristate "Bosch BMC150 Accelerometer Driver" 281 select IIO_BUFFER 282 select IIO_TRIGGERED_BUFFER 283 select REGMAP 284 select BMC150_ACCEL_I2C if I2C 285 select BMC150_ACCEL_SPI if SPI 286 help 287 Say yes here to build support for the following Bosch accelerometers: 288 BMA222, BMA222E, BMA250E, BMA253, BMA254, BMA255, BMA280, BMC150, BMC156 289 BMI055. 290 291 Note that some of these are combo modules: 292 - BMC150/BMC156: accelerometer and magnetometer 293 - BMI055: accelerometer and gyroscope 294 295 This driver is only implementing accelerometer part, which has 296 its own address and register map. 297 298config BMC150_ACCEL_I2C 299 tristate 300 select REGMAP_I2C 301 302config BMC150_ACCEL_SPI 303 tristate 304 select REGMAP_SPI 305 306config BMI088_ACCEL 307 tristate "Bosch BMI088 Accelerometer Driver" 308 select IIO_BUFFER 309 select IIO_TRIGGERED_BUFFER 310 select REGMAP 311 select BMI088_ACCEL_SPI if SPI 312 select BMI088_ACCEL_I2C if I2C 313 help 314 Say yes here to build support for the following Bosch accelerometers: 315 BMI088, BMI085, BMI090L. Note that all of these are combo module that 316 include both accelerometer and gyroscope. 317 318 This driver only implements the accelerometer part, which has its own 319 address and register map. BMG160 provides the gyroscope driver. 320 321config BMI088_ACCEL_I2C 322 tristate 323 select REGMAP_I2C 324 325config BMI088_ACCEL_SPI 326 tristate 327 select REGMAP_SPI 328 329config DA280 330 tristate "MiraMEMS DA280 3-axis 14-bit digital accelerometer driver" 331 depends on I2C 332 help 333 Say yes here to build support for the MiraMEMS DA280 3-axis 14-bit 334 digital accelerometer. 335 336 To compile this driver as a module, choose M here: the 337 module will be called da280. 338 339config DA311 340 tristate "MiraMEMS DA311 3-axis 12-bit digital accelerometer driver" 341 depends on I2C 342 help 343 Say yes here to build support for the MiraMEMS DA311 3-axis 12-bit 344 digital accelerometer. 345 346 To compile this driver as a module, choose M here: the 347 module will be called da311. 348 349config DMARD06 350 tristate "Domintech DMARD06 Digital Accelerometer Driver" 351 depends on I2C 352 help 353 Say yes here to build support for the Domintech low-g tri-axial 354 digital accelerometers: DMARD05, DMARD06, DMARD07. 355 356 To compile this driver as a module, choose M here: the 357 module will be called dmard06. 358 359config DMARD09 360 tristate "Domintech DMARD09 3-axis Accelerometer Driver" 361 depends on I2C 362 help 363 Say yes here to get support for the Domintech DMARD09 3-axis 364 accelerometer. 365 366 Choosing M will build the driver as a module. If so, the module 367 will be called dmard09. 368 369config DMARD10 370 tristate "Domintech DMARD10 3-axis Accelerometer Driver" 371 depends on I2C 372 help 373 Say yes here to get support for the Domintech DMARD10 3-axis 374 accelerometer. 375 376 Choosing M will build the driver as a module. If so, the module 377 will be called dmard10. 378 379config FXLS8962AF 380 tristate 381 depends on I2C || !I2C # cannot be built-in for modular I2C 382 select IIO_BUFFER 383 select IIO_KFIFO_BUF 384 385config FXLS8962AF_I2C 386 tristate "NXP FXLS8962AF/FXLS8964AF Accelerometer I2C Driver" 387 depends on I2C 388 select FXLS8962AF 389 select REGMAP_I2C 390 help 391 Say yes here to build support for the NXP 3-axis automotive 392 accelerometer FXLS8962AF/FXLS8964AF with I2C support. 393 394 To compile this driver as a module, choose M here: the module 395 will be called fxls8962af_i2c. 396 397config FXLS8962AF_SPI 398 tristate "NXP FXLS8962AF/FXLS8964AF Accelerometer SPI Driver" 399 depends on SPI 400 depends on I2C || !I2C 401 select FXLS8962AF 402 select REGMAP_SPI 403 help 404 Say yes here to build support for the NXP 3-axis automotive 405 accelerometer FXLS8962AF/FXLS8964AF with SPI support. 406 407 To compile this driver as a module, choose M here: the module 408 will be called fxls8962af_spi. 409 410config HID_SENSOR_ACCEL_3D 411 depends on HID_SENSOR_HUB 412 select IIO_BUFFER 413 select HID_SENSOR_IIO_COMMON 414 select HID_SENSOR_IIO_TRIGGER 415 tristate "HID Accelerometers 3D" 416 help 417 Say yes here to build support for the HID SENSOR 418 accelerometers 3D. 419 420 To compile this driver as a module, choose M here: the 421 module will be called hid-sensor-accel-3d. 422 423config IIO_CROS_EC_ACCEL_LEGACY 424 tristate "ChromeOS EC Legacy Accelerometer Sensor" 425 depends on IIO_CROS_EC_SENSORS_CORE 426 help 427 Say yes here to get support for accelerometers on Chromebook using 428 legacy EC firmware. 429 Sensor data is retrieved through IO memory. 430 Newer devices should use IIO_CROS_EC_SENSORS. 431 432config IIO_ST_ACCEL_3AXIS 433 tristate "STMicroelectronics accelerometers 3-Axis Driver" 434 depends on (I2C || SPI_MASTER) && SYSFS 435 depends on !SENSORS_LIS3_I2C 436 depends on !SENSORS_LIS3_SPI 437 select IIO_ST_SENSORS_CORE 438 select IIO_TRIGGERED_BUFFER if (IIO_BUFFER) 439 help 440 Say yes here to build support for STMicroelectronics accelerometers: 441 LSM303C, LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC, 442 LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12, H3LIS331DL, 443 LNG2DM, LIS3DE, LIS2DE12, LIS2HH12 444 445 Also need to enable at least one of I2C and SPI interface drivers 446 below. 447 448config IIO_ST_ACCEL_I2C_3AXIS 449 tristate "STMicroelectronics accelerometers 3-Axis I2C Interface" 450 depends on I2C && IIO_ST_ACCEL_3AXIS 451 default I2C && IIO_ST_ACCEL_3AXIS 452 select IIO_ST_SENSORS_I2C 453 help 454 Build support for STMicroelectronics accelerometers I2C interface. 455 456 To compile this driver as a module, choose M here. The module 457 will be called st_accel_i2c. 458 459config IIO_ST_ACCEL_SPI_3AXIS 460 tristate "STMicroelectronics accelerometers 3-Axis SPI Interface" 461 depends on SPI_MASTER && IIO_ST_ACCEL_3AXIS 462 default SPI_MASTER && IIO_ST_ACCEL_3AXIS 463 select IIO_ST_SENSORS_SPI 464 help 465 Build support for STMicroelectronics accelerometers SPI interface. 466 467 To compile this driver as a module, choose M here. The module 468 will be called st_accel_spi. 469 470config IIO_KX022A 471 tristate 472 select IIO_BUFFER 473 select IIO_TRIGGERED_BUFFER 474 475config IIO_KX022A_SPI 476 tristate "Kionix KX022A tri-axis digital accelerometer SPI interface" 477 depends on SPI 478 select IIO_KX022A 479 select REGMAP_SPI 480 help 481 Enable support for the Kionix digital tri-axis accelerometers 482 connected to SPI interface. Supported devices are: 483 KX022A, KX132-1211, KX132ACR-LBZ 484 485config IIO_KX022A_I2C 486 tristate "Kionix KX022A tri-axis digital accelerometer I2C interface" 487 depends on I2C 488 select IIO_KX022A 489 select REGMAP_I2C 490 help 491 Enable support for the Kionix digital tri-axis accelerometers 492 connected to I2C interface. Supported devices are: 493 KX022A, KX132-1211, KX132ACR-LBZ 494 495config KXSD9 496 tristate "Kionix KXSD9 Accelerometer Driver" 497 select IIO_BUFFER 498 select IIO_TRIGGERED_BUFFER 499 help 500 Say yes here to build support for the Kionix KXSD9 accelerometer. 501 It can be accessed using an (optional) SPI or I2C interface. 502 503 To compile this driver as a module, choose M here: the module 504 will be called kxsd9. 505 506config KXSD9_SPI 507 tristate "Kionix KXSD9 SPI transport" 508 depends on KXSD9 509 depends on SPI 510 default KXSD9 511 select REGMAP_SPI 512 help 513 Say yes here to enable the Kionix KXSD9 accelerometer 514 SPI transport channel. 515 516config KXSD9_I2C 517 tristate "Kionix KXSD9 I2C transport" 518 depends on KXSD9 519 depends on I2C 520 default KXSD9 521 select REGMAP_I2C 522 help 523 Say yes here to enable the Kionix KXSD9 accelerometer 524 I2C transport channel. 525 526config KXCJK1013 527 tristate "Kionix 3-Axis Accelerometer Driver" 528 depends on I2C 529 select IIO_BUFFER 530 select IIO_TRIGGERED_BUFFER 531 help 532 Say Y here if you want to build a driver for the Kionix KXCJK-1013 533 triaxial acceleration sensor. This driver also supports KXCJ9-1008, 534 KXTJ2-1009 and KXTF9. 535 536 To compile this driver as a module, choose M here: the module will 537 be called kxcjk-1013. 538 539config MC3230 540 tristate "mCube MC3230 Digital Accelerometer Driver" 541 depends on I2C 542 help 543 Say yes here to build support for the mCube MC3230 low-g tri-axial 544 digital accelerometer. 545 546 To compile this driver as a module, choose M here: the 547 module will be called mc3230. 548 549config MMA7455 550 tristate 551 select IIO_BUFFER 552 select IIO_TRIGGERED_BUFFER 553 554config MMA7455_I2C 555 tristate "Freescale MMA7455L/MMA7456L Accelerometer I2C Driver" 556 depends on I2C 557 select MMA7455 558 select REGMAP_I2C 559 help 560 Say yes here to build support for the Freescale MMA7455L and 561 MMA7456L 3-axis accelerometer. 562 563 To compile this driver as a module, choose M here: the module 564 will be called mma7455_i2c. 565 566config MMA7455_SPI 567 tristate "Freescale MMA7455L/MMA7456L Accelerometer SPI Driver" 568 depends on SPI_MASTER 569 select MMA7455 570 select REGMAP_SPI 571 help 572 Say yes here to build support for the Freescale MMA7455L and 573 MMA7456L 3-axis accelerometer. 574 575 To compile this driver as a module, choose M here: the module 576 will be called mma7455_spi. 577 578config MMA7660 579 tristate "Freescale MMA7660FC 3-Axis Accelerometer Driver" 580 depends on I2C 581 help 582 Say yes here to get support for the Freescale MMA7660FC 3-Axis 583 accelerometer. 584 585 Choosing M will build the driver as a module. If so, the module 586 will be called mma7660. 587 588config MMA8452 589 tristate "Freescale / NXP MMA8452Q and similar Accelerometers Driver" 590 depends on I2C 591 select IIO_BUFFER 592 select IIO_TRIGGERED_BUFFER 593 help 594 Say yes here to build support for the following Freescale / NXP 3-axis 595 accelerometers: MMA8451Q, MMA8452Q, MMA8453Q, MMA8652FC, MMA8653FC, 596 FXLS8471Q. 597 598 To compile this driver as a module, choose M here: the module 599 will be called mma8452. 600 601config MMA9551_CORE 602 tristate 603 604config MMA9551 605 tristate "Freescale MMA9551L Intelligent Motion-Sensing Platform Driver" 606 depends on I2C 607 select MMA9551_CORE 608 609 help 610 Say yes here to build support for the Freescale MMA9551L 611 Intelligent Motion-Sensing Platform Driver. 612 613 To compile this driver as a module, choose M here: the module 614 will be called mma9551. 615 616config MMA9553 617 tristate "Freescale MMA9553L Intelligent Pedometer Platform Driver" 618 depends on I2C 619 select MMA9551_CORE 620 help 621 Say yes here to build support for the Freescale MMA9553L 622 Intelligent Pedometer Platform Driver. 623 624 To compile this driver as a module, choose M here: the module 625 will be called mma9553. 626 627config MSA311 628 tristate "MEMSensing Digital 3-Axis Accelerometer Driver" 629 depends on I2C 630 select IIO_BUFFER 631 select IIO_TRIGGERED_BUFFER 632 select REGMAP_I2C 633 help 634 Say yes here to build support for the MEMSensing MSA311 635 accelerometer driver. 636 637 To compile this driver as a module, choose M here: the module will be 638 called msa311. 639 640config MXC4005 641 tristate "Memsic MXC4005XC 3-Axis Accelerometer Driver" 642 depends on I2C 643 select IIO_BUFFER 644 select IIO_TRIGGERED_BUFFER 645 select REGMAP_I2C 646 help 647 Say yes here to build support for the Memsic MXC4005XC 3-axis 648 accelerometer. 649 650 To compile this driver as a module, choose M. The module will be 651 called mxc4005. 652 653config MXC6255 654 tristate "Memsic MXC6255 Orientation Sensing Accelerometer Driver" 655 depends on I2C 656 select REGMAP_I2C 657 help 658 Say yes here to build support for the Memsic MXC6255 Orientation 659 Sensing Accelerometer Driver. 660 661 To compile this driver as a module, choose M here: the module will be 662 called mxc6255. 663 664config SCA3000 665 select IIO_BUFFER 666 select IIO_KFIFO_BUF 667 depends on SPI 668 tristate "VTI SCA3000 series accelerometers" 669 help 670 Say Y here to build support for the VTI SCA3000 series of SPI 671 accelerometers. These devices use a hardware ring buffer. 672 673 To compile this driver as a module, say M here: the module will be 674 called sca3000. 675 676config SCA3300 677 tristate "Murata SCA3300 3-Axis Accelerometer Driver" 678 depends on SPI 679 select CRC8 680 select IIO_BUFFER 681 select IIO_TRIGGERED_BUFFER 682 help 683 Say yes here to build support for Murata SCA3300 3-Axis 684 accelerometer. 685 686 To compile this driver as a module, choose M here: the module will be 687 called sca3300. 688 689config STK8312 690 tristate "Sensortek STK8312 3-Axis Accelerometer Driver" 691 depends on I2C 692 select IIO_BUFFER 693 select IIO_TRIGGERED_BUFFER 694 help 695 Say yes here to get support for the Sensortek STK8312 3-axis 696 accelerometer. 697 698 Choosing M will build the driver as a module. If so, the module 699 will be called stk8312. 700 701config STK8BA50 702 tristate "Sensortek STK8BA50 3-Axis Accelerometer Driver" 703 depends on I2C 704 select IIO_BUFFER 705 select IIO_TRIGGERED_BUFFER 706 help 707 Say yes here to get support for the Sensortek STK8BA50 3-axis 708 accelerometer. 709 710 Choosing M will build the driver as a module. If so, the module 711 will be called stk8ba50. 712 713endmenu 714