Skip to content
Permalink
Browse files
net: dsa: add Realtek RTL8366S switch driver
Support Realtek RTL8366S/SR switch

Signed-off-by: DENG Qingfang <dqfext@gmail.com>
  • Loading branch information
LGA1150 authored and intel-lab-lkp committed Feb 17, 2021
1 parent 7450c55 commit 3cd6e7f27c49d9e06810a3ee0b03fbb6f20a40b9
Show file tree
Hide file tree
Showing 5 changed files with 1,169 additions and 3 deletions.
@@ -75,6 +75,7 @@ config NET_DSA_REALTEK_SMI
tristate "Realtek SMI Ethernet switch family support"
depends on NET_DSA
select NET_DSA_TAG_RTL4_A
select NET_DSA_TAG_RTL8366S
select FIXED_PHY
select IRQ_DOMAIN
select REALTEK_PHY
@@ -10,7 +10,7 @@ obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o
obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o
obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek-smi.o
realtek-smi-objs := realtek-smi-core.o rtl8366.o rtl8366rb.o
realtek-smi-objs := realtek-smi-core.o rtl8366.o rtl8366rb.o rtl8366s.o
obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o
obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o
obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o
@@ -480,9 +480,8 @@ static const struct of_device_id realtek_smi_of_match[] = {
.data = &rtl8366rb_variant,
},
{
/* FIXME: add support for RTL8366S and more */
.compatible = "realtek,rtl8366s",
.data = NULL,
.data = &rtl8366s_variant,
},
{ /* sentinel */ },
};
@@ -143,5 +143,6 @@ int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset);
void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);

extern const struct realtek_smi_variant rtl8366rb_variant;
extern const struct realtek_smi_variant rtl8366s_variant;

#endif /* _REALTEK_SMI_H */

0 comments on commit 3cd6e7f

Please sign in to comment.