From: Coia Prant <coiaprant@gmail.com>
To: heiko@sntech.de
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org,
Coia Prant <coiaprant@gmail.com>
Subject: [PATCH v13 1/3] arm64: dts: rockchip: rk3568: add XPCS node
Date: Tue, 24 Nov 2026 00:57:01 +0800 [thread overview]
Message-ID: <20261123165703.667564-2-coiaprant@gmail.com> (raw)
In-Reply-To: <20261123165703.667564-1-coiaprant@gmail.com>
The RK3568 SoC integrates a Synopsys DesignWare XPCS that provides the
Physical Coding Sublayer for 1000BASE-X, SGMII, and QSGMII interfaces
via its four MII ports. Add the XPCS device node to the SoC device tree.
The XPCS device is accessed via the APB3 bus at 0xfda00000 and requires
the CSR clock (PCLK_XPCS) for register access and the EEE clock
(CLK_XPCS_EEE) for Energy Efficient Ethernet operation. The PD_PIPE
power domain must be enabled before any register access.
The XPCS node is disabled by default and must be enabled at the board
level when 1000BASE-X, SGMII, or QSGMII is in use.
The XPCS node requires a reference to the appropriate Naneng Combo PHY
through the phys property. The SoC dtsi intentionally omits this
property, as the SerDes connection is a board-level design choice and
different boards route XPCS to different Combo PHY instances. Although
dtbs_check only validates required properties for enabled nodes, boards
that enable XPCS must provide the corresponding phys reference.
Signed-off-by: Coia Prant <coiaprant@gmail.com>
---
arch/arm64/boot/dts/rockchip/rk3568.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
index 2f42bf26fd9b..c8f846e5ad9b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
@@ -110,6 +110,15 @@ sata0: sata@fc000000 {
status = "disabled";
};
+ xpcs: ethernet-pcs@fda00000 {
+ compatible = "rockchip,rk3568-xpcs";
+ 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";
+ };
+
pipe_phy_grf0: syscon@fdc70000 {
compatible = "rockchip,rk3568-pipe-phy-grf", "syscon";
reg = <0x0 0xfdc70000 0x0 0x1000>;
--
2.47.3
next prev parent reply other threads:[~2026-11-23 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 16:57 [PATCH v13 0/3] arm64: dts: rockchip: add RK3568 XPCS nodes and enable SGMII on Photonicat Coia Prant
2026-11-23 16:57 ` Coia Prant [this message]
2026-11-23 16:57 ` [PATCH v13 2/3] arm64: dts: rockchip: rk3568-photonicat: add RGMII PHY LEDs Coia Prant
2026-11-23 16:57 ` [PATCH v13 3/3] arm64: dts: rockchip: rk3568-photonicat: enable SGMII LAN port 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=20261123165703.667564-2-coiaprant@gmail.com \
--to=coiaprant@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.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