Steve Hardy | 5812f92 | 2008-01-22 23:00:02 +0000 | [diff] [blame] | 1 | Kernel driver ads7828 |
| 2 | ===================== |
| 3 | |
| 4 | Supported chips: |
| 5 | * Texas Instruments/Burr-Brown ADS7828 |
| 6 | Prefix: 'ads7828' |
Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame^] | 7 | Datasheet: Publicly available at the Texas Instruments website: |
Steve Hardy | 5812f92 | 2008-01-22 23:00:02 +0000 | [diff] [blame] | 8 | http://focus.ti.com/lit/ds/symlink/ads7828.pdf |
| 9 | |
| 10 | Authors: |
Steven Hardy | 5d84291 | 2011-01-12 21:55:08 +0100 | [diff] [blame] | 11 | Steve Hardy <shardy@redhat.com> |
Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame^] | 12 | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
Steve Hardy | 5812f92 | 2008-01-22 23:00:02 +0000 | [diff] [blame] | 13 | |
Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame^] | 14 | Platform data |
| 15 | ------------- |
Steve Hardy | 5812f92 | 2008-01-22 23:00:02 +0000 | [diff] [blame] | 16 | |
Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame^] | 17 | The ads7828 driver accepts an optional ads7828_platform_data structure (defined |
| 18 | in include/linux/platform_data/ads7828.h). The structure fields are: |
| 19 | |
| 20 | * diff_input: (bool) Differential operation |
| 21 | set to true for differential mode, false for default single ended mode. |
| 22 | |
| 23 | * ext_vref: (bool) External reference |
| 24 | set to true if it operates with an external reference, false for default |
| 25 | internal reference. |
| 26 | |
| 27 | * vref_mv: (unsigned int) Voltage reference |
| 28 | if using an external reference, set this to the reference voltage in mV, |
| 29 | otherwise it will default to the internal value (2500mV). This value will be |
| 30 | bounded with limits accepted by the chip, described in the datasheet. |
| 31 | |
| 32 | If no structure is provided, the configuration defaults to single ended |
| 33 | operation and internal voltage reference (2.5V). |
Steve Hardy | 5812f92 | 2008-01-22 23:00:02 +0000 | [diff] [blame] | 34 | |
| 35 | Description |
| 36 | ----------- |
| 37 | |
| 38 | This driver implements support for the Texas Instruments ADS7828. |
| 39 | |
| 40 | This device is a 12-bit 8-channel A-D converter. |
| 41 | |
| 42 | It can operate in single ended mode (8 +ve inputs) or in differential mode, |
| 43 | where 4 differential pairs can be measured. |
| 44 | |
| 45 | The chip also has the facility to use an external voltage reference. This |
| 46 | may be required if your hardware supplies the ADS7828 from a 5V supply, see |
| 47 | the datasheet for more details. |
Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame^] | 48 | |
| 49 | There is no reliable way to identify this chip, so the driver will not scan |
| 50 | some addresses to try to auto-detect it. That means that you will have to |
| 51 | statically declare the device in the platform support code. |