03 Jun, 2017
1 commit
-
When a multiplexer changes how an iio device behaves (for example
by feeding different signals to an ADC), this driver can be used
to create one virtual iio channel for each multiplexer state.Depends on the generic multiplexer subsystem.
Cache any ext_info values from the parent iio channel, creating a private
copy of the ext_info attributes for each multiplexer state/channel.Reviewed-by: Jonathan Cameron
Signed-off-by: Peter Rosin
Signed-off-by: Greg Kroah-Hartman
02 Oct, 2016
1 commit
-
The ACCES 104-QUAD-8 is a general purpose quadrature encoder
counter/interface board. The 104-QUAD-8 is capable of monitoring the
outputs of eight encoders via four on-board LSI/CSI LS7266R1 24-bit
dual-axis quadrature counter chips. Core functions handled by the
LS7266R1, such as direction and total count, are available.Performing a write to a counter's IIO_CHAN_INFO_RAW sets the counter and
also clears the counter's respective error flag. Although the counters
have a 25-bit range, only the lower 24 bits may be set, either directly
or via a counter's preset attribute. Interrupts are not supported by
this driver.This driver adds IIO support for the ACCES 104-QUAD-8 and ACCES
104-QUAD-4. The base port addresses for the devices may be configured
via the base array module parameter.Signed-off-by: William Breathitt Gray
Signed-off-by: Jonathan Cameron
28 Sep, 2016
1 commit
-
Add support for the LMP91000 potentiostat which is used for chemical
sensing applications.Signed-off-by: Matt Ranostay
Signed-off-by: Jonathan Cameron
04 May, 2016
1 commit
-
This is similar with support for creating triggers via configfs.
Devices will be hosted under:
* /config/iio/devicesWe allow users to register "device types" under:
* /config/iio/devices//Signed-off-by: Daniel Baluta
Signed-off-by: Jonathan Cameron
12 Dec, 2015
1 commit
-
MAX30100 is an heart rate and pulse oximeter sensor that works using
two LEDS of different wavelengths, and detecting the light reflected
back.This patchset adds support for both IR and RED LED channels which can
be processed in userspace to determine heart rate and blood oxygen
levels.Signed-off-by: Matt Ranostay
Signed-off-by: Jonathan Cameron
04 Dec, 2015
2 commits
-
A software trigger associates an IIO device trigger with a software
interrupt source (e.g: timer, sysfs). This patch adds the generic
infrastructure for handling software triggers.Software interrupts sources are kept in a iio_trigger_types_list and
registered separately when the associated kernel module is loaded.Software triggers can be created directly from drivers or from user
space via configfs interface.To sum up, this dynamically creates "triggers" group to be found under
/config/iio/triggers and offers the possibility of dynamically
creating trigger types groups. The first supported trigger type is
"hrtimer" found under /config/iio/triggers/hrtimer.Signed-off-by: Daniel Baluta
Signed-off-by: Jonathan Cameron -
This patch creates the IIO configfs root group. The group
will appear under /iio/, usually /config/iio.We introduce configfs support in IIO in order to be able to easily
create IIO objects from userspace. The first supported IIO objects
are triggers introduced with next patches.Signed-off-by: Daniel Baluta
Tested-by: Matt Ranostay
Signed-off-by: Jonathan Cameron
25 Oct, 2015
1 commit
-
This patch moves the reference IIO dummy driver from drivers/staging/iio
into a separate folder, drivers/iio/dummy and adds the proper Kconfig
and Makefile for it.A new config menu entry called IIO dummy driver has also been added
in the Industrial I/O support menu, corresponding to this driver.Signed-off-by: Cristina Opriceana
Signed-off-by: Jonathan Cameron
01 Oct, 2015
1 commit
-
Add support for Microchip digital potentiometers and rheostats
MCP4531, MCP4532, MCP4551, MCP4552
MCP4631, MCP4632, MCP4651, MCP4652DEVICE Wipers Steps Resistor Opts (kOhm) i2c address
MCP4531 1 129 5, 10, 50, 100 010111x
MCP4532 1 129 5, 10, 50, 100 01011xx
MCP4551 1 257 5, 10, 50, 100 010111x
MCP4552 1 257 5, 10, 50, 100 01011xx
MCP4631 2 129 5, 10, 50, 100 0101xxx
MCP4632 2 129 5, 10, 50, 100 01011xx
MCP4651 2 257 5, 10, 50, 100 0101xxx
MCP4652 2 257 5, 10, 50, 100 01011xxDatasheet: http://www.microchip.com/downloads/en/DeviceDoc/22096b.pdf
Signed-off-by: Peter Rosin
Signed-off-by: Jonathan Cameron
24 Sep, 2015
1 commit
-
Add support for VZ89X sensors VOC and CO2 reporting channels in
percentage which can be converted to part per million.Signed-off-by: Matt Ranostay
Signed-off-by: Jonathan Cameron
28 Aug, 2015
1 commit
-
Support triggered events.
This is useful for chips that don't have their own interrupt sources.
It allows to use generic/standalone iio triggers for those drivers.Signed-off-by: Vladimir Barinov
Signed-off-by: Jonathan Cameron
16 Aug, 2015
1 commit
-
For generic IIO trigger implementations we already have a sub-directory,
but the generic buffer implementations currently reside in the IIO
top-level directory. The main reason is that things have historically grown
into this form.With more generic buffer implementations on its way now is the perfect time
to clean this up and introduce a sub-directory for generic buffer
implementations to avoid too much clutter in the top-level directory.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
15 Aug, 2015
1 commit
-
Currently the IIO callback buffer implementation is directly built into the
IIO core module when enabled. Given that the callback buffer module is
standalone functionallity there is really no reason to do this. So move it
to its own module.Also rename the source to follow the standard IIO module naming convention
as well as add a license notice to the file.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
20 Feb, 2015
1 commit
-
Pull kconfig updates from Michal Marek:
"Yann E Morin was supposed to take over kconfig maintainership, but
this hasn't happened. So I'm sending a few kconfig patches that I
collected:- Fix for missing va_end in kconfig
- merge_config.sh displays used if given too few arguments
- s/boolean/bool/ in Kconfig files for consistency, with the plan to
only support bool in the future"* 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
kconfig: use va_end to match corresponding va_start
merge_config.sh: Display usage if given too few arguments
kconfig: use bool instead of boolean for type definition attributes
26 Jan, 2015
1 commit
-
iio kfifo can be used without trigger support so there is no need to build it.
Signed-off-by: Karol Wrona
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
07 Jan, 2015
1 commit
-
Support for keyword 'boolean' will be dropped later on.
No functional change.
Reference: http://lkml.kernel.org/r/cover.1418003065.git.cj@linux.com
Signed-off-by: Christoph Jaeger
Signed-off-by: Michal Marek
10 May, 2014
1 commit
-
Without ANON_INODES, we get this build error:
drivers/built-in.o: In function `iio_event_getfd':
:(.text+0x14bf18): undefined reference to `anon_inode_getfd'All other users explicitly select this symbol, so we should
do the same thing here.Signed-off-by: Arnd Bergmann
Cc: Jonathan Cameron
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron
17 Mar, 2014
1 commit
-
AS3935 chipset can detect lightning strikes and reports those back as
events and the estimated distance to the storm.Signed-off-by: Matt Ranostay
Reviewed-by: Marek Vasut
Signed-off-by: Jonathan Cameron
04 Dec, 2013
2 commits
-
Added usage id processing for Inclinometer 3D. This uses IIO
interfaces for triggered buffer to present data to user
mode.This uses HID sensor framework for registering callback
events from the sensor hub.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
This driver handles DHT11 and DHT22 sensors.
Signed-off-by: Harald Geyer
Signed-off-by: Jonathan Cameron
13 Sep, 2013
1 commit
-
After the last architecture switched to generic hard irqs the config
options HAVE_GENERIC_HARDIRQS & GENERIC_HARDIRQS and the related code
for !CONFIG_GENERIC_HARDIRQS can be removed.Signed-off-by: Martin Schwidefsky
17 Aug, 2013
1 commit
-
the TI TMP006 is a non-contact temperature sensor with I2C interface;
it measures the surface temperature of a distance object using a
thermopile to absorb IR energy emitted from the objectthe sensor has two channels: IR sensor voltage (16-bit) and reference
temperature of the chip (14-bit); datasheet is here:
http://www.ti.com/lit/ds/symlink/tmp006.pdfv2 (thanks to Grygorii Strashko, Lars-Peter Clausen, Jonathan Cameron
for review comments):
* power down device on driver remove
* use sign_extend32()
* style cleanup
* add comments what channel raw LSBs mean
* spelling of thermopileSigned-off-by: Peter Meerwald
Cc: Grygorii Strashko
Cc: Lars-Peter Clausen
Cc: Jonathan Cameron
Cc: LM Sensors
Signed-off-by: Jonathan Cameron
05 Aug, 2013
1 commit
-
This reverts commit 98a5e9e99d05e9b6a14778b85631b55e8e349990.
IIO, like the rest of the kernel, should rely on dynamic debugging, not
have a special config option for it. That way, no user has to rebuild
their kernel to have debug messages, which is a good thing, let's not
revert back to the bad old days of the 2000's.Cc: Otavio Salvador
Cc: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman
04 Aug, 2013
3 commits
-
Signed-off-by: Otavio Salvador
Signed-off-by: Jonathan Cameron -
ring buffers are only in staging, don't mention them here
Signed-off-by: Peter Meerwald
Signed-off-by: Jonathan Cameron -
Signed-off-by: Peter Meerwald
Signed-off-by: Jonathan Cameron
06 Jun, 2013
1 commit
-
This patch adds a generic pressure driver for STMicroelectronics
pressure sensors, currently it supports: LPS331AP.Signed-off-by: Denis Ciocca
Signed-off-by: Jonathan Cameron
23 May, 2013
1 commit
-
This simple driver is rather useful. No issues about its interface
have been raised for some time hence the proposal to move it out
of staging.Signed-off-by: Jonathan Cameron
20 Nov, 2012
1 commit
-
Now that the adis library no longer depends on the sw_ring buffer implementation
we can move it out of staging.While we are at it also sort the entries in the iio Kconfig and Makefile to be
in alphabetical order.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
10 Nov, 2012
1 commit
-
This callback buffer is meant to be opaque to users, but basically
adds a very simple pass through buffer to which data may be
pushed when it is inserted into the buffer list.Signed-off-by: Jonathan Cameron
20 Oct, 2012
1 commit
-
Signed-off-by: Andreas Larsson
Signed-off-by: Jonathan Cameron
07 Sep, 2012
5 commits
-
Added usage id processing for ALS. This uses IIO
interfaces for triggered buffer to present data to user
mode.This uses HID sensor framework for registering callback
events from the sensor hub.Signed-off-by: srinivas pandruvada
Signed-off-by: Jonathan Cameron -
Added usage id processing for Compass 3D. This uses IIO
interfaces for triggered buffer to present data to user
mode.This uses HID sensor framework for registering callback
events from the sensor hub.Signed-off-by: srinivas pandruvada
Signed-off-by: Jonathan Cameron -
Added usage id processing for Gyroscope 3D. This uses IIO
interfaces for triggered buffer to present data to user
mode.This uses HID sensor framework for registering callback
events from the sensor hub.Signed-off-by: srinivas pandruvada
Signed-off-by: Jonathan Cameron -
Added usage id processing for Accelerometer 3D.This uses IIO
interfaces for triggered buffer to present data to user
mode.This uses HID sensor framework for registering callback
events from the sensor hub.Signed-off-by: srinivas pandruvada
Signed-off-by: Jonathan Cameron -
This patch contains the common code, which is used by all HID sensors.
There are some common set of attributes, which every hid sensor
needs it. This patch contains all such attributes processing.
Also the trigger interface is common among all HID sensors. This
patch contains common trigger functions utilized by all HID sensors.Signed-off-by: srinivas pandruvada
Signed-off-by: Jonathan Cameron
04 Sep, 2012
1 commit
-
Signed-off-by: Peter Meerwald
Signed-off-by: Jonathan Cameron
26 Jun, 2012
1 commit
-
This picks up the staging changes made in 3.5-rc4 so that everyone can sync up
properly.Signed-off-by: Greg Kroah-Hartman
19 Jun, 2012
1 commit
-
Add a helper function for executing the common tasks which are usually involved
in setting up a simple software ringbuffer. It will allocate the buffer,
allocate the pollfunc and register the buffer.Signed-off-by: Lars-Peter Clausen
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman
15 Jun, 2012
1 commit
-
The documentation lives in drivers/staging/iio/Documentation, but
according to Jonathan it's obsolete and needs fixing.Signed-off-by: Jiri Kosina
Acked-by: Jonathan Cameron
Signed-off-by: Greg Kroah-Hartman