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=1796258344; b=LsAW4DGMl9am56i7hnFSY9LUDHRRNpBvErKaAJLPsmEk0AkWTdWo4yyjAQNgWFjKCfrK lY2lCfp0uy2dpRTRHWn9rcRsJziYGjEViaPimmIMUFTh+VCC5/RvzTjaFoxn2XS7D7wDT rnr6dVpmbpPvlgXHAErf8lGpPXjJMdm5sNij/xpTFYy/zsow+tMQyUO6RXoFRxow44Id8 +X47ot/oif0YkkX48K6iRr5d3qLBO+7KIPDOpEdZe13AW4reKOqIHOzB2ax49P/gPC0Fq A2+f5eyriMvIUM4a/EJnNh8Dgec4nIyVAhs6/ZWNUGgmofh1NO1DZnu9KjMOUwT+azw== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F272F1F000C1; Thu, 3 Dec 2026 00:39:02 +0000 (UTC) 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== Subject: Re: [PATCH net-next v17 03/13] dt-bindings: dpll: add SiTime SiT95316 clock generator From: netdev-bot+sashiko@kernel.org To: arouhi@sitime.com 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 Date: Thu, 03 Dec 2026 00:39:02 +0000 Message-ID: <179625834248.3146.6082340905017013447@kernel.org> In-Reply-To: <20261201235202.97645-4-arouhi@sitime.com> References: <20261201235202.97645-4-arouhi@sitime.com> X-sashiko-severity: Medium Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 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