From: sashiko-bot@kernel.org
To: "Ali Rouhi" <rouhi.ali@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 net-next 2/3] dt-bindings: dpll: add SiTime SiT9531x clock generator
Date: Sat, 30 May 2026 00:45:19 +0000 [thread overview]
Message-ID: <20260530004520.370561F00899@smtp.kernel.org> (raw)
In-Reply-To: <20260520191943.73938-3-arouhi@sitime.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The YAML binding fails to enforce the hardware limits (number of input/output pins and PLLs) between variants claimed in the commit message.
--
commit de5c539cf5b5d391a13e0203a532efbfc0d6f0d4
Author: Ali Rouhi <rouhi.ali@gmail.com>
dt-bindings: dpll: add SiTime SiT9531x clock generator
Add device tree binding documentation for the SiTime SiT95316
and SiT95317 DPLL clock generators.
> diff --git a/Documentation/devicetree/bindings/dpll/sitime,sit9531x.yaml b/Documentation/devicetree/bindings/dpll/sitime,sit9531x.yaml
> new file mode 100644
> index 0000000000000..ac88f2f0b2ae7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dpll/sitime,sit9531x.yaml
[ ... ]
> +description: |
> + SiTime SiT95316 and SiT95317 are I2C-controlled programmable clock
> + generators with integrated DPLL for synchronization applications. Both
> + variants contain four PLLs with automatic/manual reference selection,
> + DCO frequency adjustment, and phase offset measurement via an on-chip
> + TDC (Time-to-Digital Converter).
> +
> + SiT95317 provides 4 inputs and 8 outputs; SiT95316 provides
> + 4 inputs and 12 outputs.
> +
> +properties:
> + compatible:
> + enum:
> + - sitime,sit95316
> + - sitime,sit95317
[Severity: Low]
Does this binding need to enforce the hardware limits between variants that
are claimed in the description?
The description explicitly states that the SiT95317 provides 8 outputs, the
SiT95316 provides 12 outputs, and both have 4 PLLs. However, the YAML schema
does not constrain the dpll-types array to maxItems: 4, nor does it include
conditional if-then blocks to limit the logical reg property under
output-pins/pin@X based on the specific compatible string (e.g., maximum: 7
for sitime,sit95317).
Consequently, the schema will silently pass validation for device trees that
declare structurally impossible configurations (e.g., 5 PLLs or 12 outputs
for the 95317 variant). While the driver might handle these edge cases
internally, the missing constraints represent a gap in the schema validation.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260520191943.73938-1-arouhi@sitime.com?part=2
next prev parent reply other threads:[~2026-05-30 0:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 19:19 [PATCH v2 net-next 0/3] dpll: add SiTime SiT9531x DPLL clock driver Ali Rouhi
2026-05-20 19:19 ` [PATCH v2 net-next 1/3] dt-bindings: vendor-prefixes: add SiTime Corporation Ali Rouhi
2026-05-21 7:23 ` Krzysztof Kozlowski
2026-05-21 10:18 ` Krzysztof Kozlowski
2026-05-21 20:40 ` Ali Rouhi
2026-05-21 21:12 ` Krzysztof Kozlowski
2026-05-21 23:32 ` Ali Rouhi
2026-05-20 19:19 ` [PATCH v2 net-next 2/3] dt-bindings: dpll: add SiTime SiT9531x clock generator Ali Rouhi
2026-05-21 7:26 ` Krzysztof Kozlowski
2026-05-21 20:38 ` Ali Rouhi
2026-05-21 21:12 ` Krzysztof Kozlowski
2026-05-30 0:45 ` sashiko-bot [this message]
2026-05-20 19:19 ` [PATCH v2 net-next 3/3] dpll: add SiTime SiT9531x DPLL clock driver Ali Rouhi
2026-05-30 0:45 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260530004520.370561F00899@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=rouhi.ali@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox