summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>2022-01-28 09:05:07 +0300
committerDavid S. Miller <davem@davemloft.net>2022-01-28 18:02:49 +0300
commit84a10aecdcc013b390547d0b84c75eefb84bf828 (patch)
treee7a2c380cfe9f3dce482cc0a92ddee90e47c3dd2 /drivers
parentd40f607c181f5f6282fe6c10eb2c0544f551cf7d (diff)
downloadlinux-84a10aecdcc013b390547d0b84c75eefb84bf828.tar.xz
net: dsa: realtek: rtl8365mb: add RTL8367RB-VB support
RTL8367RB-VB is a 5+2 port 10/100/1000M Ethernet switch. It is similar to RTL8367S but in this version, both external interfaces are RGMII. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/realtek/rtl8365mb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/dsa/realtek/rtl8365mb.c b/drivers/net/dsa/realtek/rtl8365mb.c
index 6974decf5ebe..174496e4d736 100644
--- a/drivers/net/dsa/realtek/rtl8365mb.c
+++ b/drivers/net/dsa/realtek/rtl8365mb.c
@@ -108,6 +108,9 @@
#define RTL8365MB_CHIP_ID_8367S 0x6367
#define RTL8365MB_CHIP_VER_8367S 0x00A0
+#define RTL8365MB_CHIP_ID_8367RB 0x6367
+#define RTL8365MB_CHIP_VER_8367RB 0x0020
+
/* Family-specific data and limits */
#define RTL8365MB_PHYADDRMAX 7
#define RTL8365MB_NUM_PHYREGS 32
@@ -1979,6 +1982,11 @@ static int rtl8365mb_detect(struct realtek_priv *priv)
"found an RTL8365MB-VC switch (ver=0x%04x)\n",
chip_ver);
break;
+ case RTL8365MB_CHIP_VER_8367RB:
+ dev_info(priv->dev,
+ "found an RTL8367RB-VB switch (ver=0x%04x)\n",
+ chip_ver);
+ break;
case RTL8365MB_CHIP_VER_8367S:
dev_info(priv->dev,
"found an RTL8367S switch (ver=0x%04x)\n",