Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
resources:tools-software:linux-drivers:iio-pll:ad9523 [20 Nov 2012 10:42] – [Evaluation Boards] Lars-Peter Clausenresources:tools-software:linux-drivers:iio-pll:ad9523 [18 Feb 2013 15:47] – The driver is upstream now Lars-Peter Clausen
Line 23: Line 23:
  
 ^  Source  ^  Mainlined?  ^ ^  Source  ^  Mainlined?  ^
-| [[git.linux.org>drivers/staging/iio/frequency/ad9523.c|git]] |  [[git.linux.org>drivers/staging/iio/frequency/ad9523.c|In Progress]]  |+| [[git.linux.org>drivers/iio/frequency/ad9523.c|git]] |  [[git.linux.org>drivers/iio/frequency/ad9523.c|Yes]]  |
 ===== Files ===== ===== Files =====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| driver  | [[staging.kernel.org>drivers/iio/frequency/ad9523.c]] | +| driver  | [[git.linux.org>drivers/iio/frequency/ad9523.c]] | 
-| include | [[staging.kernel.org>include/linux/iio/frequency/ad9523.h]] | +| include | [[git.linux.org>include/linux/iio/frequency/ad9523.h]] | 
-| Documentation | [[staging.kernel.org>Documentation/ABI/testing/sysfs-bus-iio-frequency-ad9523]] |+| Documentation | [[git.linux.org>Documentation/ABI/testing/sysfs-bus-iio-frequency-ad9523]] |
  
 ====== Example platform device initialization ====== ====== Example platform device initialization ======
Line 325: Line 325:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The AD9523 Driver depends on **CONFIG_SPI** The AD9523 Driver depends on **CONFIG_SPI**
-</note>+</WRAP>
  
 <code> <code>
 Linux Kernel Configuration Linux Kernel Configuration
  Device Drivers  --->  Device Drivers  --->
- [*] Staging drivers  ---> + <*>     Industrial I/O support ---> 
- <*>     Industrial I/O support ---> +     --- Industrial I/O support 
-     --- Industrial I/O support + Frequency Synthesizers DDS/PLL  ---> 
- Frequency Synthesizers DDS/PLL  ---> + Clock Generator/Distribution  --->  
- Clock Generator/Distribution  --->  +     [--snip--] 
-     [--snip--] + <*> Analog Devices AD9523 Low Jitter Clock Generator  
- +     [--snip--]
- <*> Analog Devices AD9523 Low Jitter Clock Generator  +
- +
-     [--snip--] +
 </code> </code>
  
Line 352: Line 348:
 {{page>software:linux:docs:iio:iio_snippets#iio device files&noheader&firstseconly&noeditbtn}} {{page>software:linux:docs:iio:iio_snippets#iio device files&noheader&firstseconly&noeditbtn}}
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **cd /sys/bus/iio/devices/** root:/> **cd /sys/bus/iio/devices/**
Line 401: Line 397:
 -rw-r--r--    1 root     root          4096 Jan  1 00:00 uevent -rw-r--r--    1 root     root          4096 Jan  1 00:00 uevent
 -r--r--r--    1 root     root          4096 Jan  1 00:00 vcxo_clk_present -r--r--r--    1 root     root          4096 Jan  1 00:00 vcxo_clk_present
-</xterm></box>+</xterm></WRAP>
  
  
 === Show device name === === Show device name ===
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **cd /sys/bus/iio/devices/iio\:device0/** root:/> **cd /sys/bus/iio/devices/iio\:device0/**
 root:/> **cat name** root:/> **cat name**
 ad9523-lpc ad9523-lpc
-</xterm></box>+</xterm></WRAP>
  
 === Set ChannelY Output Frequency === === Set ChannelY Output Frequency ===
Line 421: Line 417:
 channel. channel.
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **cat out_altvoltage1_DAC_CLK_frequency** root:/> **cat out_altvoltage1_DAC_CLK_frequency**
Line 428: Line 424:
 root:/> **cat out_altvoltage1_DAC_CLK_frequency** root:/> **cat out_altvoltage1_DAC_CLK_frequency**
 245760000 245760000
-</xterm></box>+</xterm></WRAP>
  
 === Set ChannelY Output Divider Phase === === Set ChannelY Output Divider Phase ===
Line 440: Line 436:
 channel. channel.
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **cat out_altvoltage1_DAC_CLK_phase** root:/> **cat out_altvoltage1_DAC_CLK_phase**
Line 447: Line 443:
 root:/> **cat out_altvoltage1_DAC_CLK_phase** root:/> **cat out_altvoltage1_DAC_CLK_phase**
 3.1415920 3.1415920
-</xterm></box>+</xterm></WRAP>
  
 === Disable / Power Down ChannelY === === Disable / Power Down ChannelY ===
Line 456: Line 452:
 any value > 0 enables the channel.  any value > 0 enables the channel. 
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **cat out_altvoltage1_DAC_CLK_raw** root:/> **cat out_altvoltage1_DAC_CLK_raw**
Line 463: Line 459:
 root:/> **cat out_altvoltage1_DAC_CLK_raw** root:/> **cat out_altvoltage1_DAC_CLK_raw**
 0 0
-</xterm></box>+</xterm></WRAP>
  
 === Query Device Status === === Query Device Status ===
Line 480: Line 476:
 means that the clock is missing or the pllY is unlocked. means that the clock is missing or the pllY is unlocked.
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **cat pll1_locked** root:/> **cat pll1_locked**
Line 495: Line 491:
 vcxo_clk_present:1 vcxo_clk_present:1
  
-</xterm></box>+</xterm></WRAP>
  
 === Save Current Device Config to EEPROM === === Save Current Device Config to EEPROM ===
Line 505: Line 501:
 automatically load the saved configuration. automatically load the saved configuration.
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **echo 1 > store_eeprom** root:/> **echo 1 > store_eeprom**
-</xterm></box>+</xterm></WRAP>
  
 === SYNC Device === === SYNC Device ===
Line 520: Line 516:
 /SYNC pin low. /SYNC pin low.
  
-<box 100% green|shell prompt running on the target>+<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 <xterm> <xterm>
 root:/> **echo 1 > sync_dividers** root:/> **echo 1 > sync_dividers**
-</xterm></box>+</xterm></WRAP>
  
 ====== More Information ====== ====== More Information ======
  
 {{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}} {{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}}
resources/tools-software/linux-drivers/iio-pll/ad9523.txt · Last modified: 11 Feb 2016 20:58 by Lars-Peter Clausen