xref: /openbmc/linux/drivers/iio/Kconfig (revision 5fc4f0c0)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2a980e046SJonathan Cameron#
3e58bf533SPeter Meerwald# Industrial I/O subsystem configuration
4a980e046SJonathan Cameron#
5a980e046SJonathan Cameron
6a980e046SJonathan Cameronmenuconfig IIO
7a980e046SJonathan Cameron	tristate "Industrial I/O support"
8a980e046SJonathan Cameron	help
9a980e046SJonathan Cameron	  The industrial I/O subsystem provides a unified framework for
10a980e046SJonathan Cameron	  drivers for many different types of embedded sensors using a
11a529ae4bSJiri Kosina	  number of different physical interfaces (i2c, spi, etc).
12a980e046SJonathan Cameron
13a980e046SJonathan Cameronif IIO
14a980e046SJonathan Cameron
15a980e046SJonathan Cameronconfig IIO_BUFFER
16a980e046SJonathan Cameron	bool "Enable buffer support within IIO"
17a980e046SJonathan Cameron	help
18a980e046SJonathan Cameron	  Provide core support for various buffer based data
19a980e046SJonathan Cameron	  acquisition methods.
20a980e046SJonathan Cameron
21a980e046SJonathan Cameronif IIO_BUFFER
228548a63bSLars-Peter Clausen	source "drivers/iio/buffer/Kconfig"
23a980e046SJonathan Cameronendif # IIO_BUFFER
24a980e046SJonathan Cameron
258261d961SDaniel Balutaconfig IIO_CONFIGFS
268261d961SDaniel Baluta	tristate "Enable IIO configuration via configfs"
278261d961SDaniel Baluta	select CONFIGFS_FS
288261d961SDaniel Baluta	help
298261d961SDaniel Baluta	  This allows configuring various IIO bits through configfs
308261d961SDaniel Baluta	  (e.g. software triggers). For more info see
311c349f4fSMauro Carvalho Chehab	  Documentation/iio/iio_configfs.rst.
328261d961SDaniel Baluta
3338416c28SMatti Vaittinenconfig IIO_GTS_HELPER
3438416c28SMatti Vaittinen	tristate
3538416c28SMatti Vaittinen
36a980e046SJonathan Cameronconfig IIO_TRIGGER
376341e62bSChristoph Jaeger	bool "Enable triggered sampling support"
38a980e046SJonathan Cameron	help
39a980e046SJonathan Cameron	  Provides IIO core support for triggers.  Currently these
40a980e046SJonathan Cameron	  are used to initialize capture of samples to push into
411b2bbe3eSPeter Meerwald	  buffers.  The triggers are effectively a 'capture
42a980e046SJonathan Cameron	  data now' interrupt.
43a980e046SJonathan Cameron
44a980e046SJonathan Cameronconfig IIO_CONSUMERS_PER_TRIGGER
45a980e046SJonathan Cameron	int "Maximum number of consumers per trigger"
46a980e046SJonathan Cameron	depends on IIO_TRIGGER
47a980e046SJonathan Cameron	default "2"
48a980e046SJonathan Cameron	help
49a980e046SJonathan Cameron	  This value controls the maximum number of consumers that a
50a980e046SJonathan Cameron	  given trigger may handle. Default is 2.
51a980e046SJonathan Cameron
520f3a8c3fSDaniel Balutaconfig IIO_SW_DEVICE
530f3a8c3fSDaniel Baluta	tristate "Enable software IIO device support"
540f3a8c3fSDaniel Baluta	select IIO_CONFIGFS
550f3a8c3fSDaniel Baluta	help
560f3a8c3fSDaniel Baluta	  Provides IIO core support for software devices. A software
570f3a8c3fSDaniel Baluta	  device can be created via configfs or directly by a driver
580f3a8c3fSDaniel Baluta	  using the API provided.
590f3a8c3fSDaniel Baluta
60b662f809SDaniel Balutaconfig IIO_SW_TRIGGER
61b662f809SDaniel Baluta	tristate "Enable software triggers support"
62b662f809SDaniel Baluta	select IIO_CONFIGFS
63b662f809SDaniel Baluta	help
64b662f809SDaniel Baluta	  Provides IIO core support for software triggers. A software
65b662f809SDaniel Baluta	  trigger can be created via configfs or directly by a driver
66b662f809SDaniel Baluta	  using the API provided.
67b662f809SDaniel Baluta
68735ad074SVladimir Barinovconfig IIO_TRIGGERED_EVENT
69a132e5f4SAlexandru Ardelean	tristate "Enable triggered events support"
70735ad074SVladimir Barinov	select IIO_TRIGGER
71735ad074SVladimir Barinov	help
72735ad074SVladimir Barinov	  Provides helper functions for setting up triggered events.
73735ad074SVladimir Barinov
745fc4f0c0SNuno Saconfig IIO_BACKEND
755fc4f0c0SNuno Sa	tristate
765fc4f0c0SNuno Sa	help
775fc4f0c0SNuno Sa	  Framework to handle complex IIO aggregate devices. The typical
785fc4f0c0SNuno Sa	  architecture that can make use of this framework is to have one
795fc4f0c0SNuno Sa	  device as the frontend device which can be "linked" against one or
805fc4f0c0SNuno Sa	  multiple backend devices. The framework then makes it easy to get
815fc4f0c0SNuno Sa	  and control such backend devices.
825fc4f0c0SNuno Sa
8345fe6f7dSsrinivas pandruvadasource "drivers/iio/accel/Kconfig"
840e589d5fSMaxime Ripardsource "drivers/iio/adc/Kconfig"
85b62e2e17SCosmin Tanislavsource "drivers/iio/addac/Kconfig"
868b74816bSPeter Rosinsource "drivers/iio/afe/Kconfig"
87e71d42e0SMichael Hennerichsource "drivers/iio/amplifiers/Kconfig"
88646d67b5SJonathan Cameronsource "drivers/iio/cdc/Kconfig"
89cd8d9777SMatt Ranostaysource "drivers/iio/chemical/Kconfig"
9073c6768bSsrinivas pandruvadasource "drivers/iio/common/Kconfig"
91ec04cb04SLars-Peter Clausensource "drivers/iio/dac/Kconfig"
92415f7924SCristina Opriceanasource "drivers/iio/dummy/Kconfig"
9335c35b0cSAntoniu Miclaussource "drivers/iio/filter/Kconfig"
94ec04cb04SLars-Peter Clausensource "drivers/iio/frequency/Kconfig"
95c5bdbef7Ssrinivas pandruvadasource "drivers/iio/gyro/Kconfig"
964d33615dSMatt Ranostaysource "drivers/iio/health/Kconfig"
97091a121bSHarald Geyersource "drivers/iio/humidity/Kconfig"
98ec04cb04SLars-Peter Clausensource "drivers/iio/imu/Kconfig"
99ec04cb04SLars-Peter Clausensource "drivers/iio/light/Kconfig"
100bc1d57baSsrinivas pandruvadasource "drivers/iio/magnetometer/Kconfig"
1017ba9df54SPeter Rosinsource "drivers/iio/multiplexer/Kconfig"
102098d3becSSrinivas Pandruvadasource "drivers/iio/orientation/Kconfig"
1030bf49ffbSLars-Peter Clausensource "drivers/iio/test/Kconfig"
104e64e7d5cSJonathan Cameronif IIO_TRIGGER
105e64e7d5cSJonathan Cameron   source "drivers/iio/trigger/Kconfig"
106e64e7d5cSJonathan Cameronendif #IIO_TRIGGER
107189c3c49SJeff LaBundysource "drivers/iio/position/Kconfig"
108c05dc2ccSPeter Rosinsource "drivers/iio/potentiometer/Kconfig"
10967e17300SMatt Ranostaysource "drivers/iio/potentiostat/Kconfig"
110217494e5SDenis CIOCCAsource "drivers/iio/pressure/Kconfig"
11124ddb0e4SMatt Ranostaysource "drivers/iio/proximity/Kconfig"
112ad28d315SDavid Veenstrasource "drivers/iio/resolver/Kconfig"
113e5a63942SPeter Meerwaldsource "drivers/iio/temperature/Kconfig"
114e71d42e0SMichael Hennerich
115a980e046SJonathan Cameronendif # IIO
116