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:adf4350 [17 Dec 2014 15:23] – [Files] Michael Hennerich | resources:tools-software:linux-drivers:iio-pll:adf4350 [31 Mar 2015 10:57] – [Example platform device initialization] Michael Hennerich | ||
---|---|---|---|
Line 39: | Line 39: | ||
| include | [[git.linux.org> | | include | [[git.linux.org> | ||
| Documentation | [[git.linux.org> | | Documentation | [[git.linux.org> | ||
+ | | Documentation | [[git.linux.org> | ||
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 128: | Line 129: | ||
</ | </ | ||
+ | ====== Devicetree bindings ====== | ||
+ | |||
+ | < | ||
+ | Required properties: | ||
+ | - compatible: Should be one of | ||
+ | * " | ||
+ | * " | ||
+ | - reg: SPI chip select numbert for the device | ||
+ | - spi-max-frequency: | ||
+ | - clocks: From common clock binding. Clock is phandle to clock for | ||
+ | ADF435x Reference Clock (CLKIN). | ||
+ | |||
+ | Optional properties: | ||
+ | - gpios: GPIO Lock detect - If set with a valid phandle and GPIO number, | ||
+ | pll lock state is tested upon read. | ||
+ | - adi, | ||
+ | - adi, | ||
+ | the desired frequency on probe. | ||
+ | - adi, | ||
+ | and uses this default value instead. | ||
+ | - adi, | ||
+ | - adi, | ||
+ | - adi, | ||
+ | detector polarity. Default = negative. | ||
+ | - adi, | ||
+ | Default = 10ns. | ||
+ | - adi, | ||
+ | for integer-N mode. Default = factional-N mode. | ||
+ | - adi, | ||
+ | Default = 2500mA. | ||
+ | - adi, | ||
+ | Valid values for the multiplexer output are: | ||
+ | 0: Three-State Output (default) | ||
+ | 1: DVDD | ||
+ | 2: DGND | ||
+ | 3: R-Counter output | ||
+ | 4: N-Divider output | ||
+ | 5: Analog lock detect | ||
+ | 6: Digital lock detect | ||
+ | - adi, | ||
+ | Default = Low noise mode. | ||
+ | - adi, | ||
+ | - adi, | ||
+ | charge cancellation for integer-N modes. | ||
+ | - adi, | ||
+ | for integer-N modes. | ||
+ | - adi, | ||
+ | selection logic. | ||
+ | - adi, | ||
+ | adi, | ||
+ | - adi, | ||
+ | Valid values for the clkdiv mode are: | ||
+ | 0: Clock divider off (default) | ||
+ | 1: Fast lock enable | ||
+ | 2: Phase resync enable | ||
+ | - adi, | ||
+ | - adi, | ||
+ | the auxiliary RF output. Default = Output of RF dividers. | ||
+ | - adi, | ||
+ | - adi, | ||
+ | Valid values for the power mode are: | ||
+ | 0: -4dBm (default) | ||
+ | 1: -1dBm | ||
+ | 2: +2dBm | ||
+ | 3: +5dBm | ||
+ | - adi, | ||
+ | Valid values for the power mode are: | ||
+ | 0: -4dBm (default) | ||
+ | 1: -1dBm | ||
+ | 2: +2dBm | ||
+ | 3: +5dBm | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Example: | ||
+ | lo_pll0_rx_adf4351: | ||
+ | compatible = " | ||
+ | reg = <4>; | ||
+ | spi-max-frequency = < | ||
+ | clocks = <& | ||
+ | clock-names = " | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | }; | ||
+ | </ | ||
====== Adding Linux driver support ====== | ====== Adding Linux driver support ====== | ||