xref: /linux/drivers/net/dsa/Kconfig (revision 6efc0ab3b05de0d7bab8ec0597214e4788251071)
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	imply NET_DSA_MT7530_MDIO
41	imply NET_DSA_MT7530_MMIO
42	help
43	  This enables support for the MediaTek MT7530 and MT7531 Ethernet
44	  switch chips. Multi-chip module MT7530 in MT7621AT, MT7621DAT,
45	  MT7621ST and MT7623AI SoCs, and built-in switch in MT7988 SoC are
46	  supported as well.
47
48config NET_DSA_MT7530_MDIO
49	tristate "MediaTek MT7530 MDIO interface driver"
50	depends on NET_DSA_MT7530
51	select MEDIATEK_GE_PHY
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	imply MEDIATEK_GE_SOC_PHY
64	help
65	  This enables support for the built-in Ethernet switch found
66	  in the MediaTek MT7988 SoC.
67	  The switch is a similar design as MT7531, but the switch registers
68	  are directly mapped into the SoCs register space rather than being
69	  accessible via MDIO.
70
71config NET_DSA_MV88E6060
72	tristate "Marvell 88E6060 ethernet switch chip support"
73	select NET_DSA_TAG_TRAILER
74	help
75	  This enables support for the Marvell 88E6060 ethernet switch
76	  chip.
77
78source "drivers/net/dsa/microchip/Kconfig"
79
80source "drivers/net/dsa/mv88e6xxx/Kconfig"
81
82source "drivers/net/dsa/ocelot/Kconfig"
83
84source "drivers/net/dsa/qca/Kconfig"
85
86source "drivers/net/dsa/sja1105/Kconfig"
87
88source "drivers/net/dsa/xrs700x/Kconfig"
89
90source "drivers/net/dsa/realtek/Kconfig"
91
92config NET_DSA_RZN1_A5PSW
93	tristate "Renesas RZ/N1 A5PSW Ethernet switch support"
94	depends on OF && ARCH_RZN1
95	select NET_DSA_TAG_RZN1_A5PSW
96	select PCS_RZN1_MIIC
97	help
98	  This driver supports the A5PSW switch, which is embedded in Renesas
99	  RZ/N1 SoC.
100
101config NET_DSA_SMSC_LAN9303
102	tristate
103	select NET_DSA_TAG_LAN9303
104	select REGMAP
105	imply SMSC_PHY
106	help
107	  This enables support for the Microchip LAN9303/LAN9354 3 port ethernet
108	  switch chips.
109
110config NET_DSA_SMSC_LAN9303_I2C
111	tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in I2C managed mode"
112	depends on I2C
113	depends on VLAN_8021Q || VLAN_8021Q=n
114	select NET_DSA_SMSC_LAN9303
115	select REGMAP_I2C
116	help
117	  Enable access functions if the SMSC/Microchip LAN9303 is configured
118	  for I2C managed mode.
119
120config NET_DSA_SMSC_LAN9303_MDIO
121	tristate "Microchip LAN9303/LAN9354 3-ports 10/100 ethernet switch in MDIO managed mode"
122	select NET_DSA_SMSC_LAN9303
123	depends on VLAN_8021Q || VLAN_8021Q=n
124	help
125	  Enable access functions if the Microchip LAN9303/LAN9354 is configured
126	  for MDIO managed mode.
127
128config NET_DSA_VITESSE_VSC73XX
129	tristate
130	select NET_DSA_TAG_VSC73XX_8021Q
131	select FIXED_PHY
132	select VITESSE_PHY
133	select GPIOLIB
134	help
135	  This enables support for the Vitesse VSC7385, VSC7388,
136	  VSC7395 and VSC7398 SparX integrated ethernet switches.
137
138config NET_DSA_VITESSE_VSC73XX_SPI
139	tristate "Vitesse VSC7385/7388/7395/7398 SPI mode support"
140	depends on SPI
141	select NET_DSA_VITESSE_VSC73XX
142	help
143	  This enables support for the Vitesse VSC7385, VSC7388, VSC7395
144	  and VSC7398 SparX integrated ethernet switches in SPI managed mode.
145
146config NET_DSA_VITESSE_VSC73XX_PLATFORM
147	tristate "Vitesse VSC7385/7388/7395/7398 Platform mode support"
148	depends on HAS_IOMEM
149	select NET_DSA_VITESSE_VSC73XX
150	help
151	  This enables support for the Vitesse VSC7385, VSC7388, VSC7395
152	  and VSC7398 SparX integrated ethernet switches, connected over
153	  a CPU-attached address bus and work in memory-mapped I/O mode.
154endmenu
155