[PATCH 7/8] arm64: dts: synaptics: Add SL2610 Ethernet nodes
Jisheng Zhang
jszhang at kernel.org
Mon Nov 16 05:54:41 PST 2026
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 at 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 at f7490000 {
clocks = <&osc>;
};
+ ethernet0: ethernet at 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 at 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 at 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 at 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
More information about the linux-arm-kernel
mailing list