[RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible

From: Rustam Adilov

Date: Fri Dec 04 2026 - 13:29:31 EST


RTL9607C is an SoC that have as an embedded ethernet switch
with 4 internal PHYs, 1 PON serdes, 2 HSGMII that are muxed
with USB3 and PCIe slot 1 and lastly 2/3 CPU NIC ports.

Add a compatible string for it with "-switch" to differentiate
it from SoC compatible.

Signed-off-by: Rustam Adilov <adilov@xxxxxxxxxxx>
---
.../devicetree/bindings/net/dsa/realtek.yaml | 59 ++++++++++++++++++-
1 file changed, 58 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
index b7bb60af623c..761a79bc28d9 100644
--- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
@@ -29,7 +29,7 @@ maintainers:
description:
Realtek advertises these chips as fast/gigabit switches or unmanaged
switches. They can be controlled using different interfaces, like SMI,
- MDIO or SPI.
+ MDIO, SPI or MMIO.

The SMI "Simple Management Interface" is a two-wire protocol using
bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does
@@ -41,6 +41,9 @@ description:
The realtek-mdio driver is an MDIO driver and it must be inserted inside
an MDIO node.

+ The MMIO-connected switches use plain MMIO accessors since their registers
+ are directly mapped into the SoC's memory map.
+
The compatible string is only used to identify which (silicon) family the
switch belongs to. Roughly speaking, a family is any set of Realtek switches
whose chip identification register(s) have a common location and semantics.
@@ -53,6 +56,7 @@ properties:
enum:
- realtek,rtl8365mb
- realtek,rtl8366rb
+ - realtek,rtl9607c-switch
description: |
realtek,rtl8365mb:
Use with models RTL8363NB, RTL8363NB-VB, RTL8363SC, RTL8363SC-VB,
@@ -60,6 +64,8 @@ properties:
RTL8367SB, RTL8370MB, RTL8310SR
realtek,rtl8366rb:
Use with models RTL8366RB, RTL8366S
+ realtek,rtl9607c-switch:
+ Use with models RTL9607C, RTL8198D.

mdc-gpios:
description: GPIO line for the MDC clock line.
@@ -421,3 +427,54 @@ examples:
};
};
};
+ - |
+ #include <dt-bindings/interrupt-controller/mips-gic.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ ethernet-switch@1b000000 {
+ compatible = "realtek,rtl9607c-switch", "syscon", "simple-mfd";
+ reg = <0x1b000000 0x1000000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ switch_intc4: interrupt-controller {
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_SHARED 15 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <1>;
+ };
+
+ ethernet-ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ethernet-port@0 {
+ reg = <0>;
+ label = "lan0";
+ phy-handle = <&phy0>;
+ };
+ ethernet-port@1 {
+ reg = <1>;
+ label = "lan1";
+ phy-handle = <&phy1>;
+ };
+ ethernet-port@2 {
+ reg = <2>;
+ label = "lan2";
+ phy-handle = <&phy2>;
+ };
+ ethernet-port@3 {
+ reg = <3>;
+ label = "lan3";
+ phy-handle = <&phy3>;
+ };
+ ethernet-port@9 {
+ reg = <9>;
+ ethernet = <&gmac0>;
+ phy-mode = "internal";
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+ };
--
2.56.1