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=1796225763; b=we5zYQiRDoV+qxt+Ni9/K9easlX6ke8i5lh/423u72uLFYvvnVNA2Qj1DlH4vl5lklSS WvjiHYYO2i+Ewb95sMq85HL8VJyj3TxZfqDh10fONzYPbTjibtwyFW+yxEGSkKjVMNwOK jNb8ecqzpoj7k9zz6mEVXOl7jyaHq928w/9VITE6ZrwHvYoe/3d7kYY2eo0+qy0F3eG8f bYxCfR5rAjbL5OQAKerqtSWXudT6zKv+ixN1kozWILAYGaNJDw3WoATCBj2uqxTJGJD3z wXGtnlU2wEc53qDuqbnfggeqmk+Gb78vDGaOuTVm9wMsIG8gMf5omhVVB1o6Bj2wm+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796225763; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=qbRfGU1/IvdJnELsdtqB7T76LQCYmWPY1i1mKRuHZ/A=; b=vxD7SAx4ToCearWF98ZOZVYMul52Res7/9rAEzGBwU2hSUkMxAT23ATnaimP1A8QUwGB qsHcrAi8XDQUZ8yPOvD/iQuXhS/fOcmXbETTknoqoFn1qSZBwkjWHgyfwudSicYHa/0Wi VoGhlZ78XgvwgMzb+7Kc4qmiforSxTm5+jXNhD9monjN6noe8KkrVWanOcS7wFUWEC3Cu 5P9Nqd8VyR2ZqrhiZXlgkip5Vuw8GcgUmUW6ciIIaVtRsl9YQfIZdTBT+0ebGJKwVyUpv BIvvUSuqjv4SMBvSf2ckeouJ/0wyBiWZOezIByV4rgTKuDwnBU8VOgTvndOhhnWqdcg== 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=kIh41qc2; 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 7211F606A32D; Wed, 2 Dec 2026 15:36:03 +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=kIh41qc2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE7A01F000C1; Wed, 2 Dec 2026 15:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796225762; bh=qbRfGU1/IvdJnELsdtqB7T76LQCYmWPY1i1mKRuHZ/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kIh41qc233lmL2RHH0LQcdNrrC55dajlbKH+fVQTQQQitG3wZTaJdTw6TnzJLGQMp mWU6Dv14dHpNqpBE1mrjR/SPBHpRZiNYu138c3WbNkrbwWxC0zNVgaNMErHlCpfN0A at1RDUaUUIib/PHNN0yF6MZ8Es1OQnI1OoYocvksrpV3uuqIGRL8nHP8qmZBCUtSZY VwEJyWrpBlHxECxNKaBSPtjDoQx1nHCagc+7OgPQragQDRkOOb7Kr8fZcuewEXg2J/ F8yWJ1D3dRgCNQi1iuTZ9RzrtJLaQhGWKePXMStG43K0Prn+mcUZ5HtmJUqPGYggbQ HJLOv5iboZc8w== 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 Subject: [PATCH net-next v4 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC Date: Wed, 2 Dec 2026 23:15:30 +0800 Message-ID: <20261202151531.28480-2-jszhang@kernel.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261202151531.28480-1-jszhang@kernel.org> References: <20261202151531.28480-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 | 124 ++++++++++++++++++ 2 files changed, 125 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..37f91fdfddb1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml @@ -0,0 +1,124 @@ +# 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 + + interrupts: + maxItems: 1 + + interrupt-names: + const: macirq + + clocks: + items: + - description: MAC clock + - description: Peripheral register interface clock + - description: PTP reference clock + + clock-names: + items: + - const: stmmaceth + - const: pclk + - const: ptp_ref + + resets: + maxItems: 1 + + reset-names: + const: stmmaceth + + power-domains: + maxItems: 1 + + 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. + + phy-mode: + enum: + - rmii + - rgmii + - rgmii-id + - rgmii-rxid + - rgmii-txid + +required: + - compatible + - clocks + - clock-names + - syna,syscon + - phy-mode + +dependencies: + resets: [reset-names] + reset-names: [resets] + +unevaluatedProperties: false + +examples: + - | + #include + #include + + ethernet@f7a06000 { + compatible = "syna,sl2610-dwmac", "snps,dwmac-5.20"; + reg = <0xf7a06000 0x2000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&clk 13>, <&clk 45>, <&clk 15>; + clock-names = "stmmaceth", "pclk", "ptp_ref"; + resets = <&rst 6>; + reset-names = "stmmaceth"; + phy-mode = "rgmii-id"; + syna,syscon = <&chip 0xa3c>; + phy-handle = <&phy1>; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + phy1: ethernet-phy@2 { + reg = <2>; + }; + }; + }; +... -- 2.55.0