Article View: linux.kernel.netdev
Article #26057Re: [PATCH net-next v17 03/13] dt-bindings: dpll: add SiTime SiT95316 clock generator
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 00:39
Date: Thu, 03 Dec 2026 00:39
121 lines
12452 bytes
12452 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 new SiT95316/SiT95317 binding gives the shared DPLL pin
property `supported-frequencies-hz` a different cell width from the…
--
dt-bindings: dpll: add SiTime SiT95316 clock generator
This adds a devicetree binding for the SiTime SiT95316/SiT95317 I2C clock
generators. They are described as 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 binding names a supply for each power pin.
> diff --git a/Documentation/devicetree/bindings/dpll/sitime,sit95316.yaml b/Documentation/devicetree/bindings/dpll/sitime,sit95316.yaml
> new file mode 100644
> index 0000000000000..0ec98dd59edab
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dpll/sitime,sit95316.yaml
[ ... ]
> + input-pins:
> + type: object
> + patternProperties:
> + "^pin@[0-9a-f]+$":
> + type: object
> + properties:
> + reg:
> + maximum: 7
> +
> + supported-frequencies-hz:
> + maxItems: 1
> + description:
> + The rate wired to the input, in Hz, as a single entry. An
> + input runs at the rate the board feeds it and has no
> + frequency to select, so that entry is what the pin reports
> + as its frequency. The rate is one 32-bit cell, as is each
> + rate an output pin lists.
[Severity: Medium]
Does this give the shared supported-frequencies-hz property a different
cell width from the one the tree already uses?
The property comes from dpll-pin.yaml, which does not fix a width:
Documentation/devicetree/bindings/dpll/dpll-pin.yaml:
supported-frequencies-hz:
description: List of supported frequencies for this pin, expressed in Hz.
The only other DPLL device binding writes it as 64-bit values in every
example:
Documentation/devicetree/bindings/dpll/microchip,zl30731.yaml:
supported-frequencies-hz = /bits/ 64 <10000 10000000>;
Its consumer reads the property 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;
goto skip_fwnode_props;
...
}
This binding says each rate is one 32-bit cell. The example below uses
bare 32-bit cells such as <10000000> and <156250000>.
The SiT9531x driver added later in this series follows this binding. It
reads the property with fwnode_property_count_u32() and
fwnode_property_read_u32_array(). Its comment "A rate written as a 64-bit
cell reads as 0, then the rate" notes the conflict.
Suppose a board author follows the zl30731 convention and writes
/bits/ 64 on a sitime,sit95316 node. The SiT driver would then read
[0, rate] and fail the pin with -EINVAL.
The reverse also breaks. A u64 reader such as zl3073x_pin_props_get()
finds no u64 entries in 32-bit data and silently skips the property.
Since dpll-pin.yaml leaves the width undefined, schema validation would
not catch either encoding. That is especially true for output pins, which
have no maxItems here.
A binding becomes ABI once it is merged. Would it be better to pick one
width for this shared property and state it in dpll-pin.yaml, for example
with a $ref to a uint32-array or uint64-array type? Both device bindings
and both drivers could then follow it.
[ ... ]
> + 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>;
> + };
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201235202.97645-1-arouhi%40sitime.com
Technical Details
Message-ID:
<179625834248.3146.6082340905017013447@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376157-linux-kernel-netdev=dewy.ruReferences:
<20261201235202.97645-4-arouhi@sitime.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376157-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v17 03/13] dt-bindings: dpll: add SiTime SiT95316 clock generator Date: Thu, 03 Dec 2026 00:39:02 +0000 Organization: Usenet Network Message-ID: <179625834248.3146.6082340905017013447@kernel.org> References: <20261201235202.97645-4-arouhi@sitime.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2097318"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:N/LfwUb8h5sI1CMKuwSR5UO4s5Y= sha256:KOiBXPhBxFTU+A1rp2kAUksGMIhVsxsJtw0PHaOyzOk= sha1:rb/Q8v1nMxPy4DyiFOah0CNwiE4= sha256:e6lvS5uZd8tecEqnn3CDbw0ZzLnV5Tj1E4c3ysAQeNA= 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 C252C1177B5; Thu, 3 Dec 2026 03:39:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, 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] 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 tm23cHX9vxuO; Thu, 3 Dec 2026 03:39:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376157-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id EDA7B1177AF; Thu, 3 Dec 2026 03:39:07 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 2C43D27C6F; Thu, 3 Dec 2026 00:39:06 +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=1796258345; b=tTTrpbcT3TnaEaBLgmICcF71fY4S/34sHq+KgU5I/pO0eRcd/0zv94TmrWKvzcxbrfYG zql5/PcIIOnyQcCmPt2gFQF0isAG50pK26BhWvN157dTVfRuYyDdSX5DYdDIQD/XiWRHQ uBUGTEWtZD2czYmAzC+P9pVFy0pAnXUnKeQU6qpr5owzjz98Flz/bOBxbhHGEFO+0XD7c IIoQ6XKz7oRSurdrcXd4g4Xny7SVcx56ozt/2+8GVDADlx1VRTZ6ndgutPL6pZFI5RvvB QdEKsiKdc/Lo/FHAvUk/wxO152iQ/mggzLGqq5kd1iAVljXcLZrYG7rPD72Q4Ay/HgQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796258345; 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=lUBQQXLPv0WhC1rJ9D48wblMvqg6io5K7lSTctblt1E=; b=cy17PsQ8wsLt8q4cmRMNZKkRs39iNT35/871IHq6TPPNHpEkq6ahIR2Tbsl6t963EQpn Aw9FwcBH3FmrGXeHGAOuEq3K3kz7VSXRby01i1nkw8g8qWDH2TD/mL0NVA35GQoiLbphg NtaMMxuM3jNP87l+z5dsSErDb53ZY4QiI3keIITY26rB37rZ1FZE1tDWMhF9UeNZLIIYm yYW571fTkR9E0VLQOhnnwGPXiyHAQtJo2Rfz5vYHzM3+Gj/unpUJOFQE3qt9Fo6Vdu8OU 7sVQA7hMZEOWc+5p/ULYnfzFvO8Km8OWln/+kn66z9AgjJ3nITCQU0ZAqxez/jlLG/w== 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="VnjZ0/tR"; 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 158BA606A33C; Thu, 3 Dec 2026 00:39:05 +0000 (UTC) X-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=VnjZ0/tR 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=1796258344; b=LsAW4DGMl9am56i7hnFSY9LUDHRRNpBvErKaAJLPsmEk0AkWTdWo4yyjAQNgWFjKCfrK lY2lCfp0uy2dpRTRHWn9rcRsJziYGjEViaPimmIMUFTh+VCC5/RvzTjaFoxn2XS7D7wDT rnr6dVpmbpPvlgXHAErf8lGpPXjJMdm5sNij/xpTFYy/zsow+tMQyUO6RXoFRxow44Id8 +X47ot/oif0YkkX48K6iRr5d3qLBO+7KIPDOpEdZe13AW4reKOqIHOzB2ax49P/gPC0Fq A2+f5eyriMvIUM4a/EJnNh8Dgec4nIyVAhs6/ZWNUGgmofh1NO1DZnu9KjMOUwT+azw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796258344; 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=lUBQQXLPv0WhC1rJ9D48wblMvqg6io5K7lSTctblt1E=; b=g2XcZ8Nhtm2PXOYdkPm1NTOGwHy1MtBmq3FpFelNBf3427Y5vz/bZl4GbPt3xu+SLu93 I15n7/hDnBBu0PBfLtyCj5fKbgR5VGvioae0x3/M8nw2gmpUSnHq/djXAsmAGr4jV6xVv Q8Fjhk2zfmN/4VUBHbaN9Tcoy+PP6+kYzPn/IqFyExOHQE64I2/soQxmQED6eph4Cz3Va 1+CNNLarTi243sXiRCtvjpcZjBIo5CURCM1hLCB2X8o/bYNVWEHiXHQWYi5HX+YvMG3Ko 8Pt4h9Uv7cy/fkyCUZdURtAKjG5y0pcQzEHMyt9GPTcIakSW/9dpH5C6SjMIa8zL6Tg== 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="VnjZ0/tR"; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3157C606A322; Thu, 3 Dec 2026 00:39:03 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id F272F1F000C1; Thu, 3 Dec 2026 00:39:02 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796258343; bh=lUBQQXLPv0WhC1rJ9D48wblMvqg6io5K7lSTctblt1E=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=VnjZ0/tRyFMfcydWnF+hbRjYAyvRDkuTIomgTXtrlKTsrAfCvnyAH6ziOGK86N/fH Fe8UMTl7KGUhVHp+tX9fakmczXI2o35i8YLqAYoPng6xABBD+AxByWSafOwM+5xFAe fe907ntHKNT1B3bO6e8O6rY/YfR3PpCbZbYuhbBEd/R0nxlHQUCMxEfXnv2+PLioSU /w6hZuoauTN3ZVfsrn8CrIJ5/LFGYMZtvoCf/+OfRhNqhSPyhxaavCusIxwQXI+nys K4zUgzoXlPLcQ7eRc/AeL8XZRLEKg4lo9W47YJxGUJaLmK91hIGvMi1JKtAJpG3gsw pwVgQxF90ZsLw== X-Cc: jiri@resnulli.us, ivecera@redhat.com, vadim.fedorenko@linux.dev, arkadiusz.kubalewski@intel.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, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261201235202.97645-4-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