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 D84CDC88E75 for ; Tue, 15 Sep 2026 12:49:28 +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=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=A5uVQX0uQSwEmp1YjDes3e8L+f vzub2DMTaRC255GZ9gXPVvjcmCzkZQAgrvyqNUDuN5JyIs57tyut4WlPOSf8cLWRguhLq3sdfFk95 yJqrZUt52Q6ay5Rsvu+YJovM4eD3OI84rAGbU2BnGUxSDAHcB9QVmPthZnhFTs9ng1QWHv26CvNqI cchLavthloxRIKjb/EO+BwoScEbAvH6+hiqiGCbZjswxREfDZMVIKvtrLMxQQIpLxiCHrKVfyluBg d5edzDWjSMAxIGF8XUNtxXIJR8PnPPw+SgXuYTkbfKE8EZsoONPzgBCG0uqc1mKm0PLysnCtV5MJu 7msvPAzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6SRY-00000006XqW-0IPh; Tue, 15 Sep 2026 12:39:24 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x6SRF-00000006XEW-3JRT for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Sep 2026 12:39:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=gaQPgN9xwJzuM0GPM5hNVMgAOEuPdKVKWJmnNDeBdbE=; b=QaDxMcP3z0DGvzg6JwnBtapqSn xqd6XNJUMYW866h8KXQZ8nveQoKeMYvuc5qNdJq+B83QkRjIUzeSbMgY5wx3b4zVQF8J7OA0RSxth 96wIaCVzPs0uqvD4m5AX+BGbSFQCMQoGdTcckInQnZt130HZ17lSVx+CB8j79lC6zEoshKkYAZ4W/ fTZGL1cVYIKy0e1FgL4oI6fW6YHpv29mhWGPd4kzxBq6eUPNzkJgcwjt4ovyYqvci+Qi5IDG42HLi z7I2TaZqYb9uB9jB+NsmCqeDiwqItXYYSVu5oJ5ZLAOwRc2OVMGsg2Sj2D8Yc7WLgWhcvXkqHjuII hk9BduNA==; Received: from mail-pj2-x0b.google.com ([2607:f8b0:4864:39::b]) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1x6SRA-00000006kIO-3DNV for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2026 12:39:04 +0000 Received: by mail-pj2-x0b.google.com with SMTP id 98e67ed59e1d1-398a384b5f7so2726673a91.0 for ; Tue, 15 Sep 2026 05:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789475939; x=1790080739; 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=UBMwIod1/M1WRpShaYHZKUSDcBsq+Er88gqCGP8rxBNlogl5TVA/GYJqHw2anHuQNX oa7FBPMeoH1kWcdK3zpHgCSYT752TbF1DBfikgzm4BEEMhOKBW5z2234+ib/54WbOkDb pUH5s7zFsjYslvQawBO3mGmv9Lck6Oe7vq0UiHEHd+hlq5zpodUgxgKW96B9zV5yi+4r ab2cvh7UqtiJE0DD5OCoueq+/iWdurE0fUAa9sX9OxBgHpRdDD00DPNCR6L5JOXBtoTX skBQdUmiGWw0mfG5iowGUqO7I0G0ctD/ogrsvUQtP5HSdvDEFla1DBGZ1uIs+X9HJvMk E1mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789475939; x=1790080739; 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=JG4Jn6m/C+5fY/wZGNM5mJgsA5aybs4EZaIrpGGhmaOVWM5vi1SCrYxr4H3LxrdWca D3sRwI3oFOXRpPb+bzhxLVgvUgwQMooCzoDURY3tLpTy89gcg4e/QerhFp4efR5gIHhH HMy6jCKdTupwyvjw35s/u7yduS9jWVEmuaTeGHwH/mxUY9ATbm9GKljMaWbDq1oermi2 +m0xHKhDq2x2pGUQCprnlADCSO2bU1vb6foFJWJQUnUvZd+Cs8LYP5OG57O4bxClcQsT qSV7z7IRuPhRaYBwrL7P3HvPQ/d0AAxk+zJ+Fi3ayGOugnT2lyzm3GeNDpdKgkbig2jq +7WQ== X-Forwarded-Encrypted: i=1; AKwUvBwWWOIGslFGhwnBG4+ruH+f8b2uCXnaKjoeBo1bMgpIU2DYly8b8SwK3QYSDVyuswn127pomp0++G6pooFvVSrM@lists.infradead.org X-Gm-Message-State: AFuF++kfdzWSqNBvAW8lVSFONfE9iZ63Qx/B+cspmtVXbZ2nerqG/aLT KKhbQpI+Y0fiuAozmeigxiwCjxxup/3MS8qKEvkn94TZ7aDMpUgUdVT0 X-Gm-Gg: AYBFou1m2+t4i8pU2QNHgHHesWA0Q1hnVspUH+tg2U2jgJPSA/foIHxI8gnhmUqJdgb SZU/6fToquhnaeCbujAxWlliKgNApKWHKmyh5w9M/Rn9FB2NNbDW+ethqM6AlJ/vW2abZSIyf6Y fFR35U2dVMlCJwys+fnDgh1Jy4Arf4KSZ6rNd17TfYfFEXSaQclDM0uXOx31mFbFeZujcj1nC6G wu3mcDphZAjQd8A5i3fv0Y5vktWmpzikP0Z/GGGgZadakFV9ULYdlfbv/I1elT8rnvkMAB95cE+ 56SnfQCGUdev5Cr/QjUyhKT8ar8GiCc6XHQOka0B112nk21V431WCfrkUro6fbY735g+koZEpF9 VAulxP3ZIzj+w0l95IrMPHUUpi1t/6M8QWlSY6cudNi43WaEOzyhHuRZQAf5VZHMR5+G+5OCr5W ew2P8x4UufrT4Fs9CVLRU/komnjd9r6AF8K9jwLViCInTbCrVr/ERbh5FT1mX/MXWFuW9FNg== X-Received: by 2002:a17:90b:50c8:b0:39d:f773:37b5 with SMTP id 98e67ed59e1d1-39df7733906mr12070641a91.0.1789475938897; Tue, 15 Sep 2026 05:38:58 -0700 (PDT) Received: from server.lan ([168.138.199.194]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39dfdd28acbsm5307259a91.10.2026.09.15.05.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2026 05:38:57 -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 v6 04/11] dt-bindings: net: pcs: add rockchip,rk3568-xpcs support Date: Tue, 15 Sep 2026 20:37:53 +0800 Message-ID: <20260915123802.1561724-5-coiaprant@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260915123802.1561724-1-coiaprant@gmail.com> References: <20260915123802.1561724-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-20260915_133900_994496_396C180D X-CRM114-Status: GOOD ( 15.29 ) 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. 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