All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Coia Prant" <coiaprant@gmail.com>
Cc: neil.armstrong@linaro.org, linux-phy@lists.infradead.org,
	conor+dt@kernel.org, vkoul@kernel.org, robh@kernel.org,
	olteanv@gmail.com, devicetree@vger.kernel.org,
	wsa+renesas@sang-engineering.com
Subject: Re: [PATCH net-next v8 05/11] arm64: dts: rockchip: rk3568: add XPCS and fixed-clock nodes
Date: Sun, 20 Sep 2026 12:53:18 +0000	[thread overview]
Message-ID: <20260920125318.9E5A31F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260919125119.2107089-6-coiaprant@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] devicetree: fixed-clock anti-pattern for internal XPCS clocks
- [Low] devicetree: missing required phys property in xpcs node
--

commit 752959013e963f31a1ffc2b59a8a556bc481a7c3
Author: Coia Prant <coiaprant@gmail.com>
arm64: dts: rockchip: rk3568: add XPCS and fixed-clock nodes

This commit adds the XPCS device node and associated fixed-clock nodes to
the RK3568 SoC device tree to support 1000BASE-X, SGMII, and QSGMII
interfaces. The XPCS node requires board-level activation and PHY
assignments, while the fixed-clock nodes are introduced to provide a
static 125 MHz reference.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
> --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
> @@ -110,6 +110,51 @@ sata0: sata@fc000000 {
>  		status = "disabled";
>  	};
>  
> +	xpcs: ethernet-pcs@fda00000 {
> +		compatible = "rockchip,rk3568-xpcs";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		reg = <0x0 0xfda00000 0x0 0x200000>;
> +		clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>;
> +		clock-names = "csr", "eee";
> +		power-domains = <&power RK3568_PD_PIPE>;
> +		status = "disabled";

[Severity: Low]
The commit message states that "dtbs_check only validates required properties
for enabled nodes, so the SoC dtsi does not provide phys/phy-names". Is this
assumption accurate?

dt-schema evaluates all nodes against the required list regardless of the
status property, unless the schema explicitly conditions the requirement. Will
this omission cause make dtbs_check to throw validation errors for all RK3568
boards that leave the XPCS node disabled?

[ ... ]

> +	clk_gmac0_xpcs_mii: clock-xpcs-gmac0 {
> +		compatible = "fixed-clock";
> +		clock-frequency = <125000000>;
> +		clock-output-names = "clk_gmac0_xpcs_mii";
> +		#clock-cells = <0>;
> +	};

[Severity: Low]
Does using a fixed-clock here accurately model the hardware?

Since the 125 MHz reference clock is generated internally by the XPCS or
Combo PHY, representing it as a fixed root oscillator appears to violate
devicetree hardware modeling principles.

Should the IP block that actually generates this clock act as the clock
provider, instead of injecting a dummy fixed-clock node into the device tree?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260919125119.2107089-1-coiaprant@gmail.com?part=5

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Coia Prant" <coiaprant@gmail.com>
Cc: neil.armstrong@linaro.org, linux-phy@lists.infradead.org,
	conor+dt@kernel.org, vkoul@kernel.org, robh@kernel.org,
	olteanv@gmail.com, devicetree@vger.kernel.org,
	wsa+renesas@sang-engineering.com
Subject: Re: [PATCH net-next v8 05/11] arm64: dts: rockchip: rk3568: add XPCS and fixed-clock nodes
Date: Sun, 20 Sep 2026 12:53:18 +0000	[thread overview]
Message-ID: <20260920125318.9E5A31F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260919125119.2107089-6-coiaprant@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] devicetree: fixed-clock anti-pattern for internal XPCS clocks
- [Low] devicetree: missing required phys property in xpcs node
--

commit 752959013e963f31a1ffc2b59a8a556bc481a7c3
Author: Coia Prant <coiaprant@gmail.com>
arm64: dts: rockchip: rk3568: add XPCS and fixed-clock nodes

This commit adds the XPCS device node and associated fixed-clock nodes to
the RK3568 SoC device tree to support 1000BASE-X, SGMII, and QSGMII
interfaces. The XPCS node requires board-level activation and PHY
assignments, while the fixed-clock nodes are introduced to provide a
static 125 MHz reference.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
> --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
> @@ -110,6 +110,51 @@ sata0: sata@fc000000 {
>  		status = "disabled";
>  	};
>  
> +	xpcs: ethernet-pcs@fda00000 {
> +		compatible = "rockchip,rk3568-xpcs";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		reg = <0x0 0xfda00000 0x0 0x200000>;
> +		clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>;
> +		clock-names = "csr", "eee";
> +		power-domains = <&power RK3568_PD_PIPE>;
> +		status = "disabled";

[Severity: Low]
The commit message states that "dtbs_check only validates required properties
for enabled nodes, so the SoC dtsi does not provide phys/phy-names". Is this
assumption accurate?

dt-schema evaluates all nodes against the required list regardless of the
status property, unless the schema explicitly conditions the requirement. Will
this omission cause make dtbs_check to throw validation errors for all RK3568
boards that leave the XPCS node disabled?

[ ... ]

> +	clk_gmac0_xpcs_mii: clock-xpcs-gmac0 {
> +		compatible = "fixed-clock";
> +		clock-frequency = <125000000>;
> +		clock-output-names = "clk_gmac0_xpcs_mii";
> +		#clock-cells = <0>;
> +	};

[Severity: Low]
Does using a fixed-clock here accurately model the hardware?

Since the 125 MHz reference clock is generated internally by the XPCS or
Combo PHY, representing it as a fixed root oscillator appears to violate
devicetree hardware modeling principles.

Should the IP block that actually generates this clock act as the clock
provider, instead of injecting a dummy fixed-clock node into the device tree?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260919125119.2107089-1-coiaprant@gmail.com?part=5

  reply	other threads:[~2026-09-20 12:53 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19 12:51 [PATCH net-next v8 00/11] net: pcs: add basic support for RK3568 XPCS Coia Prant
2026-09-19 12:51 ` Coia Prant
2026-09-19 12:51 ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 01/11] net: stmmac: move XPCS lifetime management to platform drivers Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 02/11] dt-bindings: phy: rockchip: naneng-combphy: add rockchip,sgmii-mac-sel property Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 03/11] phy: rockchip: naneng-combphy: add SGMII MAC selection for RK3568 Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 04/11] dt-bindings: net: pcs: add rockchip,rk3568-xpcs support Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 05/11] arm64: dts: rockchip: rk3568: add XPCS and fixed-clock nodes Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-20 12:53   ` sashiko-bot [this message]
2026-09-20 12:53     ` sashiko-bot
2026-09-19 12:51 ` [PATCH net-next v8 06/11] net: pcs: xpcs: add ANRESTART support for SGMII link recovery Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 07/11] net: pcs: xpcs: add Rockchip RK3568 platform glue driver Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-20 12:53   ` sashiko-bot
2026-09-20 12:53     ` sashiko-bot
2026-09-19 12:51 ` [PATCH net-next v8 08/11] dt-bindings: net: rockchip-dwmac: document pcs-handle Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 09/11] net: stmmac: dwmac-rk: add SGMII support for RK3568 Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 15:27   ` Maxime Chevallier
2026-09-19 15:27     ` Maxime Chevallier
2026-09-19 15:27     ` Maxime Chevallier
2026-09-19 12:51 ` [PATCH net-next v8 10/11] arm64: dts: rockchip: rk3568-photonicat: enable SGMII LAN port Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51 ` [PATCH net-next v8 11/11] MAINTAINERS: add entry for Rockchip XPCS driver Coia Prant
2026-09-19 12:51   ` Coia Prant
2026-09-19 12:51   ` Coia Prant

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=20260920125318.9E5A31F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=coiaprant@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.