1# LSM9DS0 accelerometer, magnetometer and temperature configuration options
2
3# Copyright (c) 2016 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig LSM9DS0_MFD
7	bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip"
8	default y
9	depends on DT_HAS_ST_LSM9DS0_MFD_ENABLED
10	select I2C
11	help
12	  Enable driver for LSM9DS0 I2C-based MFD sensor.
13
14if LSM9DS0_MFD
15
16config LSM9DS0_MFD_ACCEL_ENABLE
17	bool "Accelerometer"
18	default y
19	help
20	  Enable/disable accelerometer totally by stripping everything related
21	  in driver.
22
23config LSM9DS0_MFD_MAGN_ENABLE
24	bool "Magnetometer"
25	default y
26	help
27	  Enable/disable magnetometer totally by stripping everything related in
28	  driver.
29
30config LSM9DS0_MFD_TEMP_ENABLE
31	bool "Temperature sensor"
32	help
33	  Enable/disable temperature sensor totally by stripping everything
34	  related in driver.
35
36menu "Attributes"
37
38choice
39	prompt "Accelerometer sampling rate"
40	default LSM9DS0_MFD_ACCEL_SAMPLING_RATE_25
41	depends on LSM9DS0_MFD_ACCEL_ENABLE
42	help
43	  Specify the default sampling rate frequency for accelerometer.
44
45config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_0
46	bool "0 Hz (power down)"
47
48config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_3_125
49	bool "3.125 Hz"
50
51config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_6_25
52	bool "6.25 Hz"
53
54config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_12_5
55	bool "12.5 Hz"
56
57config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_25
58	bool "25 Hz"
59
60config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_50
61	bool "50 Hz"
62
63config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_100
64	bool "100 Hz"
65
66config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_200
67	bool "200 Hz"
68
69config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_400
70	bool "400 Hz"
71
72config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_800
73	bool "800 Hz"
74
75config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_1600
76	bool "1600 Hz"
77
78endchoice
79
80config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_RUNTIME
81	bool "Dynamic sampling rate for accelerometer"
82	depends on LSM9DS0_MFD_ACCEL_ENABLE
83	help
84	  Enable alteration of accelerometer sampling rate attribute at
85	  runtime.
86
87choice
88	prompt "Accelerometer full-scale"
89	default LSM9DS0_MFD_ACCEL_FULL_SCALE_2
90	depends on LSM9DS0_MFD_ACCEL_ENABLE
91	help
92	  Specify the default full-scale for accelerometer.
93
94config LSM9DS0_MFD_ACCEL_FULL_SCALE_2
95	bool "2G"
96
97config LSM9DS0_MFD_ACCEL_FULL_SCALE_4
98	bool "4G"
99
100config LSM9DS0_MFD_ACCEL_FULL_SCALE_6
101	bool "6G"
102
103config LSM9DS0_MFD_ACCEL_FULL_SCALE_8
104	bool "8G"
105
106config LSM9DS0_MFD_ACCEL_FULL_SCALE_16
107	bool "16G"
108
109endchoice
110
111config LSM9DS0_MFD_ACCEL_FULL_SCALE_RUNTIME
112	bool "Dynamic full-scale for accelerometer"
113	depends on LSM9DS0_MFD_ACCEL_ENABLE
114	help
115	  Enable alteration of accelerometer full-scale attribute at
116	  runtime.
117
118config LSM9DS0_MFD_ACCEL_ENABLE_X
119	bool "Accelerometer X axis"
120	depends on LSM9DS0_MFD_ACCEL_ENABLE
121	default y
122
123config LSM9DS0_MFD_ACCEL_ENABLE_Y
124	bool "Accelerometer Y axis"
125	depends on LSM9DS0_MFD_ACCEL_ENABLE
126	default y
127
128config LSM9DS0_MFD_ACCEL_ENABLE_Z
129	bool "Accelerometer Z axis"
130	depends on LSM9DS0_MFD_ACCEL_ENABLE
131	default y
132
133choice
134	prompt "Magnetometer sampling rate"
135	default LSM9DS0_MFD_MAGN_SAMPLING_RATE_25
136	depends on LSM9DS0_MFD_MAGN_ENABLE
137	help
138	  Specify the default sampling rate frequency for magnetometer.
139
140config LSM9DS0_MFD_MAGN_SAMPLING_RATE_3_125
141	bool "3.125 Hz"
142
143config LSM9DS0_MFD_MAGN_SAMPLING_RATE_6_25
144	bool "6.25 Hz"
145
146config LSM9DS0_MFD_MAGN_SAMPLING_RATE_12_5
147	bool "12.5 Hz"
148
149config LSM9DS0_MFD_MAGN_SAMPLING_RATE_25
150	bool "25 Hz"
151
152config LSM9DS0_MFD_MAGN_SAMPLING_RATE_50
153	bool "50 Hz"
154
155config LSM9DS0_MFD_MAGN_SAMPLING_RATE_100
156	bool "100 Hz"
157
158endchoice
159
160config LSM9DS0_MFD_MAGN_SAMPLING_RATE_RUNTIME
161	bool "Dynamic sampling rate for magnetometer"
162	depends on LSM9DS0_MFD_MAGN_ENABLE
163	help
164	  Enable alteration of magnetometer sampling rate attribute at
165	  runtime.
166
167choice
168	prompt "Magnetometer full-scale"
169	default LSM9DS0_MFD_MAGN_FULL_SCALE_2
170	depends on LSM9DS0_MFD_MAGN_ENABLE
171	help
172	  Specify the default full-scale for magnetometer.
173
174config LSM9DS0_MFD_MAGN_FULL_SCALE_2
175	bool "2 Gauss"
176
177config LSM9DS0_MFD_MAGN_FULL_SCALE_4
178	bool "4 Gauss"
179
180config LSM9DS0_MFD_MAGN_FULL_SCALE_8
181	bool "8 Gauss"
182
183config LSM9DS0_MFD_MAGN_FULL_SCALE_12
184	bool "12 Gauss"
185
186endchoice
187
188config LSM9DS0_MFD_MAGN_FULL_SCALE_RUNTIME
189	bool "Dynamic full-scale for magnetometer"
190	depends on LSM9DS0_MFD_MAGN_ENABLE
191	help
192	  Enable alteration of magnetometer full-scale attribute at
193	  runtime.
194
195endmenu
196
197endif # LSM9DS0_MFD
198