[PATCH net-next v3 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC

Jisheng Zhang jszhang at kernel.org
Tue Dec 1 06:37:52 PST 2026


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 <jszhang at kernel.org>
---
 .../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 <jszhang at kernel.org>
+
+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 <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    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 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 at 2 {
+                reg = <2>;
+            };
+        };
+    };
+...
-- 
2.55.0




More information about the linux-arm-kernel mailing list