Skip to content

Commit b987e98

Browse files
WoojungHuhdavem330
authored andcommitted
dsa: add DSA switch driver for Microchip KSZ9477
The KSZ9477 is a fully integrated layer 2, managed, 7 ports GigE switch with numerous advanced features. 5 ports incorporate 10/100/1000 Mbps PHYs. The other 2 ports have interfaces that can be configured as SGMII, RGMII, MII or RMII. Either of these may connect directly to a host processor or to an external PHY. The SGMII port may interface to a fiber optic transceiver. This driver currently supports vlan, fdb, mdb & mirror dsa switch operations. Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Woojung Huh <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fc3973a commit b987e98

File tree

9 files changed

+3427
-0
lines changed

9 files changed

+3427
-0
lines changed

drivers/net/dsa/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ config NET_DSA_MV88E6060
3939
This enables support for the Marvell 88E6060 ethernet switch
4040
chip.
4141

42+
source "drivers/net/dsa/microchip/Kconfig"
43+
4244
source "drivers/net/dsa/mv88e6xxx/Kconfig"
4345

4446
config NET_DSA_QCA8K

drivers/net/dsa/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o
88
obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o
99
obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o
1010
obj-y += b53/
11+
obj-y += microchip/
1112
obj-y += mv88e6xxx/

drivers/net/dsa/microchip/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
menuconfig MICROCHIP_KSZ
2+
tristate "Microchip KSZ series switch support"
3+
depends on NET_DSA
4+
select NET_DSA_TAG_KSZ
5+
help
6+
This driver adds support for Microchip KSZ switch chips.
7+
8+
config MICROCHIP_KSZ_SPI_DRIVER
9+
tristate "KSZ series SPI connected switch driver"
10+
depends on MICROCHIP_KSZ && SPI
11+
help
12+
Select to enable support for registering switches configured through SPI.

drivers/net/dsa/microchip/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj-$(CONFIG_MICROCHIP_KSZ) += ksz_common.o
2+
obj-$(CONFIG_MICROCHIP_KSZ_SPI_DRIVER) += ksz_spi.o

0 commit comments

Comments
 (0)