blob: b830b490cfe485156fc7058839ea49224af2f59d [file] [log] [blame]
Steve Hardy5812f922008-01-22 23:00:02 +00001Kernel driver ads7828
2=====================
3
4Supported chips:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03005
Steve Hardy5812f922008-01-22 23:00:02 +00006 * Texas Instruments/Burr-Brown ADS7828
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03007
Steve Hardy5812f922008-01-22 23:00:02 +00008 Prefix: 'ads7828'
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03009
Vivien Didelot46d78462012-10-03 16:54:07 -040010 Datasheet: Publicly available at the Texas Instruments website:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030011
12 http://focus.ti.com/lit/ds/symlink/ads7828.pdf
Steve Hardy5812f922008-01-22 23:00:02 +000013
Guillaume Roguez0962e0f2012-10-03 16:54:08 -040014 * Texas Instruments ADS7830
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030015
Guillaume Roguez0962e0f2012-10-03 16:54:08 -040016 Prefix: 'ads7830'
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030017
Guillaume Roguez0962e0f2012-10-03 16:54:08 -040018 Datasheet: Publicly available at the Texas Instruments website:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030019
20 http://focus.ti.com/lit/ds/symlink/ads7830.pdf
Guillaume Roguez0962e0f2012-10-03 16:54:08 -040021
Steve Hardy5812f922008-01-22 23:00:02 +000022Authors:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030023 - Steve Hardy <shardy@redhat.com>
24 - Vivien Didelot <vivien.didelot@savoirfairelinux.com>
25 - Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Steve Hardy5812f922008-01-22 23:00:02 +000026
Vivien Didelot46d78462012-10-03 16:54:07 -040027Platform data
28-------------
Steve Hardy5812f922008-01-22 23:00:02 +000029
Vivien Didelot46d78462012-10-03 16:54:07 -040030The ads7828 driver accepts an optional ads7828_platform_data structure (defined
31in include/linux/platform_data/ads7828.h). The structure fields are:
32
33* diff_input: (bool) Differential operation
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030034 set to true for differential mode, false for default single ended mode.
Vivien Didelot46d78462012-10-03 16:54:07 -040035
36* ext_vref: (bool) External reference
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030037 set to true if it operates with an external reference, false for default
38 internal reference.
Vivien Didelot46d78462012-10-03 16:54:07 -040039
40* vref_mv: (unsigned int) Voltage reference
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030041 if using an external reference, set this to the reference voltage in mV,
42 otherwise it will default to the internal value (2500mV). This value will be
43 bounded with limits accepted by the chip, described in the datasheet.
Vivien Didelot46d78462012-10-03 16:54:07 -040044
45 If no structure is provided, the configuration defaults to single ended
46 operation and internal voltage reference (2.5V).
Steve Hardy5812f922008-01-22 23:00:02 +000047
48Description
49-----------
50
Guillaume Roguez0962e0f2012-10-03 16:54:08 -040051This driver implements support for the Texas Instruments ADS7828 and ADS7830.
Steve Hardy5812f922008-01-22 23:00:02 +000052
Guillaume Roguez0962e0f2012-10-03 16:54:08 -040053The ADS7828 device is a 12-bit 8-channel A/D converter, while the ADS7830 does
548-bit sampling.
Steve Hardy5812f922008-01-22 23:00:02 +000055
56It can operate in single ended mode (8 +ve inputs) or in differential mode,
57where 4 differential pairs can be measured.
58
59The chip also has the facility to use an external voltage reference. This
60may be required if your hardware supplies the ADS7828 from a 5V supply, see
61the datasheet for more details.
Vivien Didelot46d78462012-10-03 16:54:07 -040062
63There is no reliable way to identify this chip, so the driver will not scan
64some addresses to try to auto-detect it. That means that you will have to
65statically declare the device in the platform support code.