1# Copyright (c) 2017 Intel Corporation
2# Copyright (c) 2018 Phytec Messtechnik GmbH
3# SPDX-License-Identifier: Apache-2.0
4
5menuconfig APDS9960
6	bool "APDS9960 Sensor"
7	default y
8	depends on DT_HAS_AVAGO_APDS9960_ENABLED
9	select I2C
10	help
11	  Enable driver for APDS9960 sensors.
12
13if APDS9960
14
15choice
16	prompt "Trigger mode"
17	default APDS9960_TRIGGER_NONE
18	help
19	  Specify the type of triggering used by the driver.
20
21config APDS9960_TRIGGER_NONE
22	bool "No trigger"
23
24config APDS9960_TRIGGER_GLOBAL_THREAD
25	bool "Use global thread"
26	depends on GPIO
27	select APDS9960_TRIGGER
28
29endchoice
30
31config APDS9960_TRIGGER
32	bool
33
34config APDS9960_ENABLE_ALS
35	bool "Ambient Light Sense"
36	default y
37	help
38	  Enable Ambient Light Sense (ALS).
39
40choice
41	prompt "Proximity Gain"
42	default APDS9960_PGAIN_4X
43
44config APDS9960_PGAIN_1X
45	bool "1x"
46
47config APDS9960_PGAIN_2X
48	bool "2x"
49
50config APDS9960_PGAIN_4X
51	bool "4x"
52
53config APDS9960_PGAIN_8X
54	bool "8x"
55
56endchoice
57
58choice
59	prompt "ALS and Color Gain"
60	default APDS9960_AGAIN_4X
61
62config APDS9960_AGAIN_1X
63	bool "1x"
64
65config APDS9960_AGAIN_4X
66	bool "4x"
67
68config APDS9960_AGAIN_16X
69	bool "16x"
70
71config APDS9960_AGAIN_64X
72	bool "64x"
73
74endchoice
75
76choice
77	prompt "Proximity Pulse Length"
78	default APDS9960_PPULSE_LENGTH_8US
79
80config APDS9960_PPULSE_LENGTH_4US
81	bool "4us"
82
83config APDS9960_PPULSE_LENGTH_8US
84	bool "8us"
85
86config APDS9960_PPULSE_LENGTH_16US
87	bool "16us"
88
89config APDS9960_PPULSE_LENGTH_32US
90	bool "32us"
91
92endchoice
93
94choice
95	prompt "Proximity LED boost current"
96	default APDS9960_PLED_BOOST_100PCT
97
98config APDS9960_PLED_BOOST_300PCT
99	bool "300%"
100
101config APDS9960_PLED_BOOST_200PCT
102	bool "200%"
103
104config APDS9960_PLED_BOOST_150PCT
105	bool "150%"
106
107config APDS9960_PLED_BOOST_100PCT
108	bool "100%"
109
110endchoice
111
112config APDS9960_PPULSE_COUNT
113	int "Proximity Pulse Count"
114	range 1 64
115	default 8
116
117endif # APDS9960
118