xref: /openbmc/linux/drivers/net/dsa/Kconfig (revision b9b05381)
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	imply 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	help
106	  This enables support for the Microchip LAN9303/LAN9354 3 port ethernet
107	  switch chips.
108
109config NET_DSA_SMSC_LAN9303_I2C
110	tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in I2C managed mode"
111	depends on I2C
112	depends on VLAN_8021Q || VLAN_8021Q=n
113	select NET_DSA_SMSC_LAN9303
114	select REGMAP_I2C
115	help
116	  Enable access functions if the SMSC/Microchip LAN9303 is configured
117	  for I2C managed mode.
118
119config NET_DSA_SMSC_LAN9303_MDIO
120	tristate "Microchip LAN9303/LAN9354 3-ports 10/100 ethernet switch in MDIO managed mode"
121	select NET_DSA_SMSC_LAN9303
122	depends on VLAN_8021Q || VLAN_8021Q=n
123	help
124	  Enable access functions if the Microchip LAN9303/LAN9354 is configured
125	  for MDIO managed mode.
126
127config NET_DSA_VITESSE_VSC73XX
128	tristate
129	select NET_DSA_TAG_NONE
130	select FIXED_PHY
131	select VITESSE_PHY
132	select GPIOLIB
133	help
134	  This enables support for the Vitesse VSC7385, VSC7388,
135	  VSC7395 and VSC7398 SparX integrated ethernet switches.
136
137config NET_DSA_VITESSE_VSC73XX_SPI
138	tristate "Vitesse VSC7385/7388/7395/7398 SPI mode support"
139	depends on SPI
140	select NET_DSA_VITESSE_VSC73XX
141	help
142	  This enables support for the Vitesse VSC7385, VSC7388, VSC7395
143	  and VSC7398 SparX integrated ethernet switches in SPI managed mode.
144
145config NET_DSA_VITESSE_VSC73XX_PLATFORM
146	tristate "Vitesse VSC7385/7388/7395/7398 Platform mode support"
147	depends on HAS_IOMEM
148	select NET_DSA_VITESSE_VSC73XX
149	help
150	  This enables support for the Vitesse VSC7385, VSC7388, VSC7395
151	  and VSC7398 SparX integrated ethernet switches, connected over
152	  a CPU-attached address bus and work in memory-mapped I/O mode.
153endmenu
154