From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796399346; b=Gdmxh0QD7en8kYh+A0IFpxteWCBooCK2uoBKehWWIMD+z+OmaZx4CE0nP5nvK9F+K0yH MmSNK0s/XjpC18X7nQskuea59/mzPVima+QKmhVLA+jzrxHd9esQyEK7ypVaZezYgXXrQ w7TtJ8BHFumJtBgJQRDHAmxDPlYc7/cTJBuE5MIOnAsXkR0Dm1LU6cC6ccI6cfHd5BL9h Kg9ink5A3NtEWGWF41jqRQR5CdUFUyRYp1dhw+PgZSYoJNnfVTd3UMTeS7lSMSnZzu2Eh 9gBJluBMsQAr2tQbhp2Bu2OENPr//Q5Duep+Jh51OGuhUyUQPTvexsg59B6ZQReZV0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796399346; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=tVBOeLGR6pmd4RJVvsv16ydXyy4i4Oo+lH4ibHF0AbM=; b=ly9w0kBQv98EK2d6pv0igJAlko6tqOQ7XGWnMxDgq2G4g1VcfxP2OtVvP8YjntQqgpHj xzp2aOlI20VBaYfphoksIZBhluayIWk48JEeQrn7452HrdpZLF8qPMcb6Gf91JTheD13G GADze4xYdpF+ZovyPboU93XeCq0PIvqPiXfuVnDI6qp4ixPgmvuo6o147tE7cu+rBqF2k LRAD7EGCMs7H9RrzdPhpW/vAcfAxKeJLE3PYJ+LZIy4MyD6zdlvbHNVVMGT7TMBjurifG JUAbI44DlS4INUX84OorhgIQVIZ+BdviXevk0Aj5LF9EgEE9YW0Wzxv1lRjXA62i7Lw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Baka39mP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24503606A32F; Fri, 4 Dec 2026 15:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Baka39mP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 556511F0092C; Fri, 4 Dec 2026 15:49:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796399345; bh=tVBOeLGR6pmd4RJVvsv16ydXyy4i4Oo+lH4ibHF0AbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Baka39mPjA+JwiPj9JGUBDbHnQYPhSBi5EblGVEOmOJzAtMy9HxNzAZEQnKC39nXm 2ivlmCjGfdrmerYJHPFVWUCSk3puTYXnSmU0LD2Zhdqe+zwXoaQXLnhfu6rX2f1NVF /IxF53IFSYP5Mq6ubfYsoXc6VPn4xvB3fnOPkNbsP796mAgKRCbsM6OykumI7Me/eF 9cEYMZ+xYUTTp02oAx4NvRygfSux6qa3dxKeafRb6UJ5vhYrBfD85/nm9b1DYAnlLE 3Uix3/I2i0HaCN049NDhA7G+01YYnHzETQQ2lHWWHiDvq18t2KshA4XetRScWs9jqF j2dNoV3kfk6Zw== From: Jisheng Zhang To: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Hesselbarth , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, richard.genoud@bootlin.com Subject: [PATCH net-next v5 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC Date: Fri, 4 Dec 2026 23:28:35 +0800 Message-ID: <20261204152836.31432-2-jszhang@kernel.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261204152836.31432-1-jszhang@kernel.org> References: <20261204152836.31432-1-jszhang@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Describe the Synaptics SL2610 integration of DWMAC 5.20. The PHY interface mode and the routing of the shared MDC/MDIO signals are controlled through system-controller registers. Add the compatible to the common DWMAC schema and show a PHY connected to MAC1's MDIO bus in the example. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/net/syna,sl2610-dwmac.yaml | 122 ++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 69d88a9b1925..619c389d8838 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -120,6 +120,7 @@ properties: - sophgo,sg2044-dwmac - starfive,jh7100-dwmac - starfive,jh7110-dwmac + - syna,sl2610-dwmac - tesla,fsd-ethqos - thead,th1520-gmac - ultrarisc,dp1000-gmac diff --git a/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml new file mode 100644 index 000000000000..226d07101e90 --- /dev/null +++ b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml @@ -0,0 +1,122 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/syna,sl2610-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synaptics SL2610 DesignWare Ethernet MAC + +maintainers: + - Jisheng Zhang + +description: + The Ethernet controllers share one external MDC/MDIO interface. Only + one controller may contain an enabled MDIO child node, describing all + devices on the shared bus. Other controllers reference those devices + through phy-handle and omit or disable their MDIO child nodes. + +select: + properties: + compatible: + contains: + const: syna,sl2610-dwmac + required: + - compatible + +allOf: + - $ref: snps,dwmac.yaml# + +properties: + compatible: + items: + - const: syna,sl2610-dwmac + - const: snps,dwmac-5.20 + + reg: + maxItems: 1 + + clocks: + items: + - description: MAC clock + - description: Peripheral register interface clock + - description: PTP reference clock + + clock-names: + items: + - const: stmmaceth + - const: pclk + - const: ptp_ref + + interrupts: + maxItems: 1 + + interrupt-names: + const: macirq + + resets: + maxItems: 1 + + reset-names: + const: stmmaceth + + power-domains: + maxItems: 1 + + phy-mode: + enum: + - rmii + - rgmii + - rgmii-id + - rgmii-rxid + - rgmii-txid + + syna,syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: Phandle to the SL2610 system controller. + - description: Offset of the Ethernet interface control register. + description: + Phandle and register offset used to configure the Ethernet PHY + interface mode. + +required: + - compatible + - clocks + - clock-names + - resets + - reset-names + - phy-mode + - syna,syscon + +unevaluatedProperties: false + +examples: + - | + #include + #include + + ethernet@f7a06000 { + compatible = "syna,sl2610-dwmac", "snps,dwmac-5.20"; + reg = <0xf7a06000 0x2000>; + clocks = <&clk 13>, <&clk 45>, <&clk 15>; + clock-names = "stmmaceth", "pclk", "ptp_ref"; + interrupts = ; + interrupt-names = "macirq"; + resets = <&rst 6>; + reset-names = "stmmaceth"; + phy-mode = "rgmii-id"; + phy-handle = <&phy1>; + syna,syscon = <&chip 0xa3c>; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + phy1: ethernet-phy@2 { + reg = <2>; + }; + }; + }; +... -- 2.55.0