xref: /openbmc/linux/drivers/net/dsa/microchip/Kconfig (revision db66795f)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig NET_DSA_MICROCHIP_KSZ_COMMON
3	tristate "Microchip KSZ8795/KSZ9477/LAN937x series switch support"
4	depends on NET_DSA
5	select NET_DSA_TAG_KSZ
6	select NET_DSA_TAG_NONE
7	help
8	  This driver adds support for Microchip KSZ9477 series switch and
9	  KSZ8795/KSZ88x3 switch chips.
10
11config NET_DSA_MICROCHIP_KSZ9477_I2C
12	tristate "KSZ series I2C connected switch driver"
13	depends on NET_DSA_MICROCHIP_KSZ_COMMON && I2C
14	select REGMAP_I2C
15	help
16	  Select to enable support for registering switches configured through I2C.
17
18config NET_DSA_MICROCHIP_KSZ_SPI
19	tristate "KSZ series SPI connected switch driver"
20	depends on NET_DSA_MICROCHIP_KSZ_COMMON && SPI
21	select REGMAP_SPI
22	help
23	  Select to enable support for registering switches configured through SPI.
24
25config NET_DSA_MICROCHIP_KSZ_PTP
26	bool "Support for the PTP clock on the KSZ9563/LAN937x Ethernet Switch"
27	depends on NET_DSA_MICROCHIP_KSZ_COMMON && PTP_1588_CLOCK
28	depends on NET_DSA_MICROCHIP_KSZ_COMMON=m || PTP_1588_CLOCK=y
29	help
30	  Select to enable support for timestamping & PTP clock manipulation in
31	  KSZ8563/KSZ9563/LAN937x series of switches. KSZ9563/KSZ8563 supports
32	  only one step timestamping. LAN937x switch supports both one step and
33	  two step timestamping.
34
35config NET_DSA_MICROCHIP_KSZ8863_SMI
36	tristate "KSZ series SMI connected switch driver"
37	depends on NET_DSA_MICROCHIP_KSZ_COMMON
38	select MDIO_BITBANG
39	help
40	  Select to enable support for registering switches configured through
41	  Microchip SMI. It supports the KSZ8863 and KSZ8873 switch.
42