iio: ina2xx: add support for TI INA2xx Power Monitors
authorMarc Titinger <mtitinger@baylibre.com>
Mon, 7 Dec 2015 09:09:34 +0000 (10:09 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Dec 2015 16:07:36 +0000 (16:07 +0000)
commitc43a102e67db99c8bfe6e8a9280cec13ff53b789
tree6b897c188d705aa0b007d6b9b08cdc766da21f58
parent466df4d0c1a5edee243698bdcad1ec4f3a1799b1
iio: ina2xx: add support for TI INA2xx Power Monitors

in SOFTWARE buffer mode, a kthread will capture the active scan_elements
into a kfifo, then compute the remaining time until the next capture tick
and do an active wait (udelay).

This will produce a stream of up to fours channels plus a 64bits
timestamps (ns).

Tested with ina226, on BeagleBoneBlack.

Datasheet: http://www.ti.com/lit/gpn/ina226

Signed-off-by: Marc Titinger <mtitinger@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/ina2xx-adc.c [new file with mode: 0644]