1# SX9500 SAR proximity sensor configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig SX9500 7 bool "SX9500 I2C SAR Proximity Chip" 8 default y 9 depends on DT_HAS_SEMTECH_SX9500_ENABLED 10 select I2C 11 help 12 Enable driver for SX9500 I2C-based SAR proximity sensor. 13 14if SX9500 15 16config SX9500_PROX_CHANNEL 17 int "Proximity channel to use" 18 default 3 19 help 20 The SX9500 offers 4 separate proximity channels. Choose which one 21 you are using. Valid numbers are 0 to 3. 22 23choice 24 prompt "SX9500 trigger mode" 25 default SX9500_TRIGGER_GLOBAL_THREAD 26 27config SX9500_TRIGGER_NONE 28 bool "No trigger" 29 30config SX9500_TRIGGER_GLOBAL_THREAD 31 depends on GPIO 32 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios) 33 select SX9500_TRIGGER 34 bool "Use global thread" 35 36config SX9500_TRIGGER_OWN_THREAD 37 depends on GPIO 38 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios) 39 select SX9500_TRIGGER 40 bool "Use own thread" 41 42endchoice 43 44config SX9500_TRIGGER 45 bool 46 47config SX9500_THREAD_STACK_SIZE 48 int "Sensor delayed work thread stack size" 49 depends on SX9500_TRIGGER_OWN_THREAD 50 default 1024 51 52config SX9500_THREAD_PRIORITY 53 int "Thread priority" 54 depends on SX9500_TRIGGER_OWN_THREAD 55 default 10 56 57endif # SX9500 58