From: Gokul Praveen <g-praveen@ti.com>
To: <conor+dt@kernel.org>, <robh@kernel.org>, <devicetree@vger.kernel.org>
Cc: Gokul Praveen <g-praveen@ti.com>
Subject: Re: [PATCH v2 1/3] arm64: dts: ti: Add PLL1 refclk to J784S4 SoC SERDES node
Date: Mon, 29 Jun 2026 16:17:17 +0530 [thread overview]
Message-ID: <93458e95-c12b-4b88-b3be-4d38105c98df@ti.com> (raw)
In-Reply-To: <20260629103110.B86F31F00A3A@smtp.kernel.org>
Hi ,
On 29/06/26 16:01, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] Device Tree Binding Schema validation failure due to missing schema item for the third clock name.
> --
>
> commit c724dfc4b95310a6b37f143a703b52391002ee90
> Author: Gokul Praveen <g-praveen@ti.com>
>
> arm64: dts: ti: Add PLL1 refclk to J784S4 SoC SERDES node
>
> This commit adds the PLL1 refclk to the clocks and clock-names parameters
> of the SERDES2 node. It updates both the devicetree binding schema and the
> k3-j784s4-main.dtsi file to reflect the new clock.
>
>> diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
>> --- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
>> +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
> [ ... ]
>> @@ -47,7 +47,7 @@ properties:
>> minItems: 1
>> items:
>> - const: refclk
>> - - enum: [ pll1_refclk, phy_en_refclk ]
>> + - enum: [refclk, pll1_refclk, phy_en_refclk ]
> [Severity: Low]
> Does this schema correctly allow a third clock name?
>
> The items list here only defines two elements (the const and the enum). Under
> dt-schema rules, any device tree node specifying a third element will fail
> validation because there is no corresponding schema item defined for it in the
> items array.
>
Yes, because the description of the "clocks" paremeter in the YAML
mentions the following:
"PHY input reference clocks - refclk (for PLL0) & pll1_refclk (for PLL1).
pll1_refclk is optional and used for multi-protocol
configurations requiring
separate reference clock for each protocol.
Same refclk is used for both PLL0 and PLL1 if no separate
pll1_refclk is used.
Optional parent clock (phy_en_refclk) to enable a reference clock
output feature
on some platforms to output either derived or received reference
clock.
"
which means that a maximum of 3 clocks can be used (refclk for PLL0,
pll1_refclk for PLL1, phy_en_refclk for PHY_EN_REFCLK)
>> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
>> --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
>> @@ -122,8 +122,9 @@ serdes2: serdes@5020000 {
>> resets = <&serdes_wiz2 0>;
>> reset-names = "torrent_reset";
>> clocks = <&serdes_wiz2 TI_WIZ_PLL0_REFCLK>,
>> + <&serdes_wiz2 TI_WIZ_PLL1_REFCLK>,
>> <&serdes_wiz2 TI_WIZ_PHY_EN_REFCLK>;
>> - clock-names = "refclk", "phy_en_refclk";
>> + clock-names = "refclk","pll1_refclk", "phy_en_refclk";
> [Severity: Low]
> Will this trigger a dtbs_check warning?
>
> Since the device tree node is updated to supply 3 clock-names, but the
> YAML schema items list above is still implicitly limited to 2 definitions,
> this will likely cause a build-time validation failure.
>
> Should a third item be added to the YAML items array to match this 3-clock
> configuration?
The YAML has already been updated in this patch with a 3-clock
configuration.
>
next prev parent reply other threads:[~2026-06-29 10:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 10:23 [PATCH v2 0/3] Add support for dual port USXGMII+SGMII Gokul Praveen
2026-06-29 10:23 ` [PATCH v2 1/3] arm64: dts: ti: Add PLL1 refclk to J784S4 SoC SERDES node Gokul Praveen
2026-06-29 10:31 ` sashiko-bot
2026-06-29 10:47 ` Gokul Praveen [this message]
2026-06-30 7:13 ` Krzysztof Kozlowski
2026-06-30 12:59 ` Gokul Praveen
2026-06-29 10:23 ` [PATCH v2 2/3] net: ethernet: ti: am65-cpsw: Fix MAC configuration for SGMII mode Gokul Praveen
2026-06-29 12:37 ` sashiko-bot
2026-06-29 22:12 ` Jakub Kicinski
2026-06-30 12:55 ` Gokul Praveen
2026-06-29 10:23 ` [PATCH v2 3/3] arm64: dts: ti: k3-j784s4: Add overlay for dual port USXGMII+SGMII mode Gokul Praveen
2026-06-29 10:34 ` sashiko-bot
2026-06-29 10:58 ` Gokul Praveen
2026-06-29 10:46 ` [PATCH v2 0/3] Add support for dual port USXGMII+SGMII Siddharth Vadapalli
2026-06-29 11:10 ` Gokul Praveen
2026-06-29 11:20 ` Siddharth Vadapalli
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=93458e95-c12b-4b88-b3be-4d38105c98df@ti.com \
--to=g-praveen@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
/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