1# LM75 temperature sensor config 2 3# Copyright (c) 2021 Leica Geosystems AG 4# SPDX-License-Identifier: Apache-2.0 5 6config LM75 7 bool "LM75 Temperature Sensor" 8 default y 9 depends on DT_HAS_LM75_ENABLED 10 select I2C 11 help 12 Enable the driver for the LM75 digital temperature Sensor with 2-wire 13 interface. 14 15if LM75 16 17choice 18 prompt "Trigger mode" 19 default LM75_TRIGGER_NONE 20 help 21 Specify the type of triggering to be used by the driver. 22 23config LM75_TRIGGER_NONE 24 bool "No trigger" 25 26config LM75_TRIGGER_GLOBAL_THREAD 27 bool "Use global thread" 28 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_LM75),int-gpios) 29 depends on GPIO 30 select LM75_TRIGGER 31 32endchoice 33 34config LM75_TRIGGER 35 bool 36 37if LM75_TRIGGER 38 39config LM75_TRIGGER_THREAD_STACK_SIZE 40 int "Stack size for the trigger workqueue thread" 41 default 512 42 help 43 Size of the stack used for the internal trigger workqueue thread. 44 45config LM75_TRIGGER_THREAD_PRIO 46 int "Priority for the trigger workqueue thread" 47 default 0 48 help 49 Priority level for the internal trigger workqueue thread. 50 51endif # LM75_TRIGGER 52 53endif # LM75 54