1# ST Microelectronics IIS2ICLX 2-axis accelerometer sensor driver
2
3# Copyright (c) 2020 STMicroelectronics
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig IIS2ICLX
7	bool "IIS2ICLX I2C/SPI accelerometer Chip"
8	default y
9	depends on DT_HAS_ST_IIS2ICLX_ENABLED
10	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2ICLX),i2c)
11	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2ICLX),spi)
12	select HAS_STMEMSC
13	select USE_STDC_IIS2ICLX
14	help
15	  Enable driver for IIS2ICLX accelerometer
16	  sensor.
17
18if IIS2ICLX
19
20choice IIS2ICLX_TRIGGER_MODE
21	prompt "Trigger mode"
22	help
23	  Specify the type of triggering to be used by the driver.
24
25config IIS2ICLX_TRIGGER_NONE
26	bool "No trigger"
27
28config IIS2ICLX_TRIGGER_GLOBAL_THREAD
29	bool "Use global thread"
30	depends on GPIO
31	select IIS2ICLX_TRIGGER
32
33config IIS2ICLX_TRIGGER_OWN_THREAD
34	bool "Use own thread"
35	depends on GPIO
36	select IIS2ICLX_TRIGGER
37
38endchoice
39
40config IIS2ICLX_TRIGGER
41	bool
42
43if IIS2ICLX_TRIGGER
44
45config IIS2ICLX_THREAD_PRIORITY
46	int "Thread priority"
47	depends on IIS2ICLX_TRIGGER_OWN_THREAD
48	default 10
49	help
50	  Priority of thread used by the driver to handle interrupts.
51
52config IIS2ICLX_THREAD_STACK_SIZE
53	int "Thread stack size"
54	depends on IIS2ICLX_TRIGGER_OWN_THREAD
55	default 1024
56	help
57	  Stack size of thread used by the driver to handle interrupts.
58
59endif # IIS2ICLX_TRIGGER
60
61config IIS2ICLX_ENABLE_TEMP
62	bool "Temperature"
63	help
64	  Enable/disable temperature
65
66config IIS2ICLX_SENSORHUB
67	bool "I2C sensorhub feature"
68	help
69	  Enable/disable internal sensorhub. You can enable
70	  a maximum of two external sensors (if more than two are enabled
71	  the system would enumerate only the first two found)
72
73if IIS2ICLX_SENSORHUB
74
75config IIS2ICLX_EXT_LIS2MDL
76	bool "LIS2MDL as external sensor"
77
78config IIS2ICLX_EXT_IIS2MDC
79	bool "IIS2MDC as external sensor"
80
81config IIS2ICLX_EXT_LPS22HH
82	bool "LPS22HH as external sensor"
83
84config IIS2ICLX_EXT_HTS221
85	bool "HTS221 as external sensor"
86
87config IIS2ICLX_EXT_LPS22HB
88	bool "LPS22HB as external sensor"
89
90endif # IIS2ICLX_SENSORHUB
91
92endif # IIS2ICLX
93