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-pll:ad9523 [20 Nov 2012 10:42] – [Evaluation Boards] Lars-Peter Clausen | resources: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 | ^ Source | ||
- | | [[git.linux.org> | + | | [[git.linux.org> |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | include | [[staging.kernel.org> | + | | include | [[git.linux.org> |
- | | Documentation | [[staging.kernel.org> | + | | Documentation | [[git.linux.org> |
====== 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> |
< | < | ||
Linux Kernel Configuration | Linux Kernel Configuration | ||
Device Drivers | Device Drivers | ||
- | [*] Staging drivers | + | < |
- | < | + | |
- | | + | Frequency Synthesizers DDS/ |
- | Frequency Synthesizers DDS/ | + | Clock Generator/ |
- | Clock Generator/ | + | |
- | | + | <*> Analog Devices AD9523 Low Jitter Clock Generator |
- | + | | |
- | <*> Analog Devices AD9523 Low Jitter Clock Generator | + | |
- | + | ||
- | | + | |
</ | </ | ||
Line 352: | Line 348: | ||
{{page> | {{page> | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cd / | root:/> **cd / | ||
Line 401: | Line 397: | ||
-rw-r--r-- | -rw-r--r-- | ||
-r--r--r-- | -r--r--r-- | ||
- | </ | + | </ |
=== Show device name === | === Show device name === | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cd / | root:/> **cd / | ||
root:/> **cat name** | root:/> **cat name** | ||
ad9523-lpc | ad9523-lpc | ||
- | </ | + | </ |
=== Set ChannelY Output Frequency === | === Set ChannelY Output Frequency === | ||
Line 421: | Line 417: | ||
channel. | channel. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
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 | ||
- | </ | + | </ |
=== Set ChannelY Output Divider Phase === | === Set ChannelY Output Divider Phase === | ||
Line 440: | Line 436: | ||
channel. | channel. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
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 | ||
- | </ | + | </ |
=== Disable / Power Down ChannelY === | === Disable / Power Down ChannelY === | ||
Line 456: | Line 452: | ||
any value > 0 enables the channel. | any value > 0 enables the channel. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
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 | ||
- | </ | + | </ |
=== 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. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cat pll1_locked** | root:/> **cat pll1_locked** | ||
Line 495: | Line 491: | ||
vcxo_clk_present: | vcxo_clk_present: | ||
- | </ | + | </ |
=== 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. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **echo 1 > store_eeprom** | root:/> **echo 1 > store_eeprom** | ||
- | </ | + | </ |
=== SYNC Device === | === SYNC Device === | ||
Line 520: | Line 516: | ||
/SYNC pin low. | /SYNC pin low. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **echo 1 > sync_dividers** | root:/> **echo 1 > sync_dividers** | ||
- | </ | + | </ |
====== More Information ====== | ====== More Information ====== | ||
{{page> | {{page> |