Skip to content

Commit

Permalink
iio: adc: New driver for AD7280A Lithium Ion Battery Monitoring System
Browse files Browse the repository at this point in the history
The AD7280A monitoring system contains all the functions required for
general purpose monitoring and maintenance of stacked
lithium ion batteries as used in hybrid electric vehicles,
battery backup applications, etc.

Changes since V1:

Make cell channels all type IIO_IN_DIFF, update documentation accordingly.
Remove unused and redundant defines.
Use SI units where applicable.
Remove unnecessary wrapper function.
Remove redundant initialization.
Add comments where requested.
Revise event handler.
Use const where applicable.

Changes since V2:

Remove redundant adc.h include file, scheduled for removal.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 1c5e6a3 commit 2051f25
Show file tree
Hide file tree
Showing 5 changed files with 1,062 additions and 0 deletions.
21 changes: 21 additions & 0 deletions drivers/staging/iio/Documentation/sysfs-bus-iio-adc-ad7280a
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
What: /sys/bus/iio/devices/deviceX/inY-inZ_balance_switch_en
KernelVersion: 3.0.0
Contact: linux-iio@vger.kernel.org
Description:
Writing 1 enables the cell balance output switch corresponding
to input Y. Writing 0 disables it. If the inY-inZ_balance_timer
is set to a none zero value, the corresponding switch will
enable for the programmed amount of time, before it
automatically disables.

What: /sys/bus/iio/devices/deviceX/inY-inZ_balance_timer
KernelVersion: 3.0.0
Contact: linux-iio@vger.kernel.org
Description:
The inY-inZ_balance_timer file allows the user to program
individual times for each cell balance output. The AD7280A
allows the user to set the timer to a value from 0 minutes to
36.9 minutes. The resolution of the timer is 71.5 sec.
The value written is the on-time in milliseconds. When the
timer value is set 0, the timer is disabled. The cell balance
outputs are controlled only by inY-inZ_balance_switch_en.
10 changes: 10 additions & 0 deletions drivers/staging/iio/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ config ADT7410
Say yes here to build support for Analog Devices ADT7410
temperature sensors.

config AD7280
tristate "Analog Devices AD7280A Lithium Ion Battery Monitoring System"
depends on SPI
help
Say yes here to build support for Analog Devices AD7280A
Lithium Ion Battery Monitoring System.

To compile this driver as a module, choose M here: the
module will be called ad7280a

config MAX1363
tristate "Maxim max1363 ADC driver"
depends on I2C
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/iio/adc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ obj-$(CONFIG_AD7816) += ad7816.o
obj-$(CONFIG_ADT75) += adt75.o
obj-$(CONFIG_ADT7310) += adt7310.o
obj-$(CONFIG_ADT7410) += adt7410.o
obj-$(CONFIG_AD7280) += ad7280a.o
Loading

0 comments on commit 2051f25

Please sign in to comment.