| 
									
										
										
										
											2019-11-01 13:45:29 +01:00
										 |  |  | # SX9500 SAR proximity sensor configuration options | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Copyright (c) 2016 Intel Corporation | 
					
						
							| 
									
										
										
										
											2017-01-18 17:01:01 -08:00
										 |  |  | # SPDX-License-Identifier: Apache-2.0 | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | menuconfig SX9500 | 
					
						
							|  |  |  | 	bool "SX9500 I2C SAR Proximity Chip" | 
					
						
							| 
									
										
										
										
											2022-07-19 22:41:45 -05:00
										 |  |  | 	default y | 
					
						
							|  |  |  | 	depends on DT_HAS_SEMTECH_SX9500_ENABLED | 
					
						
							| 
									
										
										
										
											2022-08-04 10:55:31 -05:00
										 |  |  | 	select I2C | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	help | 
					
						
							|  |  |  | 	  Enable driver for SX9500 I2C-based SAR proximity sensor. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-12 17:23:26 -05:00
										 |  |  | if SX9500 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | config SX9500_PROX_CHANNEL | 
					
						
							| 
									
										
										
										
											2018-08-14 16:19:20 +02:00
										 |  |  | 	int "Proximity channel to use" | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	default 3 | 
					
						
							|  |  |  | 	help | 
					
						
							|  |  |  | 	  The SX9500 offers 4 separate proximity channels.  Choose which one | 
					
						
							|  |  |  | 	  you are using.  Valid numbers are 0 to 3. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | choice | 
					
						
							|  |  |  | 	prompt "SX9500 trigger mode" | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | 	default SX9500_TRIGGER_GLOBAL_THREAD | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | config SX9500_TRIGGER_NONE | 
					
						
							|  |  |  | 	bool "No trigger" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | config SX9500_TRIGGER_GLOBAL_THREAD | 
					
						
							| 
									
										
										
										
											2016-11-04 15:47:32 -04:00
										 |  |  | 	depends on GPIO | 
					
						
							| 
									
										
										
										
											2024-09-30 14:17:52 -04:00
										 |  |  | 	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios) | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	select SX9500_TRIGGER | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | 	bool "Use global thread" | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | config SX9500_TRIGGER_OWN_THREAD | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	depends on GPIO | 
					
						
							| 
									
										
										
										
											2024-09-30 14:17:52 -04:00
										 |  |  | 	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios) | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	select SX9500_TRIGGER | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | 	bool "Use own thread" | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | endchoice | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | config SX9500_TRIGGER | 
					
						
							|  |  |  | 	bool | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | config SX9500_THREAD_STACK_SIZE | 
					
						
							|  |  |  | 	int "Sensor delayed work thread stack size" | 
					
						
							| 
									
										
										
										
											2018-09-12 17:23:26 -05:00
										 |  |  | 	depends on SX9500_TRIGGER_OWN_THREAD | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	default 1024 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-10 10:05:53 -05:00
										 |  |  | config SX9500_THREAD_PRIORITY | 
					
						
							|  |  |  | 	int "Thread priority" | 
					
						
							| 
									
										
										
										
											2018-09-12 17:23:26 -05:00
										 |  |  | 	depends on SX9500_TRIGGER_OWN_THREAD | 
					
						
							| 
									
										
										
										
											2016-03-17 14:40:23 +02:00
										 |  |  | 	default 10 | 
					
						
							| 
									
										
										
										
											2018-09-12 17:23:26 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | endif # SX9500 |