1# Copyright (c) 2023 PHYTEC Messtechnik GmbH 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig TMD2620 5 bool "OSRAM-AMS TMD2620 Proxmimity Sensor" 6 default y 7 depends on DT_HAS_AMS_TMD2620_ENABLED 8 select I2C 9 help 10 Enable driver for TMD2620 Sensor 11 12if TMD2620 13 14choice 15 prompt "Trigger Mode" 16 default TMD2620_TRIGGER_NONE 17 help 18 Specify the type of triggering to be used by the driver. 19 20config TMD2620_TRIGGER_NONE 21 bool "No Trigger" 22 23config TMD2620_TRIGGER_GLOBAL_THREAD 24 bool "Use global thread" 25 depends on GPIO 26 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AMS_TMD2620),int-gpios) 27 select TMD2620_TRIGGER 28 29endchoice # Trigger Mode 30 31config TMD2620_TRIGGER 32 bool 33 34endif # TMD2620 35