Re: [PATCH RFC 1/8] dt-bindings: iio: frequency: add ad9910

From: Jonathan Cameron

Date: Sun Mar 01 2026 - 07:51:17 EST


On Fri, 20 Feb 2026 16:46:05 +0000
Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@xxxxxxxxxx> wrote:

> From: Rodrigo Alencar <rodrigo.alencar@xxxxxxxxxx>
>
> DT-bindings for AD9910, a 1 GSPS DDS with 14-bit DAC. It includes
> configurations for the reference clock path, DAC current, reset and basic
> GPIO control.
>
> Signed-off-by: Rodrigo Alencar <rodrigo.alencar@xxxxxxxxxx>
Hi Rodrigo,

A few comments from me inline.

Thanks,

Jonathan

> ---
> .../bindings/iio/frequency/adi,ad9910.yaml | 236 +++++++++++++++++++++
> MAINTAINERS | 7 +
> 2 files changed, 243 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,ad9910.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,ad9910.yaml
> new file mode 100644
> index 000000000000..43b21d1428ba
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/frequency/adi,ad9910.yaml

> + adi,pll-vco-select:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 0
> + maximum: 5
> + description: |
> + VCO frequency range selection (0-5). When not specified and the PLL
> + is enabled, the VCO range is automatically selected based on the
> + computed system clock frequency. Typical VCO frequency ranges are:

Given this automatic mode. Why would need to override it?

> + - Range 0: 370 MHz to 510 MHz (Auto-selected when <= 465 MHz)
> + - Range 1: 420 MHz to 590 MHz (Auto-selected when > 465 MHz and <= 545 MHz)
> + - Range 2: 500 MHz to 700 MHz (Auto-selected when > 545 MHz and <= 650 MHz)
> + - Range 3: 600 MHz to 880 MHz (Auto-selected when > 650 MHz and <= 790 MHz)
> + - Range 4: 700 MHz to 950 MHz (Auto-selected when > 790 MHz and <= 885 MHz)
> + - Range 5: 820 MHz to 1050 MHz (Auto-selected when > 885 MHz)
> +
> + adi,charge-pump-current-microamp:
> + minimum: 212
> + maximum: 387
> + default: 387
> + description:
> + PLL charge pump current in microamps. Only applicable when the PLL
> + is enabled. The value is rounded to the nearest supported step.
> +
> + adi,refclk-out-drive-strength:
> + $ref: /schemas/types.yaml#/definitions/string
> + enum: [ disabled, low, medium, high ]
> + default: disabled
> + description:
> + Reference clock output (DRV0) drive strength. Only applicable when
> + the PLL is enabled.
> +
> + adi,reference-div2-enable:
> + type: boolean
> + description:
> + Enable the reference clock input divider. When enabled, the input
> + reference frequency is halved before deriving the system clock.
> + This is only applicable when the PLL is bypassed.
Often for these they can be derived from what the desired output
frequencies are. There tends to be a right answer for any combination on
input clocks and output frequency so we don't normally need them
in DT. If there is a reason we do here, needs more explanation.

> +
> + adi,inverse-sinc-enable:
> + type: boolean
> + description:
> + Enable the inverse sinc filter that compensates for the sinc roll-off
> + of the DAC output. When it is enabled, the filter introduces up to 3 dB
> + of insertion loss.

We probably need to improve our userspace filter controls for this one.
Why would it need to be in DT? Maybe we even just decide to always
enable this one despite the attenuation. I'm not sure how the term
insertion loss applies to a filter being enabled or not.

> +
> + adi,sine-output-enable:
> + type: boolean
> + description:
> + Select sine wave output from the DDS core. When not set, the
> + output is a cosine wave.

That sounds like a userspace thing probably represented as a phase
offset.

> +
> + adi,sync-clk-disable:
> + type: boolean
> + description:
> + Disable the SYNC_CLK output pin. SYNC_CLK runs at one quarter
> + of the system clock frequency.
> +
> + adi,pdclk-disable:
> + type: boolean
> + description:
> + Disable the parallel data clock (PDCLK) output. PDCLK runs at
> + one quarter of the system clock frequency.
> +
> + adi,pdclk-invert:
> + type: boolean
> + description:
> + Invert the polarity of the PDCLK output.

Others have commented on these as clock providers. I think that
will make more sense.

> +
> + adi,tx-enable-invert:
> + type: boolean
> + description:
> + Invert the polarity of the TX_ENABLE input pin.

It's an input, so I assume you are referring to some chip control
that allows us to change what is expected on this pin from
active high to active low or similar?

Is this hooked up to the backend fpga signal and that has some
fixed output polarity?

> +
> + adi,dac-output-current-microamp:
> + minimum: 8640
> + maximum: 31590
> + default: 20070
> + description:
> + DAC full-scale output current in microamps.

Needs an explanation of why this is in DT.