1# FXLS8974 3-axis accelerometer
2
3# Copyright 2024 NXP
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig FXLS8974
7	bool "FXLS8974 accelerometer driver"
8	default y
9	depends on DT_HAS_NXP_FXLS8974_ENABLED
10	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXLS8974),i2c)
11	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXLS8974),spi)
12	help
13	  Enable driver for the FXLS8974 accelerometer
14
15if FXLS8974
16
17choice
18	prompt "Trigger mode"
19	default FXLS8974_TRIGGER_NONE
20
21config FXLS8974_TRIGGER_NONE
22	bool "No trigger"
23
24config FXLS8974_TRIGGER_GLOBAL_THREAD
25	bool "Use global thread"
26	depends on GPIO
27	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_FXLS8974),int1-gpios) || \
28		   $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_FXLS8974),int2-gpios)
29	select FXLS8974_TRIGGER
30
31config FXLS8974_TRIGGER_OWN_THREAD
32	bool "Use own thread"
33	select FXLS8974_TRIGGER
34
35endchoice
36
37config FXLS8974_TRIGGER
38	bool
39
40config FXLS8974_DRDY_INT1
41	bool "Data ready interrupt to INT1 pin"
42	depends on FXLS8974_TRIGGER
43	help
44	  Say Y to route data ready interrupt to INT1 pin. Say N to route to
45	  INT2 pin.
46
47if FXLS8974_TRIGGER
48
49config FXLS8974_THREAD_PRIORITY
50	int "Own thread priority"
51	depends on FXLS8974_TRIGGER_OWN_THREAD
52	default 10
53
54config FXLS8974_THREAD_STACK_SIZE
55	int "Own thread stack size"
56	depends on FXLS8974_TRIGGER_OWN_THREAD
57	default 1024
58
59endif # FXLS8974_TRIGGER
60
61endif # FXLS8974
62