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 3DEF4CCF2C3 for ; Sat, 17 Oct 2026 05:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oT/1KwqbtpFXM8iCK2NrIcWEMqWijDvNOiD3geX4Tok=; b=OHKfgc86OMvZQpNmE7mdNz4+1j gD+HobnWvpLxSGKi7SN3c8kjoY6yaI+0ztFbPBv6yU7z+jTa9k6Y/smL9Jk7CgWQrL/wnbzP0taoY Xhj0IOxxkoIICZpvxdsFQCi+zVgxVCuXHVS7nnlfjsdQfchLKmss9ct1vdbPW2uVtx1j1uEBDbQ0v g7gOw5uwkYcbCYdeHwqQbFAaRwqLIDBI0t4IuLJVu214R9N8OT31MvEU5iaWxlC/Cz/dkp/LquVXV XIfiWEWz6gn6msRglvVCfAchtX1oiOibIa/3ObGX6WNHW+Av6G/VUty+RzNxVWsXhdDp0LAZnghCo c11SSJKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHxE4-00000004SO9-3NaX; Sat, 17 Oct 2026 05:45:00 +0000 Received: from mail-pz2-x08.google.com ([2607:f8b0:4864:3b::8]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHxDz-00000004SLC-3WZs for linux-arm-kernel@lists.infradead.org; Sat, 17 Oct 2026 05:44:58 +0000 Received: by mail-pz2-x08.google.com with SMTP id 41be03b00d2f7-cc73514ac7dso299588a12.0 for ; Fri, 16 Oct 2026 22:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792215895; x=1792820695; 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=oT/1KwqbtpFXM8iCK2NrIcWEMqWijDvNOiD3geX4Tok=; b=Bg94VPiVKBSxyWYrISHBVddAOpZj+AY5nDT4LleyWlTSFQ9q95YWfbogbDgdj9EAdL 0iuWunHHyxSkfKpxRdDGqRfu3Y9HKJWkN3AaeZ3zFwjWUUHViRHTspfTbcU5Uzp9wRn2 d7c4k4KoqQEN3WdOeP80TIljBVsQCQjvxMdpIoD60ae+kQ4CZINEyl11L8BhSWQSRaqm JBlEUpV8w1cmnKQHgMzgqyqpPJSMpJe1qJyFRvkmqJ4/NdJVi/4+Xge/b2jzZKIU6xjV TMdxmWfTs0Y3s+QCGUWdqols2UA8C1AanpKpoq/kgX/gnJNzSEM3egjCI6mB35K8yea4 tn2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792215895; x=1792820695; 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=oT/1KwqbtpFXM8iCK2NrIcWEMqWijDvNOiD3geX4Tok=; b=hCFqVuySRylO6/aM0/CAu3vMKKjOJaru8aBnXdLXfkxVPGnNWqgbk1cCS3mtktg8Ee IKsDIM8pveP8DH3HGhbGokMdnIerIChLpa9dms4pb2pziohRNnMhKvE4z7zk10GZsd1g yIrlIKq2t4IM9CocSxx2xFU5brRL2TcUK5fh/vb71q9K1k66oFSKET3LmObiUjaIRv6S iexu2thyRuTSCcuwy9OeaD2o5lRRUHecacZrTGyybURXngdruOkaE0GZJQ1c42pff5iE E1V7QctPXcv2naoO57HNRLGIoTjOQQYfmU4AKOilBSIrAYZAHl4Cbs8SgrUVbbuOhuJi Hzcw== X-Forwarded-Encrypted: i=1; AKwUvBxeFHzXrymIf4wg+UJj78v0nK7kmWFmhUfC0nZT5zpyRgIe6EJduHD+qDiNAbZI4Ed1bZ0qkboXwSXK8Rtl//V3@lists.infradead.org X-Gm-Message-State: AFq9FYLmzYNXyPTnBCt7jJSHpjeuOfkmNBt8Cuc1uC+EIx1OnONx8JgE RTaeGWmKur8WMPlCCCqbjVKnwPPu94XoWb8K5Bg798JMohVEkuA3RBwd X-Gm-Gg: AYBFou2RnkJhkC0jLOB4AAsa20wrQvLiWmGWqCbfFBK74JlWwxwsAazomR0FGPRhDM5 FpXYZMolD4/G7J4qJwdDJZclH1TxWDOj13uHqB8AC8dLSzasH7WKiZEyOOOnPZ6lc8Veagy+CBe 7e1Zf5OJ6O47btI1z82myHwGGL3iOVgEdlzllAO55L5Od13unarAMTMi4CWRRZcmcjw/MDLnrvw GdxGMPPg4UHFdPdyBVwxf5F6yEMNZZ6JdYSuaC61/ZgxPZA3uRcfDb/mM5q0Yd4jx0dqBzic7bX 0UkOpWNb/Uhq2G36VndnEdRpG8NRj6Z7KODAcIMABBiDeD11l04e7Sgf13Vgqn4xVVukT+V2rFq rTgLoetzhDoeyeic+6DBOySBVJDL4wTffxJU6w4tDHHPMe/Bh06l0HrianO8ybnGPwCzccqoUpN F4vd9u4XP2jcwIa9TjnEMrzat9KS1/fD41GVXrCORrwTQ3XAPeDIIOALXFFsCcheoot/SojkcbP CqAYtQ= X-Received: by 2002:a05:6a00:408d:b0:89f:b166:bde6 with SMTP id d2e1a72fcca58-8a04c43805cmr1583712b3a.54.1792215894837; Fri, 16 Oct 2026 22:44:54 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-89f57269315sm1958225b3a.23.2026.10.16.22.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 22:44:53 -0700 (PDT) From: Coia Prant To: Jakub Kicinski , netdev@vger.kernel.org Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue , Heiner Kallweit , Russell King , David Wu , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Coia Prant Subject: [PATCH net-next v12 2/6] dt-bindings: net: pcs: add rockchip,rk3568-xpcs support Date: Sat, 17 Oct 2026 13:44:00 +0800 Message-ID: <20261017054406.1828061-3-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261017054406.1828061-1-coiaprant@gmail.com> References: <20261017054406.1828061-1-coiaprant@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261016_224457_259860_5706FAE6 X-CRM114-Status: GOOD ( 15.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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. The MII port used by the SGMII link is derived from the MAC it is routed to: GMAC0 uses port 0, GMAC1 uses port 1. The port index is not an independent board-level configuration, so the binding does not describe the ports. If a future SoC needs per-port configuration that cannot be derived, pcs-handle argument cells can be added then. The CRU reset lines (SRST_XPCS*) are intentionally not described: no in-tree user requests them, and bring-up relies on the PD_PIPE power domain, the SerDes PHY and the in-IP soft reset. They can be added later as optional without breaking ABI. Reviewed-by: Rob Herring (Arm) Signed-off-by: Coia Prant --- .../net/pcs/rockchip,rk3568-xpcs.yaml | 69 +++++++++++++++++++ 1 file changed, 69 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..a331880eb11c1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pcs/rockchip,rk3568-xpcs.yaml @@ -0,0 +1,69 @@ +# 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. + +properties: + compatible: + const: rockchip,rk3568-xpcs + + reg: + maxItems: 1 + + 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 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - phys + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + ethernet-pcs@fda00000 { + compatible = "rockchip,rk3568-xpcs"; + reg = <0xfda00000 0x200000>; + clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>; + clock-names = "csr", "eee"; + phys = <&combphy2 PHY_TYPE_SGMII>; + power-domains = <&power RK3568_PD_PIPE>; + }; -- 2.47.3