]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: dsa: realtek: rtl8365mb: add support for RTL8367SB
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Sat, 9 May 2026 12:10:29 +0000 (14:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 May 2026 01:33:21 +0000 (18:33 -0700)
Add chip info entry for the Realtek RTL8367SB switch. This device has
chip ID 0x6367 and version 0x0010. It exposes two external interfaces:
port 6 supports MII, TMII, RMII, RGMII, SGMII and HSGMII, while port 7
supports MII, TMII, RMII and RGMII. Use the existing 8365MB-VC jam table
for initialization.

Reviewed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://patch.msgid.link/3c6d822b-0e85-4173-86ba-2badb140bbf1@yahoo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/realtek/rtl8365mb.c

index c35cef01ec265e0d600de1b7707f7f68453952c3..0da048da533a6d5986bab896413075e7bf036934 100644 (file)
@@ -544,6 +544,20 @@ static const struct rtl8365mb_chip_info rtl8365mb_chip_infos[] = {
                .jam_table = rtl8365mb_init_jam_8365mb_vc,
                .jam_size = ARRAY_SIZE(rtl8365mb_init_jam_8365mb_vc),
        },
+       {
+               .name = "RTL8367SB",
+               .chip_id = 0x6367,
+               .chip_ver = 0x0010,
+               .extints = {
+                       { 6, 1, PHY_INTF(MII) | PHY_INTF(TMII) |
+                               PHY_INTF(RMII) | PHY_INTF(RGMII) |
+                               PHY_INTF(SGMII) | PHY_INTF(HSGMII) },
+                       { 7, 2, PHY_INTF(MII) | PHY_INTF(TMII) |
+                               PHY_INTF(RMII) | PHY_INTF(RGMII) },
+               },
+               .jam_table = rtl8365mb_init_jam_8365mb_vc,
+               .jam_size = ARRAY_SIZE(rtl8365mb_init_jam_8365mb_vc),
+       },
        {
                .name = "RTL8367RB-VB",
                .chip_id = 0x6367,