xref: /openbmc/linux/drivers/net/dsa/Kconfig (revision f4356947)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "Distributed Switch Architecture drivers"
3	depends on NET_DSA
4
5source "drivers/net/dsa/b53/Kconfig"
6
7config NET_DSA_BCM_SF2
8	tristate "Broadcom Starfighter 2 Ethernet switch support"
9	depends on HAS_IOMEM
10	select NET_DSA_TAG_BRCM
11	select FIXED_PHY
12	select BCM7XXX_PHY
13	select MDIO_BCM_UNIMAC
14	select B53
15	help
16	  This enables support for the Broadcom Starfighter 2 Ethernet
17	  switch chips.
18
19config NET_DSA_LOOP
20	tristate "DSA mock-up Ethernet switch chip support"
21	select NET_DSA_TAG_NONE
22	select FIXED_PHY
23	help
24	  This enables support for a fake mock-up switch chip which
25	  exercises the DSA APIs.
26
27source "drivers/net/dsa/hirschmann/Kconfig"
28
29config NET_DSA_LANTIQ_GSWIP
30	tristate "Lantiq / Intel GSWIP"
31	depends on HAS_IOMEM
32	select NET_DSA_TAG_GSWIP
33	help
34	  This enables support for the Lantiq / Intel GSWIP 2.1 found in
35	  the xrx200 / VR9 SoC.
36
37config NET_DSA_MT7530
38	tristate "MediaTek MT7530 and MT7531 Ethernet switch support"
39	select NET_DSA_TAG_MTK
40	select MEDIATEK_GE_PHY
41	imply NET_DSA_MT7530_MDIO
42	imply NET_DSA_MT7530_MMIO
43	help
44	  This enables support for the MediaTek MT7530 and MT7531 Ethernet
45	  switch chips. Multi-chip module MT7530 in MT7621AT, MT7621DAT,
46	  MT7621ST and MT7623AI SoCs, and built-in switch in MT7988 SoC are
47	  supported as well.
48
49config NET_DSA_MT7530_MDIO
50	tristate "MediaTek MT7530 MDIO interface driver"
51	depends on NET_DSA_MT7530
52	select PCS_MTK_LYNXI
53	help
54	  This enables support for the MediaTek MT7530 and MT7531 switch
55	  chips which are connected via MDIO, as well as multi-chip
56	  module MT7530 which can be found in the MT7621AT, MT7621DAT,
57	  MT7621ST and MT7623AI SoCs.
58
59config NET_DSA_MT7530_MMIO
60	tristate "MediaTek MT7530 MMIO interface driver"
61	depends on NET_DSA_MT7530
62	depends on HAS_IOMEM
63	help
64	  This enables support for the built-in Ethernet switch found
65	  in the MediaTek MT7988 SoC.
66	  The switch is a similar design as MT7531, but the switch registers
67	  are directly mapped into the SoCs register space rather than being
68	  accessible via MDIO.
69
70config NET_DSA_MV88E6060
71	tristate "Marvell 88E6060 ethernet switch chip support"
72	select NET_DSA_TAG_TRAILER
73	help
74	  This enables support for the Marvell 88E6060 ethernet switch
75	  chip.
76
77source "drivers/net/dsa/microchip/Kconfig"
78
79source "drivers/net/dsa/mv88e6xxx/Kconfig"
80
81source "drivers/net/dsa/ocelot/Kconfig"
82
83source "drivers/net/dsa/qca/Kconfig"
84
85source "drivers/net/dsa/sja1105/Kconfig"
86
87source "drivers/net/dsa/xrs700x/Kconfig"
88
89source "drivers/net/dsa/realtek/Kconfig"
90
91config NET_DSA_RZN1_A5PSW
92	tristate "Renesas RZ/N1 A5PSW Ethernet switch support"
93	depends on OF && ARCH_RZN1
94	select NET_DSA_TAG_RZN1_A5PSW
95	select PCS_RZN1_MIIC
96	help
97	  This driver supports the A5PSW switch, which is embedded in Renesas
98	  RZ/N1 SoC.
99
100config NET_DSA_SMSC_LAN9303
101	tristate
102	select NET_DSA_TAG_LAN9303
103	select REGMAP
104	help
105	  This enables support for the Microchip LAN9303/LAN9354 3 port ethernet
106	  switch chips.
107
108config NET_DSA_SMSC_LAN9303_I2C
109	tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in I2C managed mode"
110	depends on I2C
111	depends on VLAN_8021Q || VLAN_8021Q=n
112	select NET_DSA_SMSC_LAN9303
113	select REGMAP_I2C
114	help
115	  Enable access functions if the SMSC/Microchip LAN9303 is configured
116	  for I2C managed mode.
117
118config NET_DSA_SMSC_LAN9303_MDIO
119	tristate "Microchip LAN9303/LAN9354 3-ports 10/100 ethernet switch in MDIO managed mode"
120	select NET_DSA_SMSC_LAN9303
121	depends on VLAN_8021Q || VLAN_8021Q=n
122	help
123	  Enable access functions if the Microchip LAN9303/LAN9354 is configured
124	  for MDIO managed mode.
125
126config NET_DSA_VITESSE_VSC73XX
127	tristate
128	select NET_DSA_TAG_NONE
129	select FIXED_PHY
130	select VITESSE_PHY
131	select GPIOLIB
132	help
133	  This enables support for the Vitesse VSC7385, VSC7388,
134	  VSC7395 and VSC7398 SparX integrated ethernet switches.
135
136config NET_DSA_VITESSE_VSC73XX_SPI
137	tristate "Vitesse VSC7385/7388/7395/7398 SPI mode support"
138	depends on SPI
139	select NET_DSA_VITESSE_VSC73XX
140	help
141	  This enables support for the Vitesse VSC7385, VSC7388, VSC7395
142	  and VSC7398 SparX integrated ethernet switches in SPI managed mode.
143
144config NET_DSA_VITESSE_VSC73XX_PLATFORM
145	tristate "Vitesse VSC7385/7388/7395/7398 Platform mode support"
146	depends on HAS_IOMEM
147	select NET_DSA_VITESSE_VSC73XX
148	help
149	  This enables support for the Vitesse VSC7385, VSC7388, VSC7395
150	  and VSC7398 SparX integrated ethernet switches, connected over
151	  a CPU-attached address bus and work in memory-mapped I/O mode.
152endmenu
153