This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:iio-dac:ad5504 [09 Nov 2011 11:39] – [Supported Devices] Michael Hennerich | resources:tools-software:linux-drivers:iio-dac:ad5504 [23 Feb 2017 13:32] (current) – Lars-Peter Clausen | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== AD5504 IIO High Voltage ADC Linux Driver ====== | ====== AD5504 IIO High Voltage ADC Linux Driver ====== | ||
- | |||
===== Supported Devices ===== | ===== Supported Devices ===== | ||
Line 6: | Line 5: | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | |||
+ | ===== Reference Circuits ===== | ||
+ | |||
+ | * [[adi> | ||
===== Evaluation Boards ===== | ===== Evaluation Boards ===== | ||
Line 11: | Line 14: | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | |||
===== Description ===== | ===== Description ===== | ||
Line 22: | Line 26: | ||
^ Source | ^ Source | ||
- | | [[bfgit>linux-kernel?drivers/staging/ | + | | [[git.linux.org>drivers/ |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | include | [[git.linux.org> | + | | include | [[git.linux.org> |
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 41: | Line 45: | ||
</ | </ | ||
- | <note tip> | + | <WRAP tip> |
This driver supports also an alternative way of specifying the reference voltage, by using the Linux regulator framework. | This driver supports also an alternative way of specifying the reference voltage, by using the Linux regulator framework. | ||
- | </note> | + | </WRAP> |
===== Specifying reference voltage via the regulator framework ===== | ===== Specifying reference voltage via the regulator framework ===== | ||
Line 147: | Line 151: | ||
"make qconfig" | "make qconfig" | ||
- | <note> | + | <WRAP round help> |
The AD5504 Driver depends on **CONFIG_SPI** | The AD5504 Driver depends on **CONFIG_SPI** | ||
- | </note> | + | </WRAP> |
< | < | ||
Linux Kernel Configuration | Linux Kernel Configuration | ||
Device Drivers | Device Drivers | ||
- | [*] Staging drivers | + | < |
- | < | + | |
- | | + | |
- | -*- | + | |
- | -*- | + | |
- | -*- | + | |
- | + | ||
- | *** Digital to analog convertors *** | + | |
- | [--snip--] | + | |
- | + | ||
- | < | + | |
- | + | ||
- | [--snip--] | + | |
+ | *** Digital to analog convertors *** | ||
+ | [--snip--] | ||
+ | < | ||
+ | [--snip--] | ||
</ | </ | ||
Line 177: | Line 174: | ||
{{page> | {{page> | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cd / | root:/> **cd / | ||
Line 200: | Line 197: | ||
lrwxrwxrwx | lrwxrwxrwx | ||
-rw-r--r-- | -rw-r--r-- | ||
- | </ | + | </ |
=== Show device name === | === Show device name === | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
ad5504 | ad5504 | ||
- | </ | + | </ |
=== Show scale === | === Show scale === | ||
Line 216: | Line 213: | ||
scale to be applied to out_voltage0_raw in order to obtain the measured voltage in millivolts. | scale to be applied to out_voltage0_raw in order to obtain the measured voltage in millivolts. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
7.324 | 7.324 | ||
- | </ | + | </ |
=== Set channel Y output voltage === | === Set channel Y output voltage === | ||
Line 230: | Line 227: | ||
channel Y. | channel Y. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
- | </ | + | </ |
**U** = // | **U** = // | ||
Line 245: | Line 242: | ||
Lists all available output power down modes. | Lists all available output power down modes. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
20kohm_to_gnd three_state | 20kohm_to_gnd three_state | ||
- | </ | + | </ |
=== Set power down mode === | === Set power down mode === | ||
Line 266: | Line 263: | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
root:/ | root:/ | ||
three_state | three_state | ||
- | </ | + | </ |
=== Enable power down mode on output Y === | === Enable power down mode on output Y === | ||
Line 283: | Line 280: | ||
controlled together. | controlled together. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
Line 291: | Line 288: | ||
root:/ | root:/ | ||
0 | 0 | ||
- | </ | + | </ |
====== More Information ====== | ====== More Information ====== | ||
{{page> | {{page> |