1# Copyright (c) 2023 Caspar Friedrich <c.s.w.friedrich@gmail.com>
2# SPDX-License-Identifier: Apache-2.0
3
4config ADC_TLA202X
5	bool "Texas Instruments TLA202x Low-Power ADC"
6	default y
7	depends on DT_HAS_TI_TLA2021_ENABLED \
8		|| DT_HAS_TI_TLA2022_ENABLED \
9		|| DT_HAS_TI_TLA2024_ENABLED
10	select I2C
11	select ADC_CONFIGURABLE_INPUTS if DT_HAS_TI_TLA2024_ENABLED
12	help
13	  TLA202x Cost-Optimized, Ultra-Small, 12-Bit, System-Monitoring ADCs
14
15if ADC_TLA202X
16
17config ADC_TLA202X_INIT_PRIORITY
18	int "Priority for the driver initialization"
19	default 80
20	help
21	  Fine tune the priority for the driver initialization. Make sure it's
22	  higher (-> lower priority) than I2C_INIT_PRIORITY.
23
24if ADC_ASYNC
25
26config ADC_TLA202X_ACQUISITION_THREAD_PRIORITY
27	int "Priority for the data acquisition thread"
28	default 0
29	help
30	  Execution priority for the internal data acquisition thread.
31
32config ADC_TLA202X_ACQUISITION_THREAD_STACK_SIZE
33	int "Stack size for the data acquisition thread"
34	default 512
35	help
36	  Stack size for the internal data acquisition thread. Requires room
37	  for I2C operations.
38
39endif # ADC_ASYNC
40
41endif # ADC_TLA202X
42