1# TSL2540 Ambient Light Sensor configuration options 2 3# Copyright (c) 2022 T-Mobile USA, Inc. 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig TSL2540 7 bool "TSL2540 Ambient Light Sensor" 8 default y 9 depends on DT_HAS_AMS_TSL2540_ENABLED 10 select I2C 11 help 12 Enable driver for TSL2540 sensors. 13 14if TSL2540 15 16config TSL2540_TRIGGER 17 bool 18 19choice 20 prompt "Trigger mode" 21 default TSL2540_TRIGGER_NONE 22 help 23 Specify the type of triggering to be used by the driver. 24 25config TSL2540_TRIGGER_NONE 26 bool "No trigger" 27 28config TSL2540_TRIGGER_GLOBAL_THREAD 29 bool "Use global thread" 30 depends on GPIO 31 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AMS_TSL2540),int-gpios) 32 select TSL2540_TRIGGER 33 34config TSL2540_TRIGGER_OWN_THREAD 35 bool "Use own thread" 36 depends on GPIO 37 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AMS_TSL2540),int-gpios) 38 select TSL2540_TRIGGER 39 40endchoice 41 42config TSL2540_THREAD_PRIORITY 43 int "Thread priority" 44 depends on TSL2540_TRIGGER_OWN_THREAD 45 default 10 46 help 47 Priority of thread used by the driver to handle interrupts. 48 49config TSL2540_THREAD_STACK_SIZE 50 int "Thread stack size" 51 depends on TSL2540_TRIGGER_OWN_THREAD 52 default 1024 53 help 54 Stack size of thread used by the driver to handle interrupts. 55 56endif # TSL2540 57