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:27] – Example Linux Device-Tree Initialization Stefan Popa | resources:tools-software:linux-drivers:iio-adc:ad7768 [05 Jul 2018 15:07] – More Information Stefan Popa | ||
---|---|---|---|
Line 27: | Line 27: | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
| driver | | driver | ||
+ | | devicetree bindings | [[linux.github> | ||
+ | | hdl project | [[https:// | ||
====== Example Linux Device-Tree Initialization ====== | ====== Example Linux Device-Tree Initialization ====== | ||
Line 41: | Line 43: | ||
| AD7768 Device Tree | [[linux.github> | | AD7768 Device Tree | [[linux.github> | ||
| zynq-zed-adv7511-ad7768.dts]] | | | 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> |