devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jisheng Zhang <jszhang@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 7/8] arm64: dts: synaptics: Add SL2610 Ethernet nodes
Date: Mon, 16 Nov 2026 21:54:41 +0800	[thread overview]
Message-ID: <20261116135442.4827-8-jszhang@kernel.org> (raw)
In-Reply-To: <20261116135442.4827-1-jszhang@kernel.org>

Add the first DWMAC controller in the common SL2611 dtsi, then add
the second controller for SL2619, including interrupts, clocks, PHY
interface control offsets, queues and AXI burst configuration.

Add the shared MDIO master selector as an mmio-mux child of the global
system controller. Leave the MACs and selector disabled for boards to
enable according to their wiring.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 arch/arm64/boot/dts/synaptics/sl2611.dtsi | 41 +++++++++++++++++++++++
 arch/arm64/boot/dts/synaptics/sl2619.dtsi | 36 ++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/arch/arm64/boot/dts/synaptics/sl2611.dtsi b/arch/arm64/boot/dts/synaptics/sl2611.dtsi
index 663fe6034ba0..f6e2ce21ed19 100644
--- a/arch/arm64/boot/dts/synaptics/sl2611.dtsi
+++ b/arch/arm64/boot/dts/synaptics/sl2611.dtsi
@@ -281,12 +281,53 @@ aioclk: aviogbl: syscon@f7490000 {
 			clocks = <&osc>;
 		};
 
+		ethernet0: ethernet@f7a04000 {
+			compatible = "syna,sl2610-dwmac", "snps,dwmac-5.20";
+			reg = <0xf7a04000 0x2000>;
+			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "macirq";
+			clocks = <&clk CLK_GETHRGMII>,
+				 <&clk CLK_GETHRGMIISYS>, <&clk CLK_GE0_PTP_REF>;
+			clock-names = "stmmaceth", "pclk", "ptp_ref";
+			snps,axi-config = <&stmmac_axi_config_0>;
+			snps,mixed-burst;
+			snps,mtl-rx-config = <&mtl_rx_setup_0>;
+			snps,mtl-tx-config = <&mtl_tx_setup_0>;
+			snps,pbl = <32>;
+			syna,syscon = <&chip 0xa18>;
+			status = "disabled";
+
+			mtl_rx_setup_0: rx-queues-config {
+				snps,rx-queues-to-use = <1>;
+				queue0 {};
+			};
+
+			mtl_tx_setup_0: tx-queues-config {
+				snps,tx-queues-to-use = <2>;
+				queue0 {};
+				queue1 {};
+			};
+
+			stmmac_axi_config_0: stmmac-axi-config {
+				snps,blen = <256 128 64 32 0 0 0>;
+				snps,rd_osr_lmt = <0x7>;
+				snps,wr_osr_lmt = <0x7>;
+			};
+		};
+
 		clk: pinctrl: rst: chip: syscon@f7e10000 {
 			compatible = "syna,sl2610-soc-syscon", "syscon";
 			reg = <0xf7e10000 0x10000>;
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 			clocks = <&osc>;
+
+			mux1: mux-controller {
+				compatible = "mmio-mux";
+				#mux-control-cells = <1>;
+				mux-reg-masks = <0xa04 0x10>;
+				status = "disabled";
+			};
 		};
 
 		cpuclk: cpu_wrap: syscon@f7e30000 {
diff --git a/arch/arm64/boot/dts/synaptics/sl2619.dtsi b/arch/arm64/boot/dts/synaptics/sl2619.dtsi
index 96bd58bbed3e..57933a9aba28 100644
--- a/arch/arm64/boot/dts/synaptics/sl2619.dtsi
+++ b/arch/arm64/boot/dts/synaptics/sl2619.dtsi
@@ -41,4 +41,40 @@ pmu {
 		interrupt-affinity = <&cpu0>,
 				     <&cpu1>;
 	};
+
+	soc {
+		ethernet1: ethernet@f7a06000 {
+			compatible = "syna,sl2610-dwmac", "snps,dwmac-5.20";
+			reg = <0xf7a06000 0x2000>;
+			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "macirq";
+			clocks = <&clk CLK_GETHRGMII1>,
+				 <&clk CLK_GETHRGMII1SYS>, <&clk CLK_GE1_PTP_REF>;
+			clock-names = "stmmaceth", "pclk", "ptp_ref";
+			snps,axi-config = <&stmmac_axi_config_1>;
+			snps,mixed-burst;
+			snps,mtl-rx-config = <&mtl_rx_setup_1>;
+			snps,mtl-tx-config = <&mtl_tx_setup_1>;
+			snps,pbl = <32>;
+			syna,syscon = <&chip 0xa3c>;
+			status = "disabled";
+
+			mtl_rx_setup_1: rx-queues-config {
+				snps,rx-queues-to-use = <1>;
+				queue0 {};
+			};
+
+			mtl_tx_setup_1: tx-queues-config {
+				snps,tx-queues-to-use = <2>;
+				queue0 {};
+				queue1 {};
+			};
+
+			stmmac_axi_config_1: stmmac-axi-config {
+				snps,blen = <256 128 64 32 0 0 0>;
+				snps,rd_osr_lmt = <0x7>;
+				snps,wr_osr_lmt = <0x7>;
+			};
+		};
+	};
 };
-- 
2.55.0


  parent reply	other threads:[~2026-11-16 14:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 13:54 [PATCH 0/8] net: stmmac: add SL2610 ethernet support Jisheng Zhang
2026-11-16 13:54 ` [PATCH 1/8] dt-bindings: net: Add MDIO demultiplexer Jisheng Zhang
2026-11-16 13:54 ` [PATCH 2/8] net: mdio: Add MDIO demultiplexer driver Jisheng Zhang
2026-11-16 13:54 ` [PATCH 3/8] dt-bindings: net: Add Synaptics SL2610 DWMAC Jisheng Zhang
2026-11-16 13:54 ` [PATCH 4/8] net: stmmac: Add glue layer for Synaptics SL2610 SoC Jisheng Zhang
2026-11-16 13:54 ` [PATCH 5/8] dt-bindings: soc: synaptics: Allow SL2610 mux controller children Jisheng Zhang
2026-11-16 13:54 ` [PATCH 6/8] soc: synaptics: Populate SL2610 system controller DT children Jisheng Zhang
2026-11-16 13:54 ` Jisheng Zhang [this message]
2026-11-16 13:54 ` [PATCH 8/8] arm64: dts: synaptics: Enable Ethernet on SL2619 RDK Jisheng Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261116135442.4827-8-jszhang@kernel.org \
    --to=jszhang@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=sebastian.hesselbarth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).