18c2ecf20Sopenharmony_ciAnalog Devices ADF4350/ADF4351 device driver
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci	- compatible: Should be one of
58c2ecf20Sopenharmony_ci		* "adi,adf4350": When using the ADF4350 device
68c2ecf20Sopenharmony_ci		* "adi,adf4351": When using the ADF4351 device
78c2ecf20Sopenharmony_ci	- reg: SPI chip select numbert for the device
88c2ecf20Sopenharmony_ci	- spi-max-frequency: Max SPI frequency to use (< 20000000)
98c2ecf20Sopenharmony_ci	- clocks: From common clock binding. Clock is phandle to clock for
108c2ecf20Sopenharmony_ci		ADF435x Reference Clock (CLKIN).
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciOptional properties:
138c2ecf20Sopenharmony_ci	- gpios:	 GPIO Lock detect - If set with a valid phandle and GPIO number,
148c2ecf20Sopenharmony_ci			pll lock state is tested upon read.
158c2ecf20Sopenharmony_ci	- adi,channel-spacing: Channel spacing in Hz (influences MODULUS).
168c2ecf20Sopenharmony_ci	- adi,power-up-frequency:	If set in Hz the PLL tunes to
178c2ecf20Sopenharmony_ci			the desired frequency on probe.
188c2ecf20Sopenharmony_ci	- adi,reference-div-factor: If set the driver skips dynamic calculation
198c2ecf20Sopenharmony_ci			and uses this default value instead.
208c2ecf20Sopenharmony_ci	- adi,reference-doubler-enable: Enables reference doubler.
218c2ecf20Sopenharmony_ci	- adi,reference-div2-enable: Enables reference divider.
228c2ecf20Sopenharmony_ci	- adi,phase-detector-polarity-positive-enable: Enables positive phase
238c2ecf20Sopenharmony_ci			detector polarity. Default = negative.
248c2ecf20Sopenharmony_ci	- adi,lock-detect-precision-6ns-enable: Enables 6ns lock detect precision.
258c2ecf20Sopenharmony_ci			Default = 10ns.
268c2ecf20Sopenharmony_ci	- adi,lock-detect-function-integer-n-enable: Enables lock detect
278c2ecf20Sopenharmony_ci			for integer-N mode. Default = factional-N mode.
288c2ecf20Sopenharmony_ci	- adi,charge-pump-current: Charge pump current in mA.
298c2ecf20Sopenharmony_ci			Default = 2500mA.
308c2ecf20Sopenharmony_ci	- adi,muxout-select: On chip multiplexer output selection.
318c2ecf20Sopenharmony_ci			Valid values for the multiplexer output are:
328c2ecf20Sopenharmony_ci			0: Three-State Output (default)
338c2ecf20Sopenharmony_ci			1: DVDD
348c2ecf20Sopenharmony_ci			2: DGND
358c2ecf20Sopenharmony_ci			3: R-Counter output
368c2ecf20Sopenharmony_ci			4: N-Divider output
378c2ecf20Sopenharmony_ci			5: Analog lock detect
388c2ecf20Sopenharmony_ci			6: Digital lock detect
398c2ecf20Sopenharmony_ci	- adi,low-spur-mode-enable: Enables low spur mode.
408c2ecf20Sopenharmony_ci			Default = Low noise mode.
418c2ecf20Sopenharmony_ci	- adi,cycle-slip-reduction-enable: Enables cycle slip reduction.
428c2ecf20Sopenharmony_ci	- adi,charge-cancellation-enable: Enabled charge pump
438c2ecf20Sopenharmony_ci			charge cancellation for integer-N modes.
448c2ecf20Sopenharmony_ci	- adi,anti-backlash-3ns-enable: Enables 3ns antibacklash pulse width
458c2ecf20Sopenharmony_ci			 for integer-N modes.
468c2ecf20Sopenharmony_ci	- adi,band-select-clock-mode-high-enable: Enables faster band
478c2ecf20Sopenharmony_ci			selection logic.
488c2ecf20Sopenharmony_ci	- adi,12bit-clk-divider: Clock divider value used when
498c2ecf20Sopenharmony_ci			adi,12bit-clkdiv-mode != 0
508c2ecf20Sopenharmony_ci	- adi,clk-divider-mode:
518c2ecf20Sopenharmony_ci			Valid values for the clkdiv mode are:
528c2ecf20Sopenharmony_ci			0: Clock divider off (default)
538c2ecf20Sopenharmony_ci			1: Fast lock enable
548c2ecf20Sopenharmony_ci			2: Phase resync enable
558c2ecf20Sopenharmony_ci	- adi,aux-output-enable: Enables auxiliary RF output.
568c2ecf20Sopenharmony_ci	- adi,aux-output-fundamental-enable: Selects fundamental VCO output on
578c2ecf20Sopenharmony_ci			the auxiliary RF output. Default = Output of RF dividers.
588c2ecf20Sopenharmony_ci	- adi,mute-till-lock-enable: Enables Mute-Till-Lock-Detect function.
598c2ecf20Sopenharmony_ci	- adi,output-power: Output power selection.
608c2ecf20Sopenharmony_ci			Valid values for the power mode are:
618c2ecf20Sopenharmony_ci			0: -4dBm (default)
628c2ecf20Sopenharmony_ci			1: -1dBm
638c2ecf20Sopenharmony_ci			2: +2dBm
648c2ecf20Sopenharmony_ci			3: +5dBm
658c2ecf20Sopenharmony_ci	- adi,aux-output-power: Auxiliary output power selection.
668c2ecf20Sopenharmony_ci			Valid values for the power mode are:
678c2ecf20Sopenharmony_ci			0: -4dBm (default)
688c2ecf20Sopenharmony_ci			1: -1dBm
698c2ecf20Sopenharmony_ci			2: +2dBm
708c2ecf20Sopenharmony_ci			3: +5dBm
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ciExample:
748c2ecf20Sopenharmony_ci		lo_pll0_rx_adf4351: adf4351-rx-lpc@4 {
758c2ecf20Sopenharmony_ci			compatible = "adi,adf4351";
768c2ecf20Sopenharmony_ci			reg = <4>;
778c2ecf20Sopenharmony_ci			spi-max-frequency = <10000000>;
788c2ecf20Sopenharmony_ci			clocks = <&clk0_ad9523 9>;
798c2ecf20Sopenharmony_ci			clock-names = "clkin";
808c2ecf20Sopenharmony_ci			adi,channel-spacing = <10000>;
818c2ecf20Sopenharmony_ci			adi,power-up-frequency = <2400000000>;
828c2ecf20Sopenharmony_ci			adi,phase-detector-polarity-positive-enable;
838c2ecf20Sopenharmony_ci			adi,charge-pump-current = <2500>;
848c2ecf20Sopenharmony_ci			adi,output-power = <3>;
858c2ecf20Sopenharmony_ci			adi,mute-till-lock-enable;
868c2ecf20Sopenharmony_ci		};
87