From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=178.21.23.139 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796408951; b=TKov5ynrNw3/L26RhlpfNk5yYmlybzePJUuc/MbeBOEWFI4zenUat9oSxp0VdBJpYkOk uWYJbOL0EHutmXPCFiz+QnTw8yRPiHNbqwfxOr/FQFJwiIoDs2F7aeIRDERbmHrnQPJpV fS7704cRDeoBOgEKQVPIAZTpxnZv/HHyH1OrrCwRMf5fGRwVArOljGVkiVe11/ILyxzdF j1gMHkcuKPOFMgOnyZCNyQ/ZYGYqSpPzsp6WWse3o+L3sHo0ILZOtPvIySABQ5rie4Upa dPotk1GCppSrzDoNAZeM4Rm5auwDGvyEgzKhUEEsWKJhjTHCOw5CK6+yY97qWfviXqQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796408951; h=DMARC-Filter:Received:X-Virus-Scanned:Received:DKIM-Signature:From: To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=Gm50zvyHgpihfS7uMAvdhtT87GPb/qWr5S6e653O+l4=; b=3EZv9Uecr3TFl+AuvLbu8qFI5ETWc1QwuFvZta2bG1ZR/IqhDhvrDhctfSyBuD8TOzuv gJXZnRsalIjLlqHXEktdc6BfWVZoxZ5eEFQIWw6BFuUfJ4CzShhmfgSQJwULlbYUAl+NR 7TpO+kK31PYpyX5FmJSaY2MrX0kVpa6dTMST3t3CmU6OF8kANk2R4fXwDLAO5PvtX19x/ fLInChDuqNEhJgOxaLjooVG6VSV52OmhcxCNrGs3DXbesvkcEf2GLYDfNTjGDf3oqUZBI xrkqYrwWQdzSinCMYOPLj58b9Crx5ID/zqJp0/lq9l4bGAZ/9xSEkAc84LiLBmcX4vg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass header.d=disroot.org header.i=@disroot.org header.a=rsa-sha256 header.s=mail header.b=gvpSoLxz; arc=none smtp.remote-ip=178.21.23.139 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (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 B0245606A33F; Fri, 4 Dec 2026 18:29:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0245606A33F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.a=rsa-sha256 header.s=mail header.b=gvpSoLxz Received: from mail01.layka.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 549C582F8F; Fri, 04 Dec 2026 19:29:09 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jO2XPFKoWEBu; Fri, 4 Dec 2026 19:29:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1796408948; bh=VIQO4ljkdq5WpjzanJGjcqkBNKKy81McJQvbNLwMvHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gvpSoLxzwb3Mrs24o7UK0TNlQPXhvayCPsFXu7elmXCOkv0jm3Ky0JTkxGN3aW+/x yhKl8uVWlVHAowtoSSbcG2uYoiO3xjiWDHTCcKZH89tDjPPfr/UOhGd4k7LUvKAgND x+RWDewLeUt0X88lItexkAWb4sWl8D7QmyTvWMOZQpQyiHzrbZ3hwYTtKbcMwNNXHa m6NGesQsrsG3P6rMXCUJmoxN0OHwy5LKzwEs+ilNBg41d+HZJRIyKnIl4AW2+pGJ8X igT9hvpdZeMEeHIAm5goNdNNmwwj+HKxpPnudlL0iuADXRMrqw06EMzYFDbPRM1ldu RvT5EGKMJbxVg== From: Rustam Adilov To: Linus Walleij , Luiz Angelo Daros de Luca , =?UTF-8?q?Alvin=20=C5=A0ipraga?= , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , Willem de Bruijn , Simon Horman , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rustam Adilov Subject: [RFC PATCH net-next 3/6] dt-bindings: net: dsa: realtek: add new rtl9607c switch compatible Date: Fri, 4 Dec 2026 23:25:17 +0500 Message-ID: <20261204182553.33952-4-adilov@disroot.org> In-Reply-To: <20261204182553.33952-1-adilov@disroot.org> References: <20261204182553.33952-1-adilov@disroot.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 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 --- .../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 + #include + + 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 = ; + 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