On Mon, Nov 30, 2026 at 05:37:10PM +0000, Nuno Sá wrote: > Document the Analog Devices AD9523-1 jitter cleaner and clock generator. > > Only single loop operation is described for now, with PLL1 bypassed and > the VCXO on OSC_IN directly feeding PLL2. This is how the known boards > use it. REFA/REFB and the PLL1 properties can be added later without > breaking anything, as a missing reference clock keeps meaning that PLL1 > is bypassed. > > The PLL2 frequency plan is described by the M1 (and optionally M2) > output frequency, which also sets the VCO frequency. Like for other > PLLs, the reference divider and doubler can be given as they affect the > PFD frequency, and with it the loop filter design. The charge pump > current and the loop filter components are given in physical units. > > Signed-off-by: Nuno Sá > --- > .../bindings/iio/frequency/adi,ad9523-1.yaml | 289 +++++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 290 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,ad9523-1.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,ad9523-1.yaml > new file mode 100644 > index 000000000000..e0f328866859 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/frequency/adi,ad9523-1.yaml > @@ -0,0 +1,289 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/frequency/adi,ad9523-1.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices AD9523-1 low jitter clock generator > + > +maintainers: > + - Michael Hennerich > + - Nuno Sá > + > +description: > + Jitter cleaner and clock generator with 14 differential (or up to 29 LVCMOS) > + outputs. It has two cascaded PLLs. PLL1 cleans up a reference on REFA/REFB > + using an external VCXO on OSC_IN, and PLL2 multiplies the OSC_IN clock up to > + the VCO frequency. The VCO output goes through the M1 and M2 dividers to the > + output channels, each with its own divider. > + > + Only single loop operation is described for now, with PLL1 bypassed and the > + VCXO on OSC_IN directly feeding PLL2. > + > + https://www.analog.com/media/en/technical-documentation/data-sheets/AD9523-1.pdf > + > +properties: > + compatible: > + const: adi,ad9523-1 > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 25000000 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + clocks: > + items: > + - description: VCXO connected to OSC_IN. > + > + clock-names: > + items: > + - const: oscin > + > + "#clock-cells": > + const: 1 > + > + clock-output-names: > + minItems: 1 > + maxItems: 14 > + > + vdd3-pll-supply: > + description: 3.3 V supply for PLL1 and PLL2 (VDD3_PLL). > + > + vdd3-vco-supply: > + description: 3.3 V supply for the VCO and VCO divider M1 (VDD3_VCO). > + > + vdd3-ref-supply: > + description: > + 3.3 V supply for the output drivers reference and VCO divider M2 > + (VDD3_REF). > + > + vdd3-out-supply: > + description: 3.3 V supply for the output drivers (VDD3_OUT[x:y]). > + > + vdd18-out-supply: > + description: 1.8 V supply for the output dividers (VDD1.8_OUT[x:y]). > + > + powerdown-gpios: > + description: GPIO connected to the active low PD pin. > + maxItems: 1 > + > + reset-gpios: > + description: GPIO connected to the active low RESET pin. > + maxItems: 1 > + > + sync-gpios: > + description: GPIO connected to the active low SYNC pin. > + maxItems: 1 > + > + adi,oscin-mode: > + description: > + How the OSC_IN receiver is used. In single-ended mode, either the > + positive (OSC_IN) or the negative (OSC_IN complement) pin is used. > + enum: [single-ended-positive, single-ended-negative, differential] > + default: single-ended-positive > + > + adi,pll2-charge-pump-current-nanoamp: > + description: > + PLL2 charge pump current, in steps of 3.5 uA. This value depends on the > + PLL2 loop filter design. > + minimum: 3500 > + maximum: 892500 > + > + adi,pll2-m1-frequency-hz: > + description: > + Output frequency of the VCO divider M1, which feeds all output channels. > + M1 divides the VCO frequency (2940 MHz to 3100 MHz) by 3, 4 or 5, so the > + valid ranges are 588 MHz to 620 MHz, 735 MHz to 775 MHz and 980 MHz to > + 1033.33 MHz. It sets the frequencies the outputs can provide and, > + together with the PFD frequency, the PLL2 feedback divider the loop > + filter is designed for. > + minimum: 588000000 > + maximum: 1033333333 > + > + adi,pll2-m2-frequency-hz: > + description: > + Output frequency of the VCO divider M2, which can feed output channels 4 > + to 9. The VCO frequency divided by this value must be 3, 4 or 5. If not > + present, the M2 divider is powered down. > + minimum: 588000000 > + maximum: 1033333333 I note that these properties are exceptional in that they don't have a comment noting that they depend on hardware characteristics of the board. Why are these not computable? Cheers, Conor. > + > + adi,pll2-reference-div-factor: > + description: > + PLL2 reference divider (R2). Together with the reference doubler, it > + sets the PLL2 PFD frequency, which must not exceed 259 MHz. The VCO > + frequency must be an integer multiple N of the PFD frequency, where the > + feedback divider supports N = 12, 16 to 17, 20 to 22, 24 to 26 and 28 to > + 255. As it affects the PFD frequency, this value depends on the PLL2 > + loop filter design. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 1 > + maximum: 31 > + default: 1 > + > + adi,pll2-reference-doubler-enable: > + description: > + Enable the frequency doubler at the PLL2 input. As it affects the PFD > + frequency, this value depends on the PLL2 loop filter design. > + type: boolean > + > + adi,pll2-loop-filter-rzero-ohms: > + description: > + Internal PLL2 loop filter zero resistor (RZERO). The PLL2 loop filter is > + made of these internal components and an external capacitor on the > + board, and together with the charge pump current they set the loop > + bandwidth and phase margin. So their values come from the loop filter > + design of the board. 0 bypasses the internal resistor, which requires an > + external series zero resistor. > + enum: [0, 1850, 2000, 2100, 2250, 2500, 2750, 3000, 3250] > + default: 3250 > + > + adi,pll2-loop-filter-rpole2-ohms: > + description: > + Internal PLL2 loop filter pole 2 resistor (RPOLE2). Like the other loop > + filter components, its value depends on the loop filter design. > + enum: [225, 300, 450, 900] > + default: 900 > + > + adi,pll2-loop-filter-cpole1-picofarads: > + description: > + Internal PLL2 loop filter pole 1 capacitor (CPOLE1). Like the other loop > + filter components, its value depends on the loop filter design. > + enum: [0, 8, 16, 24, 32, 40, 48] > + default: 0 > + > +patternProperties: > + "^channel@([0-9]|1[0-3])$": > + type: object > + description: Output channel. > + > + properties: > + reg: > + description: Output channel number. > + maximum: 13 > + > + label: true > + > + adi,driver-mode: > + description: > + Output driver mode. The CMOS modes are named cmos--, where > + each pin is either true or complement phase relative to the divider > + output, or high-Z. > + enum: > + - lvpecl-8ma > + - lvds-3.5ma > + - lvds-7ma > + - hstl0-16ma > + - hstl1-8ma > + - cmos-true-true > + - cmos-true-complement > + - cmos-true-hiz > + - cmos-hiz-true > + - cmos-hiz-hiz > + - cmos-complement-complement > + - cmos-complement-true > + - cmos-complement-hiz > + - cmos-hiz-complement > + > + adi,divider-output-invert-enable: > + description: Invert the polarity of the channel output. > + type: boolean > + > + always-on: > + description: Keep the output running even if no consumer uses it. > + type: boolean > + > + required: > + - reg > + - adi,driver-mode > + > + additionalProperties: false > + > +dependencies: > + clock-output-names: [ "#clock-cells" ] > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - vdd3-pll-supply > + - vdd3-vco-supply > + - vdd3-ref-supply > + - vdd3-out-supply > + - vdd18-out-supply > + - adi,pll2-charge-pump-current-nanoamp > + - adi,pll2-m1-frequency-hz > + > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + - if: > + not: > + required: > + - "#clock-cells" > + then: > + patternProperties: > + "^channel@([0-9]|1[0-3])$": > + properties: > + always-on: false > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + clock-controller@0 { > + compatible = "adi,ad9523-1"; > + reg = <0>; > + spi-max-frequency = <10000000>; > + #address-cells = <1>; > + #size-cells = <0>; > + #clock-cells = <1>; > + > + clocks = <&vcxo>; > + clock-names = "oscin"; > + > + vdd3-pll-supply = <&vdd3>; > + vdd3-vco-supply = <&vdd3>; > + vdd3-ref-supply = <&vdd3>; > + vdd3-out-supply = <&vdd3>; > + vdd18-out-supply = <&vdd18>; > + > + powerdown-gpios = <&gpio 93 GPIO_ACTIVE_LOW>; > + reset-gpios = <&gpio 91 GPIO_ACTIVE_LOW>; > + sync-gpios = <&gpio 92 GPIO_ACTIVE_LOW>; > + > + adi,oscin-mode = "differential"; > + adi,pll2-charge-pump-current-nanoamp = <413000>; > + adi,pll2-m1-frequency-hz = <1000000000>; > + adi,pll2-loop-filter-rzero-ohms = <1850>; > + adi,pll2-loop-filter-rpole2-ohms = <900>; > + adi,pll2-loop-filter-cpole1-picofarads = <16>; > + > + channel@1 { > + reg = <1>; > + label = "dac-clk"; > + adi,driver-mode = "lvds-7ma"; > + }; > + > + channel@5 { > + reg = <5>; > + label = "fpga-clk"; > + adi,driver-mode = "lvds-7ma"; > + always-on; > + }; > + }; > + }; > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index d747e10ef125..3edb552c50ea 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1765,6 +1765,7 @@ L: linux@analog.com > L: linux-iio@vger.kernel.org > S: Supported > W: https://ez.analog.com/linux-software-drivers > +F: Documentation/devicetree/bindings/iio/frequency/adi,ad9523-1.yaml > F: drivers/iio/frequency/ad9523.c > > ANALOG DEVICES INC AD9739a DRIVER > > -- > 2.56.0 >