clk: add of_clk_src_onecell_get() support

For those SoCs that have hundreds of clock outputs, their clock
DT bindings could reasonably define #clock-cells as 1 and require
the client device specify the index of the clock it consumes in the
cell of its "clocks" phandle.

Add a generic of_clk_src_onecell_get() function for this purpose.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
iio: frequency: ad9523 add support for device tree bindings

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
clk: Check parent for NULL in clk_change_rate

clk_change_rate() is accessing parent's rate without checking
if the parent exists at all. In case of root clocks this will
cause NULL pointer dereference.

This patch follows what clk_calc_new_rates() does in such
situation.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Cc: stable@kernel.org
iio: frequency: adf4350: fix typo in mask

Fix typo in r2_user_settings mask

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: frequency: turn ad9517 into IIO Device

turn ad9517 into IIO Device
use of_clk_src_onecell_get

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: adc: ad9467: AD9250 use default (midscale) vref

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: adc: cf_axi_jesd204b: update compatible

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: frequency: ad9523: Add clock producer support

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: frequency: ad9122: misc changes

Turn device into an clock consumer.
	Request DCO, DAC and REF clocks for direct clocking.

Allow requesting alternative Bus Interface Rates (DCO_CLK).
(Remove CF_AXI_DDS_CHAN_CLK_IN)

Add new attributes for interpolation modes.
	New attributes:
		out_altvoltage_interpolation
		out_altvoltage_interpolation_center_shift
		out_altvoltage_interpolation_available

Update SYNC FRAME function to check for FIFO conditions.

Power down IQ DACs during cf_axi_dds_tune_dci().


Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: frequency: adf4350: Add support for device tree bindings

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: frequency: adf4350: Add clock consumer support

Allow PLL reference frequency changes by adding clock consumer support.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: adc: ad9467: Always depend on clock

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
ad9523 fix warnings in ft support
ad9523 fix warnings in clk support
iio: amplifiers: ad8366 add support for device tree bindings

try to get a unique name

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
microblaze: platform: xcomm: Instantiate all xcomm drivers via device tree

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio: adc: ad9467: remove support for HW FFT core

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
iio adc: ad9467: add defines for user logic support

temp commit

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>