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=1796235476; b=a49WkAythtYMOYbQTJWaqTGrmKvagofO7VxdTK5mfRdCM625Aeyru2Dg37OufYrQxOML slEz8iHD1GIn4PNgmF3slW8uX0vSzXlAENLqMjs/txPvWyEtaCLz2V9wtc7Ir9yuIuI4t YxPOcw3Z/1OiyGY8dTzwgKh2+S+yAVhKSR/iDjxp+PPHUKfy7UOBprkabmNTiyp3LPOhX s0HruWKZ+PAssH9REkQEMQHJ2H679WHIn5MinFqhjb7tES0JKH/3fu8F2lUulBsquxi8R S4oehzxqPdLXXv64F5sXWv0Y+AjkOl1dBvRvgmNSuXe2PEVqmX+1/dNB1h9craQ0u2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796235476; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ZSrXqySfpgGhWKkTJ31FPlxhohLO6z/f8nRuXadeYfY=; b=Sxx4fPkIVstgikxc7i7DmzYn31pooY5fDk5gSnqqfrv1FtbodicqDRSlU5Jkyob9bxRV lLcmCNQRNmK655ldxRpNJR5VgC4PgJ7wP2V1sfTJgCvoXd0atvmLlNBUyxHXN8eTqSTf1 /O25b7fxUzSx6o8kHGw20/EFDVpWSAL93PWddopmfmGEVPL8pQE/Lvn5ZP7fyiitU2pj+ wAx6HSTGjo3MIgEb/ThEuOKQLmi8jJWWtPvTafVLKB6BjbpfgPAcDMNs7HTVSJWxEI7w3 np79chBeGDqVclpdAhHoeW3c12NHugqsxOTD8DpvRAWL7V1Jo/hXMqZgSmZ50Ho5MtA== 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=oJbLrl3u; 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 CE960606A322; Wed, 2 Dec 2026 18:17:56 +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=oJbLrl3u Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C7BD1F00893; Wed, 2 Dec 2026 18:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796235476; bh=ZSrXqySfpgGhWKkTJ31FPlxhohLO6z/f8nRuXadeYfY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=oJbLrl3uYVuZwCg1fYrr9h4tM3A1CNLSbJCPHfF+OUL7KryKw0zroaicnG9WY/DC2 3Hspm5iNGAdNuo4oXAlx2OsQucX86dDN9VQ20DPrJp6LmRYNt5I3sPDUpeHK4GDOeL j1MeE/7S912wWHZ/jJlSgcFkdu/s+/QQUPAC3B6Dr3d4OGhCJ/b1+zpqD+UdTpnt93 lo7t8iKTRTPgcqugZyXiHWxQvnfHuHV0sMtQhCrNoDXqfG3goO7DIMHpli38SmnkFs 57JEtzElik5qBp2li0y4V+/U9SgSuUVnWCSZrUSGRVrULC/g/FM1LEnqiRj038P6CO YbPjj4HQnwcvw== Date: Wed, 2 Dec 2026 18:17:51 +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: <20261202-hardwired-cabdriver-797a7d18a61b@spud> References: <20261130-iio-ad9523-fw-v1-0-9aee15b7a7a2@analog.com> <20261130-iio-ad9523-fw-v1-12-9aee15b7a7a2@analog.com> <20261130-vindicate-sitter-469f8822d728@spud> X-Mailing-List: devicetree@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="oG13OltfLlsgtcpo" Content-Disposition: inline In-Reply-To: --oG13OltfLlsgtcpo Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 02, 2026 at 11:29:57AM +0000, Nuno S=E1 wrote: > >=20 > > > + 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 98= 0 MHz to > > > + 1033.33 MHz. It sets the frequencies the outputs can provide a= nd, > > > + 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 > >=20 > > 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? >=20 > So the above is a bit like (a bit more complex though: >=20 > https://elixir.bootlin.com/linux/v7.4-rc2/source/Documentation/devicetree= /bindings/clock/fsl,plldig.yaml#L30 >=20 > M1 and M2 are the VCO output dividers, and the M1 frequency is what fixes > the VCO frequency. Changing the VCO requires recalibrating it, and both > the VCO and the M dividers are shared by all outputs, so they can only be > set at startup. Every output is then M1 (or M2) divided by an integer, so > these properties define which output frequencies the board can provide, > depending on whatever is consuming these clocks. Depending on M, that's > one of three frequency ranges. >=20 > Basically, the internal dividers are fixed and not exposed, so the > frequency plan has to come from somewhere else. On SoCs it often comes > from u-boot (and linux just dumps in the clk_summary), which is not the c= ase > here. >=20 > I know we could model pll2-m1 and pll2-m2 (and maybe the VCO) as clocks, > but I'm not sure that would make things simpler: we would need > assigned-clock-rates to fix these dividers at startup, and there's still > the IIO case, where the device is not a clock provider. >=20 > Anyways, I agree these properties are a bit on the limit of what makes > sense for DT, but I believe there's still a case (and precedent, which > does not make it right of course) for them. I find the problem here isn't so much the property itself, it's the lack of a comment noting what it depends on or why it should be used. You've provided a lot of that info here in this mail that I think needs to move into the binding. --oG13OltfLlsgtcpo Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaxBgzwAKCRB4tDGHoIJi 0rSmAQCGMftYEeBcGd7aS0gejZyZRTQIxpAvN6T4BpXCD15yDQD+NbuJ1liLSXPG cl4iLIQMTn7OxKUuvQRf1Ug+4BJj+QI= =M6Ub -----END PGP SIGNATURE----- --oG13OltfLlsgtcpo--