This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
resources:tools-software:linux-drivers:iio-adc:ad7887 [03 Jan 2013 20:42] – external edit | resources:tools-software:linux-drivers:iio-adc:ad7887 [11 Feb 2016 20:46] – [Status] Lars-Peter Clausen | ||
---|---|---|---|
Line 14: | Line 14: | ||
* [[adi> | * [[adi> | ||
+ | |||
===== Description ===== | ===== Description ===== | ||
Line 24: | Line 25: | ||
===== Status ===== | ===== Status ===== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[git.linux.org> | + | | [[git.linux.org> |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | driver | + | | include |
- | | include | [[git.linux.org> | + | |
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 39: | Line 39: | ||
The reference volatage may vary between boards and models. The platform_data for the device' | The reference volatage may vary between boards and models. The platform_data for the device' | ||
- | <source trunk/drivers/staging/ | + | <code c> |
+ | /** | ||
+ | * struct ad7887_platform_data - AD7887 ADC driver platform data | ||
+ | * @en_dual: Whether to use dual channel mode. If set to true AIN1 becomes the | ||
+ | | ||
+ | | ||
+ | | ||
+ | * @use_onchip_ref: Whether to use the onchip reference. If set to true the | ||
+ | | ||
+ | | ||
+ | */ | ||
+ | struct | ||
+ | bool en_dual; | ||
+ | bool use_onchip_ref; | ||
+ | }; | ||
+ | </code> | ||
<code c> | <code c> | ||
static struct ad7887_platform_data ad7887_pdata = { | static struct ad7887_platform_data ad7887_pdata = { | ||
- | .vref_mv = 2500, | ||
.en_dual = false, | .en_dual = false, | ||
.use_onchip_ref = false, | .use_onchip_ref = false, | ||
}; | }; | ||
</ | </ | ||
- | |||
===== Specifying reference voltage via the regulator framework ===== | ===== Specifying reference voltage via the regulator framework ===== | ||
Line 161: | Line 174: | ||
< | < | ||
Linux Kernel Configuration | Linux Kernel Configuration | ||
- | Device Drivers | + | |
- | [*] Staging drivers | + | ... |
- | < | + | < |
- | | + | --- Industrial I/O support |
- | -*- | + | ... |
- | -*- | + | Analog to digital converters |
- | -*- | + | ... |
- | + | < | |
- | *** Analog to digital converters | + | ... |
- | [--snip--] | + | ... |
- | + | ... | |
- | | + | |
- | + | ||
- | [--snip--] | + | |
</ | </ | ||