blob: cb350b25d129d0796212389e2a8538e01628ae8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#
# st-lsm6ds3 drivers for STMicroelectronics combo sensor
#
config ST_LSM6DS3_IIO
tristate "STMicroelectronics LSM6DS3 sensor"
depends on (I2C || SPI) && SYSFS
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
help
This driver supports the STMicroelectronics LSM6DS3 sensor.
It is a gyroscope/accelerometer combo device.
This driver can be built as a module. The module will be called
st-lsm6ds3.
config ST_LSM6DS3_IIO_LIMIT_FIFO
int "Limit fifo read lenght (#n byte)"
depends on ST_LSM6DS3_IIO
range 0 8192
default 0
help
Limit atomic fifo read to #n byte. In some platform i2c/spi read
can be limited by software or hardware.
Set 0 to disable the limit.
config ST_LSM6DS3_IIO_SENSORS_WAKEUP
bool "All sensors can wake-up system during suspend"
depends on ST_LSM6DS3_IIO
default n
help
If disabled only tilt and significant motion can wake-up system
during suspend.
If enabled all sensors can wake-up system during suspend.
menuconfig ST_LSM6DS3_IIO_MASTER_SUPPORT
bool "I2C master controller"
depends on I2C && ST_LSM6DS3_IIO
default n
help
Added support for I2C master controller. Supported sensors up
to 4.
if ST_LSM6DS3_IIO_MASTER_SUPPORT
config ST_LSM6DS3_ENABLE_INTERNAL_PULLUP
bool "Enabled internals pull-up resistors"
default y
choice
prompt "External sensor 0"
default ST_LSM6DS3_IIO_EXT0_LIS3MDL
help
Choose the external sensor 0 connected to LSM6DS3.
config ST_LSM6DS3_IIO_EXT0_LIS3MDL
bool "LIS3MDL"
config ST_LSM6DS3_IIO_EXT0_AKM09912
bool "AKM09912"
endchoice
choice
prompt "External sensor 1"
default ST_LSM6DS3_IIO_EXT1_DISABLED
help
Choose the external sensor 1 connected to LSM6DS3.
config ST_LSM6DS3_IIO_EXT1_DISABLED
bool "Disabled"
config ST_LSM6DS3_IIO_EXT1_LPS22HB
bool "LPS22HB"
endchoice
endif
|