1# JEDEC JC 42.4 compliant temperature sensor configuration options
2
3# Copyright (c) 2016 Intel Corporation
4# Copyright (c) 2024 Vogl Electronic GmbH
5# SPDX-License-Identifier: Apache-2.0
6
7menuconfig JC42
8	bool "JC42 temperature sensor"
9	default y
10	depends on DT_HAS_JEDEC_JC_42_4_TEMP_ENABLED
11	select I2C
12	help
13	  Enable driver for JC42 temperature sensor.
14
15if JC42
16
17choice
18	prompt "JC42 trigger mode"
19	default JC42_TRIGGER_NONE
20
21config JC42_TRIGGER_NONE
22	bool "No trigger"
23
24config JC42_TRIGGER_GLOBAL_THREAD
25	depends on GPIO
26	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_JEDEC_JC_42_4_TEMP),int-gpios)
27	select JC42_TRIGGER
28	bool "Use global thread"
29
30config JC42_TRIGGER_OWN_THREAD
31	depends on GPIO
32	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_JEDEC_JC_42_4_TEMP),int-gpios)
33	select JC42_TRIGGER
34	bool "Use own thread"
35
36endchoice
37
38config JC42_TRIGGER
39	bool
40
41config JC42_THREAD_STACK_SIZE
42	int "Sensor delayed work thread stack size"
43	depends on JC42_TRIGGER_OWN_THREAD
44	default 1024
45
46config JC42_THREAD_PRIORITY
47	int "JC42 thread priority"
48	depends on JC42_TRIGGER_OWN_THREAD
49	default 10
50
51endif # JC42
52