xref: /linux/drivers/net/dsa/microchip/Kconfig (revision 9410645520e9b820069761f3450ef6661418e279)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig NET_DSA_MICROCHIP_KSZ_COMMON
3	tristate "Microchip KSZ8XXX/KSZ9XXX/LAN937X series switch support"
4	depends on NET_DSA
5	select NET_DSA_TAG_KSZ
6	select NET_DSA_TAG_NONE
7	select NET_IEEE8021Q_HELPERS
8	select DCB
9	help
10	  This driver adds support for Microchip KSZ8, KSZ9 and
11	  LAN937X series switch chips, being KSZ8863/8873,
12	  KSZ8895/8864, KSZ8794/8795/8765,
13	  KSZ9477/9897/9896/9567/8567, KSZ9893/9563/8563 and
14	  LAN9370/9371/9372/9373/9374.
15
16config NET_DSA_MICROCHIP_KSZ9477_I2C
17	tristate "KSZ series I2C connected switch driver"
18	depends on NET_DSA_MICROCHIP_KSZ_COMMON && I2C
19	select REGMAP_I2C
20	help
21	  Select to enable support for registering switches configured through I2C.
22
23config NET_DSA_MICROCHIP_KSZ_SPI
24	tristate "KSZ series SPI connected switch driver"
25	depends on NET_DSA_MICROCHIP_KSZ_COMMON && SPI
26	select REGMAP_SPI
27	help
28	  Select to enable support for registering switches configured through SPI.
29
30config NET_DSA_MICROCHIP_KSZ_PTP
31	bool "Support for the PTP clock on the KSZ9563/LAN937x Ethernet Switch"
32	depends on NET_DSA_MICROCHIP_KSZ_COMMON && PTP_1588_CLOCK
33	depends on NET_DSA_MICROCHIP_KSZ_COMMON=m || PTP_1588_CLOCK=y
34	help
35	  Select to enable support for timestamping & PTP clock manipulation in
36	  KSZ8563/KSZ9563/LAN937x series of switches. KSZ9563/KSZ8563 supports
37	  only one step timestamping. LAN937x switch supports both one step and
38	  two step timestamping.
39
40config NET_DSA_MICROCHIP_KSZ8863_SMI
41	tristate "KSZ series SMI connected switch driver"
42	depends on NET_DSA_MICROCHIP_KSZ_COMMON
43	select MDIO_BITBANG
44	help
45	  Select to enable support for registering switches configured through
46	  Microchip SMI. It supports the KSZ8863 and KSZ8873 switch.
47