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-adc:ad7476a [03 Jan 2013 20:42] – external edit | resources:tools-software:linux-drivers:iio-adc:ad7476a [11 Sep 2021 20:17] (current) – [Supported Devices] Robin Getz | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Supported Devices ===== | ===== Supported Devices ===== | ||
+ | |||
+ | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
Line 41: | Line 43: | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
===== Reference Circuits ===== | ===== Reference Circuits ===== | ||
- | * [[adi> | ||
- | * [[adi> | ||
- | * [[adi> | ||
- | * [[adi> | ||
- | * [[adi> | ||
- | * [[adi> | ||
- | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
- | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
Line 61: | Line 56: | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
- | * [[adi> | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
===== Evaluation Boards ===== | ===== Evaluation Boards ===== | ||
+ | * [[adi> | ||
* [[adi> | * [[adi> | ||
- | * [[adi> | + | * [[adi> |
- | * [[adi> | + | * [[adi> |
- | * [[adi> | + | * [[adi> |
- | * [[adi> | + | |
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
- | * [[adi> | + | * [[adi> |
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
Line 106: | Line 105: | ||
===== Status ===== | ===== Status ===== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[git.linux.org> | + | | [[git.linux.org> |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | driver | + | |
- | | include | [[git.linux.org> | + | |
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 212: | Line 210: | ||
</ | </ | ||
+ | ===== Devicetree ===== | ||
+ | |||
+ | Required devicetree properties: | ||
+ | * compatible: Needs to be " | ||
+ | * reg: The chipselect number used for the device | ||
+ | * spi-max-frequency: | ||
+ | * spi-cpha: Needs to be set for the correct SPI mode | ||
+ | * spi-cpol: Needs to be set for the correct SPI mode | ||
+ | * vcc-supply: Phandle to the supply regulator | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | }; | ||
+ | |||
+ | spi: spi@e0007000 { | ||
+ | # | ||
+ | # | ||
+ | | ||
+ | ... | ||
+ | |||
+ | | ||
+ | | ||
+ | reg = <0>; | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | }; | ||
+ | }; | ||
+ | </ | ||
====== Adding Linux driver support ====== | ====== Adding Linux driver support ====== | ||
Line 223: | Line 255: | ||
< | < | ||
Linux Kernel Configuration | Linux Kernel Configuration | ||
- | Device Drivers | + | |
- | [*] Staging drivers | + | ... |
- | < | + | < |
- | | + | --- Industrial I/O support |
- | -*- | + | ... |
- | -*- | + | Analog to digital converters |
- | -*- | + | ... |
- | + | < | |
- | *** Analog to digital converters | + | ... |
- | [--snip--] | + | ... |
- | + | ... | |
- | | + | |
- | + | ||
- | [--snip--] | + | |
</ | </ | ||
Line 257: | Line 285: | ||
root:/ | root:/ | ||
- | drwxr-xr-x | + | drwxr-xr-x |
- | -r--r--r-- | + | -r--r--r-- |
- | -r--r--r-- | + | -r--r--r-- |
-r--r--r-- | -r--r--r-- | ||
lrwxrwxrwx | lrwxrwxrwx | ||
Line 265: | Line 293: | ||
-rw-r--r-- | -rw-r--r-- | ||
</ | </ | ||
- | |||
=== Show device name === | === Show device name === | ||
Line 280: | Line 307: | ||
**Description: | **Description: | ||
- | scale to be applied to in0_raw | + | scale to be applied to in_voltage0_raw |
<WRAP box bggreen>< | <WRAP box bggreen>< | ||
< | < | ||
- | root:/ | + | root:/ |
0.805 | 0.805 | ||
</ | </ | ||
Line 295: | Line 322: | ||
<WRAP box bggreen>< | <WRAP box bggreen>< | ||
< | < | ||
- | root:/ | + | root:/ |
2001 | 2001 | ||
</ | </ | ||
- | **U** = //in0_raw | + | **U** = //in_voltage0_raw |
===== Trigger management ===== | ===== Trigger management ===== |