From 3880c7870d85f37a9426fb883741174baa260880 Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Wed, 13 May 2026 08:45:55 +0200 Subject: [PATCH] kernel: modules: netdevices: rtl8365mb: add support for RTL8367SB 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. Signed-off-by: Mieczyslaw Nalewaj Link: https://github.com/openwrt/openwrt/pull/23345 Signed-off-by: Hauke Mehrtens --- ...-rtl8365mb-add-support-for-rtl8367sb.patch | 42 +++++++++++++++++++ ...-rtl8365mb-add-support-for-rtl8367sb.patch | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 target/linux/generic/backport-6.12/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch create mode 100644 target/linux/generic/backport-6.18/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch diff --git a/target/linux/generic/backport-6.12/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch b/target/linux/generic/backport-6.12/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch new file mode 100644 index 0000000000..1ee43e01c0 --- /dev/null +++ b/target/linux/generic/backport-6.12/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch @@ -0,0 +1,42 @@ +From 28702a215c96917d85558ad6309a57ab224808c0 Mon Sep 17 00:00:00 2001 +From: Mieczyslaw Nalewaj +Date: Sat, 9 May 2026 14:10:29 +0200 +Subject: net: dsa: realtek: rtl8365mb: add support for RTL8367SB + +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 +Signed-off-by: Mieczyslaw Nalewaj +Link: https://patch.msgid.link/3c6d822b-0e85-4173-86ba-2badb140bbf1@yahoo.com +Signed-off-by: Jakub Kicinski +--- + drivers/net/dsa/realtek/rtl8365mb.c | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +--- a/drivers/net/dsa/realtek/rtl8365mb.c ++++ b/drivers/net/dsa/realtek/rtl8365mb.c +@@ -545,6 +545,20 @@ static const struct rtl8365mb_chip_info + .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, + .chip_ver = 0x0020, diff --git a/target/linux/generic/backport-6.18/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch b/target/linux/generic/backport-6.18/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch new file mode 100644 index 0000000000..1ee43e01c0 --- /dev/null +++ b/target/linux/generic/backport-6.18/941-v7.2-net-dsa-realtek-rtl8365mb-add-support-for-rtl8367sb.patch @@ -0,0 +1,42 @@ +From 28702a215c96917d85558ad6309a57ab224808c0 Mon Sep 17 00:00:00 2001 +From: Mieczyslaw Nalewaj +Date: Sat, 9 May 2026 14:10:29 +0200 +Subject: net: dsa: realtek: rtl8365mb: add support for RTL8367SB + +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 +Signed-off-by: Mieczyslaw Nalewaj +Link: https://patch.msgid.link/3c6d822b-0e85-4173-86ba-2badb140bbf1@yahoo.com +Signed-off-by: Jakub Kicinski +--- + drivers/net/dsa/realtek/rtl8365mb.c | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +--- a/drivers/net/dsa/realtek/rtl8365mb.c ++++ b/drivers/net/dsa/realtek/rtl8365mb.c +@@ -545,6 +545,20 @@ static const struct rtl8365mb_chip_info + .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, + .chip_ver = 0x0020,