Both sides previous revisionPrevious revisionNext revision | Previous revision |
resources:tools-software:linux-drivers:iio-pll:adf4371 [04 Sep 2019 13:06] – Driver testing Stefan Popa | resources:tools-software:linux-drivers:iio-pll:adf4371 [04 Sep 2019 14:13] (current) – More Information Stefan Popa |
---|
| driver | [[linux.github>master?drivers/iio/frequency/adf4371.c | drivers/iio/frequency/adf4371.c]] | | | driver | [[linux.github>master?drivers/iio/frequency/adf4371.c | drivers/iio/frequency/adf4371.c]] | |
| Documentation | [[linux.github>master?Documentation/devicetree/bindings/iio/frequency/adf4371.yaml | adf4371.yaml]] | | | Documentation | [[linux.github>master?Documentation/devicetree/bindings/iio/frequency/adf4371.yaml | adf4371.yaml]] | |
| | ABI documentation| [[linux.github>master?Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4371 | sysfs-bus-iio-frequency-adf4371]] | |
| |
Example device tree | Example device tree |
</xterm></WRAP> | </xterm></WRAP> |
| |
| ===== Show device name ===== |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat name** |
| **adf4371** |
| </xterm></WRAP> |
| |
| ===== Read channel frequency ===== |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat out_altvoltage0_frequency** |
| **8000000000** |
| </xterm></WRAP> |
| |
| ===== Read channel name ===== |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat out_altvoltage0_name** |
| **RF8x** |
| </xterm></WRAP> |
| |
| ===== Set channel frequency ===== |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device0# **echo 1000000000 > out_altvoltage0_frequency** |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat out_altvoltage0_frequency** |
| **1000000000** |
| </xterm></WRAP> |
| |
| ===== Channel power down ===== |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat out_altvoltage0_powerdown** |
| 0 |
| root@analog:/sys/bus/iio/devices/iio:device0# **echo 1 > out_altvoltage0_powerdown** |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat out_altvoltage0_powerdown** |
| 1 |
| </xterm></WRAP> |
| |
| ===== Muxout mode ===== |
| |
| The mux output allows the user to access various internal points on the chip. Valid values that can be written: |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat out_altvoltage_muxout_mode_available** |
| tristate digital_lock charge_pump_up charge_pump_down RDIV2 N_div_out VCO_test high VCO_calib_R_band VCO_calib_N_band |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat muxout_mode** |
| digital_lock |
| root@analog:/sys/bus/iio/devices/iio:device0# **echo charge_pump_up > muxout_mode** |
| root@analog:/sys/bus/iio/devices/iio:device0# **cat muxout_mode** |
| charge_pump_up |
| </xterm></WRAP> |
| ====== More Information ====== |
| |
| {{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}} |
| |