From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796064661; b=NGKfIEw29fCzTCmBoFJ22qjMaJKgrbl/Bd/HxkT2rLYcIic7SZnBlYlOQdsQtQmiabah 1Um8isWaeiMYR74EisLWcZ636qU1VLZPSMt9UB5ohbiaak8tRwpE1IxHWDpUqi7/J8X0e x6P5JsvqaPGDzMEuoYiHEfSc+p2N+hcd/1yqU1XYwlFzAtRF9ZgFQr5/U2B1mz+lHnFN1 ErqsIpPyMU11FYRVrEbyMx0ZMlUHV3VMAY5wziScPXjsZuWeiLvmJFSctrOlBHRBWDR4C 2l62hU62b1UdaRnez9x3BiCOWh82eU8DO31YQvPg2x+1f4Fz5HadSqDyNXMTCIGaafQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796064661; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=PDKoWPMqYMF4SLxG0qO3gEpF2YAETWlxYbzOcGHOrK4=; b=VbsA4UBuPGwpd1ydraDYi0/MXcTs7vkeWY03E2oMyHtWhytLboXScRfPlObVd1m8rDKw q1ZaYYngCwq/QcOFCAvSsxDHkSlF48pQjAFDRVo+i0XUjASy9udcXIct4aHrMrq0/6aFi pJPZe35r9USB+Al7jMaSS3zMMUMdKuCu9lQcnEWyx+T7lCHPPf++hOC0spjNgDsOvS/be rcEaAF4ZAtX3q2iJ3BqeYEI/4zTFkwRMXYLWkCO531SSALqNejR0RIPINRg0Idai7uaHT mXsic9pHANOWcOzzWTQXyI2dwR9F9M6c5mQgY8CBLjcpaqMSeZfOlScpIAtUSePx0fg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mONjiSw5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40CF3606A327; Mon, 30 Nov 2026 18:51:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mONjiSw5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94FCE1F00924; Mon, 30 Nov 2026 18:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796064660; bh=PDKoWPMqYMF4SLxG0qO3gEpF2YAETWlxYbzOcGHOrK4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=mONjiSw5rvmC/kUSFH+KoxPHuge16bhq99sRN/hSSUgu4oF9Q4/OEY8/SxqEAx2m5 3dHGM34KnnCwk4+O5YBQG/zMU2/At4aNEbOOdHIwgJroyjTJr/HKbnnQNzsBLEfh3m FkCBov6/A1R0Ef345B4/hZdRVTHVLqKTevPLLAmnH9KfH0zrWjtYmJdKoWO+S5A6wF cQ8ooMEHxCdzN46UkXyD8P0ggatEmVYBWm3u+ePy5jyd8RtXJj0/RsGfjZpGJEsKX1 12eI2mS82ZW+D2cmEu3t8UkvSLwnCiej9Yf7b7tfR9Pmve2PNqxIWU3NbF1MwWTfgr Ua08CGBNjg8Zg== Date: Mon, 30 Nov 2026 18:50:55 +0000 From: Conor Dooley To: Nuno =?iso-8859-1?Q?S=E1?= Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Cameron , Michael Hennerich , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Arnd Bergmann , linux@analog.com Subject: Re: [PATCH 12/16] dt-bindings: iio: frequency: Add AD9523-1 Message-ID: <20261130-vindicate-sitter-469f8822d728@spud> References: <20261130-iio-ad9523-fw-v1-0-9aee15b7a7a2@analog.com> <20261130-iio-ad9523-fw-v1-12-9aee15b7a7a2@analog.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1qQpxOhTo8tqH5ku" Content-Disposition: inline In-Reply-To: <20261130-iio-ad9523-fw-v1-12-9aee15b7a7a2@analog.com> --1qQpxOhTo8tqH5ku Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 30, 2026 at 05:37:10PM +0000, Nuno S=E1 wrote: > Document the Analog Devices AD9523-1 jitter cleaner and clock generator. >=20 > 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. >=20 > 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. >=20 > Signed-off-by: Nuno S=E1 > --- > .../bindings/iio/frequency/adi,ad9523-1.yaml | 289 +++++++++++++++= ++++++ > MAINTAINERS | 1 + > 2 files changed, 290 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,ad9523-1= =2Eyaml 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=E1 > + > +description: > + Jitter cleaner and clock generator with 14 differential (or up to 29 L= VCMOS) > + 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 an= d the > + VCXO on OSC_IN directly feeding PLL2. > + > + https://www.analog.com/media/en/technical-documentation/data-sheets/AD= 9523-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 o= n 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 cha= nnels. > + 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 MH= z 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 chan= nels 4 > + to 9. The VCO frequency divided by this value must be 3, 4 or 5. I= f 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, wher= e the > + feedback divider supports N =3D 12, 16 to 17, 20 to 22, 24 to 26 a= nd 28 to > + 255. As it affects the PFD frequency, this value depends on the PL= L2 > + 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 fil= ter 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 fil= ter > + design of the board. 0 bypasses the internal resistor, which requi= res 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 othe= r 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 di= vider > + 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 =3D <1>; > + #size-cells =3D <0>; > + > + clock-controller@0 { > + compatible =3D "adi,ad9523-1"; > + reg =3D <0>; > + spi-max-frequency =3D <10000000>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + #clock-cells =3D <1>; > + > + clocks =3D <&vcxo>; > + clock-names =3D "oscin"; > + > + vdd3-pll-supply =3D <&vdd3>; > + vdd3-vco-supply =3D <&vdd3>; > + vdd3-ref-supply =3D <&vdd3>; > + vdd3-out-supply =3D <&vdd3>; > + vdd18-out-supply =3D <&vdd18>; > + > + powerdown-gpios =3D <&gpio 93 GPIO_ACTIVE_LOW>; > + reset-gpios =3D <&gpio 91 GPIO_ACTIVE_LOW>; > + sync-gpios =3D <&gpio 92 GPIO_ACTIVE_LOW>; > + > + adi,oscin-mode =3D "differential"; > + adi,pll2-charge-pump-current-nanoamp =3D <413000>; > + adi,pll2-m1-frequency-hz =3D <1000000000>; > + adi,pll2-loop-filter-rzero-ohms =3D <1850>; > + adi,pll2-loop-filter-rpole2-ohms =3D <900>; > + adi,pll2-loop-filter-cpole1-picofarads =3D <16>; > + > + channel@1 { > + reg =3D <1>; > + label =3D "dac-clk"; > + adi,driver-mode =3D "lvds-7ma"; > + }; > + > + channel@5 { > + reg =3D <5>; > + label =3D "fpga-clk"; > + adi,driver-mode =3D "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 > =20 > ANALOG DEVICES INC AD9739a DRIVER >=20 > --=20 > 2.56.0 >=20 --1qQpxOhTo8tqH5ku Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaw3FjwAKCRB4tDGHoIJi 0krwAP9p2L/d379Df0HqoWtpH/idNpymSDhPovYiC6dXSapnswEA+l0boEeQA/9i NLZ1Chly+yiYNzSxaJmgquNuqKC0Iww= =KjOC -----END PGP SIGNATURE----- --1qQpxOhTo8tqH5ku--