From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f8.google.com (mail-pj2-f8.google.com [74.125.227.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7699C3B7B7B for ; Sun, 13 Sep 2026 19:00:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789326014; cv=none; b=cgv44X9nJ/AixG/LY523ZP90eWAmZcd7GwInOmGv9GA+Y4lFnbnviadkWYrA86KScaVMkm8Z+OIhdq8S2sLNyW6CXkNOfEklEt/OwzN3Q82oFCbIEw2Q7mPOwlFOdLNQC4luM9DDiPmYfZOHQSpe04nr2wc6V9tZJvDX0iQWd8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789326014; c=relaxed/simple; bh=IdZSPXcFF+gTdOktfdGsPEKUw6gn4MOIdk0sQuimzBk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vq+FEfwHgMRwC0xwOlKlPvF7+TdpWc9s5QO7YolTXNSdimp0WIbCxumkm2kOV+PvLtXNDAhWPFJ0/ibSYvUyG4WlcGwuitfA2BVNg8b28ofAeOQjZRshEIyXT2a6IHDUXyI/bJVPi6zus/9LlsNL9yRkXtp0xi1DNBHEZkDq51I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Mq1Qp3Di; arc=none smtp.client-ip=74.125.227.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mq1Qp3Di" Received: by mail-pj2-f8.google.com with SMTP id d9443c01a7336-2d8fcda61c8so11806745ad.1 for ; Sun, 13 Sep 2026 12:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789326012; x=1789930812; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=Mq1Qp3DiD+gD5Ph4B5H1lbME3kUKAdyzWjCUk1zl1oQmvhY0tfPvLyf6yKbesvydMc ckDgGUSS/oZQVN7dQrm8QFhpyvcbRAzQi7b46SNuiNRGJDlNzQTOzuK7WpkzVkNZX6To g4w47y5Aa+cvrsdL+ROBjoXCTvzzBk4mqFyEJeD04CGHs8wifyD2C+Axn+WcHrAacNen CYJVWp9Juh8hjciMh55ves9hinmXyb1hIcJ9rH+22K7XEYg8R9nVX2v/Uu5rl0NHzA4M SUQq8kJqUbHbWNgXRRJzrQFoPau+OYTHXPUOb4jPIVIXJunsGQC5KY0MDKR6gmibEON0 qStA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789326012; x=1789930812; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=ob+I9kH0I+91ja6aFG7wYUucvs8yaM7d7ZdRe7qWS3f54mIpM2gNxiAJqMJ33UwLq2 BEHDmAAboBIgVhD0/WxJBetI+1GGEixnYIh03M8yeLjtGgMQguI9Pd7/VQWQoS8EPLUw bRRuy5Z5dp5Th1O+3PCQ/mKNdPEKrAHDy4yDbqmWmbWSrXzIbwlVY368SHm6GiqNHeDZ iqIdbTJ7nKQ4Gwxnmv93G5EmB1jV/iKXi4FXbLOSteTfryS2aZf+owKA3vmaGUnEovyk VUYbZt/CDx/705Us+7bKCjkeGO8eM8ddFTipBptubHyz5Na2rkspyMkY5hzrDgzM4B8A wqxQ== X-Forwarded-Encrypted: i=1; AKwUvBxcxaAjF8I0FhrnTx0AusvySMNiRgIlLhSAG9pGVDe1TBuqY2/jX9wmz1EMFI+15s3x1EeTz28=@vger.kernel.org X-Gm-Message-State: AFuF++kImsg3wo+bfJNZVrPAkQrBomAoXei4O9l6TsGLev5yFZd07Gqy fa/3QSMaJxIzsUllkZTBxSPYnQExegmniaYO1usRVxCp3qDM3GkfN8x1 X-Gm-Gg: AYBFou3/BsvKvgjII3u2mrQ2xJJ08Snez20+mDPKHwYT2N+ZuIgkAxk6SL+EzVceQPi azNecY9zupgXwJ3r0SGWv8SaPZKo4gAexXARvySYClHQEmsKXytmQRxsXde8e2JHdJCdGAakiyf bk2YxpjIAHM8RzrytND+2gZvj+5WxdXkrDyKWBhs6HaF1/LfHHhKYnAfL9rfDrjQLEWYevDs0K1 A+I+UAQLm9ZJb1UF7bHJfX4y+Kd0Cu4sLTPelO+vVoZAR4gKk5UOKXFhmhugQ8iEuhM9Wlk0+b9 QKsWc0BUhewZwewirx9yvQZztF6jBkEDQziV8GeC0Vfd8PhR7ZXa9SAZEfgAA1aIjLofDeYA6Q5 ysHYFDm5gHnbviRDF2dHew03vA4+zM0OiD+zTkhvKX8SfEMbDsB912nC0kPBxrDpSCLi1gMsy5B HCFZ2kUVGecRpAdHjQafemHfo/XuRHjFG4ILrTbA5ASo7NsNnd0NmjLKsshfKMDIuDvg/Pldk= X-Received: by 2002:a17:903:13c8:b0:2db:3b35:1ac6 with SMTP id d9443c01a7336-2dd4bc32ee4mr166613045ad.5.1789326011475; Sun, 13 Sep 2026 12:00:11 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2dd2cca6b7bsm36808655ad.3.2026.09.13.12.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 12:00:09 -0700 (PDT) From: Coia Prant To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Vinod Koul , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue , Lad Prabhakar , Romain Gantois , Heiner Kallweit , Coia Prant Cc: Neil Armstrong , Russell King , Shawn Lin , David Heidelberg , netdev@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org Subject: [PATCH net-next v5 04/11] dt-bindings: net: pcs: add rockchip,rk3568-xpcs support Date: Mon, 14 Sep 2026 02:58:39 +0800 Message-ID: <20260913185849.907479-5-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913185849.907479-1-coiaprant@gmail.com> References: <20260913185849.907479-1-coiaprant@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add device tree binding documentation for the Synopsys DesignWare XPCS integrated on the Rockchip RK3568 SoC. The XPCS is accessed over the APB3 bus and internally connected to a Naneng Combo SerDes PHY. It supports 1000BASE-X, SGMII, and QSGMII modes, with four MII ports. Signed-off-by: Coia Prant --- .../net/pcs/rockchip,rk3568-xpcs.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml diff --git a/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml new file mode 100644 index 0000000000000..703fcff0e3f70 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pcs/rockchip,rk3568-xpcs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3568 Synopsys DesignWare Ethernet PCS + +maintainers: + - Coia Prant + +description: | + Rockchip RK3568 SoC integrates a Synopsys DesignWare Ethernet Physical + Coding Sublayer (XPCS). + The PCS provides an interface between the Media Access Control (MAC) + and the Physical Medium Attachment (PMA) sublayer through a Media + Independent Interface (GMII). + + The XPCS is accessed over the APB3 bus and internally connected to a + Naneng Combo SerDes PHY. + It supports 1000BASE-X, SGMII and QSGMII modes. + + The block contains four MII ports that can be individually enabled and + routed to one of the Ethernet GMAC controllers via the pcs-handle + property in the MAC device tree node. + +properties: + compatible: + const: rockchip,rk3568-xpcs + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + clocks: + items: + - description: APB3 bus interface clock (clk_csr_i), required for register access + - description: EEE clock (clk_eee_i), required for Energy Efficient Ethernet operation + + clock-names: + items: + - const: csr + - const: eee + + phys: + maxItems: 1 + + phy-names: + const: serdes + + power-domains: + maxItems: 1 + +patternProperties: + "^ethernet-pcs-mii@[0-3]$": + type: object + description: + One of the four MII ports of the XPCS. The port is linked to an + Ethernet MAC controller via the pcs-handle property in the MAC's + device tree node. + + properties: + reg: + description: MII port number. + enum: [0, 1, 2, 3] + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - clocks + - clock-names + - phys + - phy-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + ethernet-pcs@fda00000 { + compatible = "rockchip,rk3568-xpcs"; + reg = <0xfda00000 0x200000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>; + clock-names = "csr", "eee"; + phys = <&combphy2 PHY_TYPE_SGMII>; + phy-names = "serdes"; + power-domains = <&power RK3568_PD_PIPE>; + + ethernet-pcs-mii@0 { + reg = <0>; + }; + }; -- 2.47.3 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9090C88E5C for ; Sun, 13 Sep 2026 19:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cdcmlgmLZ3SpcuqVLRvTF+Oc+zvoWy4qGnthsPC86EQ=; b=MDk18EP4vej2N3 wPYCjdnN8EwwYzjDgPzoyW3JMp3qJ1vCyz+TERnia6cH6wVnqvGvJJiIP3WpyT+NQ1wPPUFSdCRl5 3MYIUUhf5WvUYIm2J/sgmRG9RLr9jRppDdkQeLfV93dx/gE2O4bfvvF/qmrFuJmkSjfGq9/kbTrsx BPgGETil0XECqBc6AQih2TUvkqo5W4doebB0AL8IsCdscjf51sChgJcKr32BjliKYnM5cKJxuXHjC aD51silJvFxPQkWsR0g4Dr8zB6iA9QkRvia5DW6LPaVlf+zN/ySbXWnOi5Ts+XPD46flbx1mNzVtr UmnS2L593I5dsixzLA4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5pR3-00000001x2D-1o5P; Sun, 13 Sep 2026 19:00:17 +0000 Received: from mail-pj2-x07.google.com ([2607:f8b0:4864:39::7]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5pQy-00000001ww1-2WGd for linux-phy@lists.infradead.org; Sun, 13 Sep 2026 19:00:15 +0000 Received: by mail-pj2-x07.google.com with SMTP id d9443c01a7336-2d903e972efso12001695ad.0 for ; Sun, 13 Sep 2026 12:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789326012; x=1789930812; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=QXrChBiGlqKEAAWV2vEOPDKUdaaJVAa8nIIlqRM/LRoZGehi80jDznMlYk4xbX9YHp 4o6tXvOJhbZksWPZDrNXqQWBxR0P8/iWv9/VNJRzl/BANmcZGIm44ErreQhbbukdHi3d v0Erj+51PIuxHmSzMcE8ZLIQRiz/+N9US8ibVUjw7AqCQWLuJiCCeOqPkNHTrwkV6zHB cfbHafjDNIsZE0Yb3Dyvj5EkV8QgUnYrEgD0MaX20kmebuUDtpgEVdIMzD49w5IKeWQR OUp8inOHxX48mTrJc4mM5gZuKKdACEoihJTLgYa41YOt83z0htJFQTECACutGlhSII76 MCtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789326012; x=1789930812; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=bwSCH0G0m1ouad61mG5FTSd4NJ8x0Mcrd4oBdcWIN/g3j0XxN5+5fpnw1Brm8vYgc/ D99TLFJuWSOmtXt/w1K/lBhCEWagTNp2zt8m9SbhcwquO23B1S1e+lcx5cev8LNt30zp FTv99HXTFeWuUR4wkq9sLemI4pPLkR2q6xqdjoiZuzZ/XjbVcKihO2BT293SkBbxZATS nKcGMmb+6mLpsq757+uVAGo1qiLUww2iXL6GI/xynJPeUv406gbwkARBqFowNLyIzVUQ /yNQGYW4f10lUmo9KLQD9cZYy6mQ8AMbG11zd054rZGY6j/ff93GqK0bNUiTunXQhSvS b43Q== X-Forwarded-Encrypted: i=1; AKwUvBx9tEHyCZnX256eTuZ2z0SBcvCrE3lxT/qDcuOvKraBRi51PWVDgF0u733C/Cp1N5Zjr9zDWnFgZDs=@lists.infradead.org X-Gm-Message-State: AFuF++l6G/H8XXP+PdzznFIfEPwcT6RGI/VS7b2r0ekuKvqJ+ewB1fa3 3WDcJTWcJbGisXablOMOHizabwyOkwBzle68vfMARQBZ2Z3jap/h5nHF X-Gm-Gg: AYBFou1C3Fd6kRnCMiObto/cQFYj6DxKeSnaEZ3OEfIBMtM2NECc/MspkOtCHrWfNVA OdkmwSlPLoSa1kKj7qYDLwdyhFVYUesYAuCaUoKqLH5frm5usMZKpENKH8nSx54lst3FkEUwv2u yF/GQU/uJUahMDGXsuRe7dHy9FXY/HhEW/q5fbPWeDi3X7ZU2WJwlmb+GPY4km06qsw7iBqSWxG EAHZAKU4/jdDpc8cxfYm2U4I5QAVIhYuF9ul80frssAu22kSmcZab8Jm0bJjVn5RLs16r1smGEa Qo3OZhlWmuj1Hew5qnq4y5ciHL7V6xu+bJzvuQJEI2grA/1ZqziuOzlLzA33KrQTp2zQXfIbW9p YvNoKiPDFNGMCTpgyU+p2Md71qYOfWRHL+9swzSuZR1Tbox8Ga1L86+cnSqIBvnfHxWIIEXcC0G wjYluiaDoIBD3aEFslpDda/3Ctr4Zb8p9xpM/zeCRxkKCqIeoZwdvkRZ986zwZZB0TjBonakE= X-Received: by 2002:a17:903:13c8:b0:2db:3b35:1ac6 with SMTP id d9443c01a7336-2dd4bc32ee4mr166613045ad.5.1789326011475; Sun, 13 Sep 2026 12:00:11 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2dd2cca6b7bsm36808655ad.3.2026.09.13.12.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 12:00:09 -0700 (PDT) From: Coia Prant To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Vinod Koul , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue , Lad Prabhakar , Romain Gantois , Heiner Kallweit , Coia Prant Cc: Neil Armstrong , Russell King , Shawn Lin , David Heidelberg , netdev@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org Subject: [PATCH net-next v5 04/11] dt-bindings: net: pcs: add rockchip,rk3568-xpcs support Date: Mon, 14 Sep 2026 02:58:39 +0800 Message-ID: <20260913185849.907479-5-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913185849.907479-1-coiaprant@gmail.com> References: <20260913185849.907479-1-coiaprant@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260913_120012_700244_82EB7812 X-CRM114-Status: GOOD ( 13.23 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add device tree binding documentation for the Synopsys DesignWare XPCS integrated on the Rockchip RK3568 SoC. The XPCS is accessed over the APB3 bus and internally connected to a Naneng Combo SerDes PHY. It supports 1000BASE-X, SGMII, and QSGMII modes, with four MII ports. Signed-off-by: Coia Prant --- .../net/pcs/rockchip,rk3568-xpcs.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml diff --git a/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml new file mode 100644 index 0000000000000..703fcff0e3f70 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pcs/rockchip,rk3568-xpcs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3568 Synopsys DesignWare Ethernet PCS + +maintainers: + - Coia Prant + +description: | + Rockchip RK3568 SoC integrates a Synopsys DesignWare Ethernet Physical + Coding Sublayer (XPCS). + The PCS provides an interface between the Media Access Control (MAC) + and the Physical Medium Attachment (PMA) sublayer through a Media + Independent Interface (GMII). + + The XPCS is accessed over the APB3 bus and internally connected to a + Naneng Combo SerDes PHY. + It supports 1000BASE-X, SGMII and QSGMII modes. + + The block contains four MII ports that can be individually enabled and + routed to one of the Ethernet GMAC controllers via the pcs-handle + property in the MAC device tree node. + +properties: + compatible: + const: rockchip,rk3568-xpcs + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + clocks: + items: + - description: APB3 bus interface clock (clk_csr_i), required for register access + - description: EEE clock (clk_eee_i), required for Energy Efficient Ethernet operation + + clock-names: + items: + - const: csr + - const: eee + + phys: + maxItems: 1 + + phy-names: + const: serdes + + power-domains: + maxItems: 1 + +patternProperties: + "^ethernet-pcs-mii@[0-3]$": + type: object + description: + One of the four MII ports of the XPCS. The port is linked to an + Ethernet MAC controller via the pcs-handle property in the MAC's + device tree node. + + properties: + reg: + description: MII port number. + enum: [0, 1, 2, 3] + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - clocks + - clock-names + - phys + - phy-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + ethernet-pcs@fda00000 { + compatible = "rockchip,rk3568-xpcs"; + reg = <0xfda00000 0x200000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>; + clock-names = "csr", "eee"; + phys = <&combphy2 PHY_TYPE_SGMII>; + phy-names = "serdes"; + power-domains = <&power RK3568_PD_PIPE>; + + ethernet-pcs-mii@0 { + reg = <0>; + }; + }; -- 2.47.3 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89861C88E63 for ; Sun, 13 Sep 2026 19:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ek+drvgaqcNrA+m81UroOPKBuNEISzgEBu/+wNJunb8=; b=U46Xms3EwRqSkk 5LAeixT70dcM9k6/8z4jEcS7D4da8MGnPJyEELe7Br0OsGjllMx8n0mWNCcnV/LRoHsz0h4cWhylG Aps+tGDhHB9/wVEBcYbGd57RNTaluBW8+5UFPP/K+Q1dEmbdN20JPLC3wAzJ7o834cSq0bUNVp6HD ciC850pY15IbI9twujbv7RW37gv+uq7wleetL+h4mGVPOSmXnZhlV9roY4nLyGQ+iVECvNaW8ElK5 8d25NWUsBQDQUZtX7x4mSYhz6rF0GVGX9GYXndHgiCHChURSb+GVAI1fynFeNq+w9AJDfKaf4LqL+ BjrFfYgPdTXSm+cIRByg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5pR2-00000001x0J-0dqo; Sun, 13 Sep 2026 19:00:16 +0000 Received: from mail-pj2-x08.google.com ([2607:f8b0:4864:39::8]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5pQy-00000001wvy-2HsW for linux-rockchip@lists.infradead.org; Sun, 13 Sep 2026 19:00:15 +0000 Received: by mail-pj2-x08.google.com with SMTP id d9443c01a7336-2d8fcda61c8so11806705ad.1 for ; Sun, 13 Sep 2026 12:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789326012; x=1789930812; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=QXrChBiGlqKEAAWV2vEOPDKUdaaJVAa8nIIlqRM/LRoZGehi80jDznMlYk4xbX9YHp 4o6tXvOJhbZksWPZDrNXqQWBxR0P8/iWv9/VNJRzl/BANmcZGIm44ErreQhbbukdHi3d v0Erj+51PIuxHmSzMcE8ZLIQRiz/+N9US8ibVUjw7AqCQWLuJiCCeOqPkNHTrwkV6zHB cfbHafjDNIsZE0Yb3Dyvj5EkV8QgUnYrEgD0MaX20kmebuUDtpgEVdIMzD49w5IKeWQR OUp8inOHxX48mTrJc4mM5gZuKKdACEoihJTLgYa41YOt83z0htJFQTECACutGlhSII76 MCtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789326012; x=1789930812; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=klsfFy/QEnBz19OtwxNBtWkT5kXfquPRrvwVhdGDlGQ4fiq1mt8DKyuPsc37HTElCt 3b1hqgh6CnF32VcxDKcoKqMR6+xEbf3i4xZ43d88m87ga2xnQR5SnA/h8BkwRwiqQlI3 ln5j2XABsuvrlJPYlMpv5Af7TmtnxI4lmkoA+UJjjpJzRXe5z+nXbZ+myODBAFGqEFus IQE01mPvi0pGlicuBRzqZaFUJrbhF8lzDdewmh/yPLgyiU2tM8eIjhOdmZpT8IP+DRQA GaOgrk5FOSlP6+c5/esGXo3Z8w2OxVPHYOYHTEmFQVPhclQfGLQ/oQob88u1WbhjMzxR SdAA== X-Forwarded-Encrypted: i=1; AKwUvBx7Uo7/3XbIZbcVE/ekMHEEhagWF+POScFNjn4mVCHf2n6zg76Rw5xxCa8+BoCVq4mO/PO3YGvQSM+tED408w==@lists.infradead.org X-Gm-Message-State: AFuF++mS/+Xz81K2MV4JWjmhg8eZ9zTVVzXoxGAqpB3+j8Sb8vI5NpE6 p6iKsJ30c4I7orVda0lunu4J2v4X7PB0q4mMDSRO0dboDs1ErAznSTWR X-Gm-Gg: AYBFou12ZzHhuTAz+WILKSwVVJJeEQSzj6wgGmW6QDoxyoLtgoECUVOf6rmYF6/Tu3F yPVtWggOMQWcmyzYes58V5eRoye+EYCw1Fs2M7+frvuUHuQ+sDb2YgxpI8Z4Wn9sPQM58Z9nXJK xZUHC00xzw3W/BaU3F8nyKdI7aySsAWd5NuFNzwz8rMf7DSZnJGNLQVgZb4P3dBydjF2m4bJDHJ YH0+PByRhzodtjZG8GOh5eaG+/UgIaTODEpKawfJJSqqumsqVa23XNMw3eFYUYLtYuJBOsRlNNq RBGlx0JReMO8U5oPQ9NaesHAOsXBgo/LZe6MFLbcsmFKIhHL6tdoKnzif+tFjClvi4zgmY8NZFt 3e+TVgcEW94nLdXmkLKiCwY09wnSPyV6No+dSzi+2GN6ExEC4BFPkuFu5dj7yyr2TI1bgC6u5A4 XdsBUjFKKGlt3X3PHcID+MQm523nZmBXbY8bqCpIWsM+04K0z4Hzsb8dgYwOb2hgb0Yr0rNNE= X-Received: by 2002:a17:903:13c8:b0:2db:3b35:1ac6 with SMTP id d9443c01a7336-2dd4bc32ee4mr166613045ad.5.1789326011475; Sun, 13 Sep 2026 12:00:11 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2dd2cca6b7bsm36808655ad.3.2026.09.13.12.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 12:00:09 -0700 (PDT) From: Coia Prant To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Vinod Koul , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue , Lad Prabhakar , Romain Gantois , Heiner Kallweit , Coia Prant Cc: Neil Armstrong , Russell King , Shawn Lin , David Heidelberg , netdev@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org Subject: [PATCH net-next v5 04/11] dt-bindings: net: pcs: add rockchip,rk3568-xpcs support Date: Mon, 14 Sep 2026 02:58:39 +0800 Message-ID: <20260913185849.907479-5-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913185849.907479-1-coiaprant@gmail.com> References: <20260913185849.907479-1-coiaprant@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260913_120012_615589_77431E94 X-CRM114-Status: GOOD ( 13.45 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add device tree binding documentation for the Synopsys DesignWare XPCS integrated on the Rockchip RK3568 SoC. The XPCS is accessed over the APB3 bus and internally connected to a Naneng Combo SerDes PHY. It supports 1000BASE-X, SGMII, and QSGMII modes, with four MII ports. Signed-off-by: Coia Prant --- .../net/pcs/rockchip,rk3568-xpcs.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml diff --git a/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml new file mode 100644 index 0000000000000..703fcff0e3f70 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pcs/rockchip,rk3568-xpcs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3568 Synopsys DesignWare Ethernet PCS + +maintainers: + - Coia Prant + +description: | + Rockchip RK3568 SoC integrates a Synopsys DesignWare Ethernet Physical + Coding Sublayer (XPCS). + The PCS provides an interface between the Media Access Control (MAC) + and the Physical Medium Attachment (PMA) sublayer through a Media + Independent Interface (GMII). + + The XPCS is accessed over the APB3 bus and internally connected to a + Naneng Combo SerDes PHY. + It supports 1000BASE-X, SGMII and QSGMII modes. + + The block contains four MII ports that can be individually enabled and + routed to one of the Ethernet GMAC controllers via the pcs-handle + property in the MAC device tree node. + +properties: + compatible: + const: rockchip,rk3568-xpcs + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + clocks: + items: + - description: APB3 bus interface clock (clk_csr_i), required for register access + - description: EEE clock (clk_eee_i), required for Energy Efficient Ethernet operation + + clock-names: + items: + - const: csr + - const: eee + + phys: + maxItems: 1 + + phy-names: + const: serdes + + power-domains: + maxItems: 1 + +patternProperties: + "^ethernet-pcs-mii@[0-3]$": + type: object + description: + One of the four MII ports of the XPCS. The port is linked to an + Ethernet MAC controller via the pcs-handle property in the MAC's + device tree node. + + properties: + reg: + description: MII port number. + enum: [0, 1, 2, 3] + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - clocks + - clock-names + - phys + - phy-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + ethernet-pcs@fda00000 { + compatible = "rockchip,rk3568-xpcs"; + reg = <0xfda00000 0x200000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>; + clock-names = "csr", "eee"; + phys = <&combphy2 PHY_TYPE_SGMII>; + phy-names = "serdes"; + power-domains = <&power RK3568_PD_PIPE>; + + ethernet-pcs-mii@0 { + reg = <0>; + }; + }; -- 2.47.3 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip