Article View: linux.kernel.netdev
Article #5273Re: [PATCH net-next v14 02/12] dt-bindings: dpll: add SiTime SiT95316 clock generator
From: netdev-bot+sashiko
Date: Tue, 20 Oct 2026 03:09
Date: Tue, 20 Oct 2026 03:09
102 lines
11777 bytes
11777 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The shared DPLL pin property `supported-frequencies-hz` now
uses two incompatible cell widths, depending on the device.
--
dt-bindings: dpll: add SiTime SiT95316 clock generator
This adds a devicetree binding for the SiTime SiT95316/SiT95317 clock
generators. They are I2C-controlled DPLL providers with four PLLs, up to
eight inputs and up to twelve outputs. The XO is given either as a clock
or as clock-frequency, and the supplies are named after their pins.
> diff --git a/Documentation/devicetree/bindings/dpll/sitime,sit95316.yaml b/Documentation/devicetree/bindings/dpll/sitime,sit95316.yaml
> new file mode 100644
> index 0000000000000..9a8163d121f24
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dpll/sitime,sit95316.yaml
[ ... ]
> + input-pins {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + /* IN0P and IN0N: pair 0 runs single-ended */
> + pin@0 {
> + reg = <0>;
> + label = "clkin0";
> + connection-type = "ext";
> + supported-frequencies-hz = <10000000>;
[Severity: Medium]
Should this entry, and the other supported-frequencies-hz entries in this
example, use /bits/ 64 like the existing binding for this shared property?
The property comes from dpll-pin.yaml, which gives it no explicit width:
supported-frequencies-hz:
description: List of supported frequencies for this pin, expressed in Hz.
The only other user, microchip,zl30731.yaml, always writes it as 64-bit
cells:
supported-frequencies-hz = /bits/ 64 <10000 10000000>;
Its driver also reads it as u64:
drivers/dpll/zl3073x/prop.c:zl3073x_pin_props_get() {
...
num_freqs = fwnode_property_count_u64(props->fwnode,
"supported-frequencies-hz");
if (num_freqs <= 0) {
num_freqs = 0;
...
}
This example uses 32-bit cells. The SiT9531x driver later in the series
reads u32 on purpose in sit9531x_pin_props_get():
/* A -hz property is 32-bit; no rate of this part needs more. */
num_freqs = fwnode_property_count_u32(props->fwnode, "supported-frequencies-hz");
So the driver in this series and this example agree with each other. The
shared property, though, would now be encoded differently depending on the
device.
Suppose a SiT95316/7 board DT uses the existing /bits/ 64 form, for
example /bits/ 64 <10000000>. Wouldn't sit9531x_pin_props_get() read that
as two u32 values, [0, 10000000]? For an input, curr_freq = freqs[0] would
then be 0, and the wired rate would never reach sitdev->ref[index].freq.
The reverse case is also a problem. A reader that follows the u64
convention, such as zl3073x or a future shared DPLL fwnode helper, would
fail the element count on the 4-byte SiT encoding and silently skip the
property.
It is not clear whether dt_binding_check would reject the 64-bit form
under the maxItems: 1 constraint in input-pins. That depends on how
dtschema decodes -hz properties.
Could the binding and driver use the same 64-bit encoding as
microchip,zl30731? Alternatively, could dpll-pin.yaml define a single
width for this property?
> + };
[ ... ]
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261016005823.13690-1-arouhi%40sitime.com
Technical Details
Message-ID:
<179246577843.3135.4737368277316143256@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349001-linux-kernel-netdev=dewy.ruReferences:
<20261016005823.13690-3-arouhi@sitime.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349001-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v14 02/12] dt-bindings: dpll: add SiTime SiT95316 clock generator Date: Tue, 20 Oct 2026 03:09:38 +0000 Organization: Usenet Network Message-ID: <179246577843.3135.4737368277316143256@kernel.org> References: <20261016005823.13690-3-arouhi@sitime.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3772593"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:afFHd6SViwByCJWdxhSS86tFaD0= sha256:/YkfH+xp60bqh4tXm7VSqR9s9vlzJmL1BdYOt1s1RCg= sha1:amiai8ddK+2xXSr3cnUNKNWLEa8= sha256:So65mDD4JDhZvBHHqafmmIWTvPLSd718s7/gbUVnT+w= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id ED49F110BDA; Tue, 20 Oct 2026 06:14:41 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.728 X-Spam-Status: No, score=-3.728 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mCB_7TpyokTc; Tue, 20 Oct 2026 06:14:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-349001-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id BD12C110BC6; Tue, 20 Oct 2026 06:14:28 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id A37BD2D15F; Tue, 20 Oct 2026 03:10:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792465781; b=q5ODczc/CXm1HqB29LArUk9Lm1cl8A0s5gf/VIwiofABxE7EfFU938VsNupiysOiuXMc xGWFLvW6DjHfUJP68rkbR8cTj6czALCz5pQMqYkEbnl6WcmD/w0RgFXLDV0OjskEBYs74 z1ZZPk+KQU9h6s6dzTMskOf5IAa8k2czU4joqz61rrBKv7rcQiSvBCjGwl3zqVqf7ab5f KGrFFZdAABCrzJ2UvhMEdrUtVoY+U4wJM9XPvUmohXKo0StxTzBxfEOJBCz/qVd58mNzs CAhN30K1tR+QU5004o/7llQ0WwXVUzilATDCp7afZR7sRQW5JeiijSsUnXmdPn2kUgA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792465781; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=Ve17lLZjmHFU7QkEK3uFrRJlrH3bqy8ujTXSTOq1L2E=; b=O53jX8UVdDXHu08+lQldkHiUTk7vr2DaxzW35/jGg50QD7ZN6BLqNighnWeiZ+uxHHly +5oQyQ+sHfwKP7JgpWgFHDwfBZz53ok7zD1YqIQVqI+0FkJBpZswyMATBchuRLJAv2Obo Lob35Vji/lLPgNA4umMy72+sWT7gL0mwe9jAru9fqOhokuKjFGxmB8orBRf5ZxYPbbHV6 IJrnOooDSAYAyNAR2kCMRmNVfCxDIb9NpADIZDCmnW8Yc2Kp+DRJZoiJlNgBRmk1Umv4g QOCF1cJWup7b9RF0iXntPZtd2kTyahGrdcPD5Fa4orfmOAgaBVM00V8DEhdn6nKUoow== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KQAz7e2V; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81BAC60A2636; Tue, 20 Oct 2026 03:09:41 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KQAz7e2V X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792465780; b=h1mCPVOGtH6qFfzqWx3+Knm6zvONUxIztVRn59v3l4UUOMgFnBJfp9zt+kanbOSdFug5 /KwFTbp70NCKLPtxRa/H+Mt4fVwOhJMnM9S4OfpchrKZWURs6WI5PR6X8b0T9gG+ZiAAt c60SSem6dkAujI+4AooDECGjxUhqzf0U68Iv0FTL9yObPR+AaEUQItzj0qqkba5NTbH3b VZ39GC9kOKiqnaB5yVfZAnvjU6Cxinsh7J38uOEIJSHKchtvEciPZzL2xuH5XvC0JTO5+ +AgB5AI5DWaVGxWX2dZaRY3qcAttOZAdWZGbMPZ+aiQwvCNUU5RJ7mVlCAeNeMwDeYQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792465780; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=Ve17lLZjmHFU7QkEK3uFrRJlrH3bqy8ujTXSTOq1L2E=; b=CiRyUDyPUZlzjnSZHFemYrg62IzTUJIJUXQQ5lg3UOKjb2ioF2xTXnr2VuKSUMvGUKM1 yHyI9FsiVJhXRjVXumHXMo5dI9Uw+KLegjynRGlkeCYt77y4qToVE+o0JNE2ox9EK/kHR TViz1E4RgQ4Vf4tvF6TPJ9MVU19sp6btLPagJT4RhNMP81vR1Du6n4PGvhzTbtjmf6IR3 ueePpXUzZlCmIgnzQegZ8i0rccrsuHwbGrSWEmiTg/D3bEy4TGiLmSI9KhMVD3EQmX8kR 0yeH/nvdvzwMFxe3SU+8/qc3nWvJn59PlH2FURGnuB1ejPzLXMdUP26fiaIKLFwy0Bg== X-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=KQAz7e2V; arc=none smtp.remote-ip=100.103.45.18 X-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 6170D606A33B; Tue, 20 Oct 2026 03:09:40 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 011F31F000CB; Tue, 20 Oct 2026 03:09:38 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792465779; bh=Ve17lLZjmHFU7QkEK3uFrRJlrH3bqy8ujTXSTOq1L2E=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=KQAz7e2V3PQA3JBzvBgMs4fjiDS+tXq3Hr4EphjWWNY0HgyBOC9GxT9bI4qW/kLEH PqeNurGjKuY99pNbDjfqPCnsm0yYjCdmZPeoIUL53fieNeRcBng44S9NMfyQwCe3yp JvVVN7TN9zlbL8gxOF0DhnbRb8PBSTytaphtxe0SaBnVooFTSnakbVEpyuBTCS2Czx I8Xhot/eFPARk7MKi/zIYFsf1mv5DI5jfY+t16XI2IXkqOZutNl0fJPFh0l74nROfk fP8Wa5c2qqpEbXwy3r072ZhRwvQkNdt1CTdlZu6W3XTjKrA6mxWHQFtv8FPIxg4/4G mQMpeiV600vRA== X-Cc: jiri@resnulli.us, vadim.fedorenko@linux.dev, arkadiusz.kubalewski@intel.com, ivecera@redhat.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, cjubran@nvidia.com, Oleg.Zadorozhnyi@devoxsoftware.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261016005823.13690-3-arouhi@sitime.com> X-sashiko-severity: Medium X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list