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:33] – Driver testing Stefan Popa | resources:tools-software:linux-drivers:iio-adc:ad7768 [05 Jul 2018 15:00] – added hdl project link 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 51: | Line 53: | ||
</ | </ | ||
+ | <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 | ||
+ | </ | ||