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:ad7768 [05 Jul 2018 14:38] – Show device name Stefan Popa | resources:tools-software:linux-drivers:iio-adc:ad7768 [06 Nov 2023 11:41] (current) – Add note about adi,datalines property Ana-Maria Cusco | ||
---|---|---|---|
Line 5: | Line 5: | ||
This driver supports the | This driver supports the | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
===== Evaluation Boards ===== | ===== Evaluation Boards ===== | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
===== Description ===== | ===== Description ===== | ||
Line 27: | Line 29: | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
| driver | | driver | ||
+ | | devicetree bindings | [[linux.github> | ||
+ | | hdl project | [[https:// | ||
====== Example Linux Device-Tree Initialization ====== | ====== Example Linux Device-Tree Initialization ====== | ||
Required properties: | Required properties: | ||
- | * compatible: Must be one of " | + | * compatible: Must be one of " |
* reg: SPI chip select number for the device. | * reg: SPI chip select number for the device. | ||
+ | * clocks: phandle to master clock of the device. | ||
+ | * clock-names: | ||
* spi-max-frequency: | * spi-max-frequency: | ||
* dmas: DMA specifier, consisting of a phandle to DMA controller node. | * dmas: DMA specifier, consisting of a phandle to DMA controller node. | ||
* dma-names: Must be " | * dma-names: Must be " | ||
* vref-supply: | * vref-supply: | ||
+ | Optional properties: | ||
+ | * reset-gpios: | ||
+ | * adi, | ||
+ | **NOTE:** The // | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
| AD7768 Device Tree | [[linux.github> | | AD7768 Device Tree | [[linux.github> | ||
Line 60: | Line 70: | ||
root:/ | root:/ | ||
- | drwxrwxrwx | + | total 0 |
- | -rw-rw-rw- 1 root root 4096 Jan 1 00:02 dev | + | drwxr-xr-x |
- | -rw-rw-rw- 1 root root 4096 Jan | + | drwxr-xr-x 2 root root 0 Apr 2 21:43 buffer0 |
- | -rw-rw-rw- 1 root root 4096 Jan | + | -r--r--r-- 1 root root 4096 Apr 2 21:43 dev |
- | lrwxrwxrwx 1 root root 0 Jan 1 00:02 of_node -> ../ | + | -rw-r--r-- 1 root root 4096 Apr 2 21:43 filter_type |
- | drwxrwxrwx | + | -r--r--r-- |
- | drwxrwxrwx | + | -rw-r--r-- 1 root root 4096 Apr 2 21:43 in_voltage_scale |
- | lrwxrwxrwx 1 root root 0 Jan 1 00:02 subsystem -> ../ | + | -r--r--r-- |
- | -rw-rw-rw- 1 root root 4096 Jan 1 00:02 uevent | + | lrwxrwxrwx 1 root root 0 Apr 2 21:43 of_node -> ../ |
+ | drwxr-xr-x | ||
+ | -rw-r--r-- 1 root root 4096 Apr 2 21:43 power_mode | ||
+ | -r--r--r-- 1 root root 4096 Apr 2 21:43 power_mode_available | ||
+ | -rw-r--r-- 1 root root 4096 Apr 2 21:43 sampling_frequency | ||
+ | -r--r--r-- 1 root root 4096 Apr 2 21:43 sampling_frequency_available | ||
+ | drwxr-xr-x | ||
+ | lrwxrwxrwx 1 root root 0 Apr 2 21:42 subsystem -> ../ | ||
+ | -rw-r--r-- 1 root root 4096 Apr 2 21:42 uevent | ||
</ | </ | ||
Line 79: | Line 97: | ||
</ | </ | ||
+ | === Show scale === | ||
+ | |||
+ | **Description: | ||
+ | scale to be applied to in_voltage0_raw in order to obtain the measured voltage in millivolts. | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/ | ||
+ | 0.000488281 | ||
+ | </ | ||
+ | |||
+ | ====== More Information ====== | ||
+ | |||
+ | {{page> |