This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:tools-software:linux-drivers:iio-adc:ad7768 [05 Jul 2018 14:07] – Evaluation Boards Stefan Popa | resources:tools-software:linux-drivers:iio-adc:ad7768 [05 Jul 2018 15:07] – More Information Stefan Popa | ||
---|---|---|---|
Line 9: | Line 9: | ||
* [[adi> | * [[adi> | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | This is a Linux industrial I/O ([[software: | ||
+ | The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). | ||
+ | See [[software: | ||
+ | |||
+ | ====== Source Code ====== | ||
+ | |||
+ | ===== Status ===== | ||
+ | |||
+ | ^ Source ^ Mainlined? ^ | ||
+ | | [[linux.github> | ||
+ | |||
+ | ===== Files ===== | ||
+ | |||
+ | ^ Function ^ File ^ | ||
+ | | driver | ||
+ | | devicetree bindings | [[linux.github> | ||
+ | | hdl project | [[https:// | ||
+ | |||
+ | ====== Example Linux Device-Tree Initialization ====== | ||
+ | |||
+ | Required properties: | ||
+ | * compatible: Must be one of " | ||
+ | * reg: SPI chip select number for the device. | ||
+ | * spi-max-frequency: | ||
+ | * dmas: DMA specifier, consisting of a phandle to DMA controller node. | ||
+ | * dma-names: Must be " | ||
+ | * vref-supply: | ||
+ | |||
+ | ^ Function ^ File ^ | ||
+ | | AD7768 Device Tree | [[linux.github> | ||
+ | | zynq-zed-adv7511-ad7768.dts]] | | ||
+ | |||
+ | ====== Driver testing ====== | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | <WRAP top tip round box 60%> | ||
+ | An example program which uses the interface can be found here: | ||
+ | * [[resources: | ||
+ | </ | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/> **cd / | ||
+ | root:/ | ||
+ | iio:device0 | ||
+ | |||
+ | root:/ | ||
+ | |||
+ | root:/ | ||
+ | drwxrwxrwx 2 root root 0 Jan 1 00:02 buffer | ||
+ | -rw-rw-rw- 1 root root 4096 Jan 1 00:02 dev | ||
+ | -rw-rw-rw- 1 root root 4096 Jan 1 00:02 in_voltage_scale | ||
+ | -rw-rw-rw- 1 root root 4096 Jan 1 00:02 name | ||
+ | lrwxrwxrwx 1 root root 0 Jan 1 00:02 of_node -> ../ | ||
+ | drwxrwxrwx 2 root root 0 Jan 1 00:02 power | ||
+ | drwxrwxrwx 2 root root 0 Jan 1 00:02 scan_elements | ||
+ | lrwxrwxrwx 1 root root 0 Jan 1 00:02 subsystem -> ../ | ||
+ | -rw-rw-rw- 1 root root 4096 Jan 1 00:02 uevent | ||
+ | </ | ||
+ | |||
+ | === Show device name === | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/ | ||
+ | ad7768 | ||
+ | </ | ||
+ | |||
+ | === 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> |