xref: /openbmc/linux/drivers/net/dsa/microchip/Kconfig (revision 562c6548)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
207bca160SArun Ramadossmenuconfig NET_DSA_MICROCHIP_KSZ_COMMON
355ab6ffaSArun Ramadoss	tristate "Microchip KSZ8795/KSZ9477/LAN937x series switch support"
4b987e98eSWoojung Huh	depends on NET_DSA
507bca160SArun Ramadoss	select NET_DSA_TAG_KSZ
6d2be3204SVladimir Oltean	select NET_DSA_TAG_NONE
7b987e98eSWoojung Huh	help
807bca160SArun Ramadoss	  This driver adds support for Microchip KSZ9477 series switch and
907bca160SArun Ramadoss	  KSZ8795/KSZ88x3 switch chips.
10b987e98eSWoojung Huh
1120e03777STristram Haconfig NET_DSA_MICROCHIP_KSZ9477_I2C
124658f2feSArun Ramadoss	tristate "KSZ series I2C connected switch driver"
1307bca160SArun Ramadoss	depends on NET_DSA_MICROCHIP_KSZ_COMMON && I2C
1420e03777STristram Ha	select REGMAP_I2C
1520e03777STristram Ha	help
1620e03777STristram Ha	  Select to enable support for registering switches configured through I2C.
1720e03777STristram Ha
184658f2feSArun Ramadossconfig NET_DSA_MICROCHIP_KSZ_SPI
194658f2feSArun Ramadoss	tristate "KSZ series SPI connected switch driver"
2007bca160SArun Ramadoss	depends on NET_DSA_MICROCHIP_KSZ_COMMON && SPI
2146558d60SMarek Vasut	select REGMAP_SPI
22b987e98eSWoojung Huh	help
23b987e98eSWoojung Huh	  Select to enable support for registering switches configured through SPI.
24e66f840cSTristram Ha
25eac1ea20SChristian Eggersconfig NET_DSA_MICROCHIP_KSZ_PTP
26eac1ea20SChristian Eggers	bool "Support for the PTP clock on the KSZ9563/LAN937x Ethernet Switch"
27eac1ea20SChristian Eggers	depends on NET_DSA_MICROCHIP_KSZ_COMMON && PTP_1588_CLOCK
28*562c6548SArnd Bergmann	depends on NET_DSA_MICROCHIP_KSZ_COMMON=m || PTP_1588_CLOCK=y
29eac1ea20SChristian Eggers	help
30eac1ea20SChristian Eggers	  Select to enable support for timestamping & PTP clock manipulation in
31eac1ea20SChristian Eggers	  KSZ8563/KSZ9563/LAN937x series of switches. KSZ9563/KSZ8563 supports
32eac1ea20SChristian Eggers	  only one step timestamping. LAN937x switch supports both one step and
33eac1ea20SChristian Eggers	  two step timestamping.
34eac1ea20SChristian Eggers
3560a36476SMichael Grzeschikconfig NET_DSA_MICROCHIP_KSZ8863_SMI
3660a36476SMichael Grzeschik	tristate "KSZ series SMI connected switch driver"
3707bca160SArun Ramadoss	depends on NET_DSA_MICROCHIP_KSZ_COMMON
3860a36476SMichael Grzeschik	select MDIO_BITBANG
3960a36476SMichael Grzeschik	help
4060a36476SMichael Grzeschik	  Select to enable support for registering switches configured through
4160a36476SMichael Grzeschik	  Microchip SMI. It supports the KSZ8863 and KSZ8873 switch.
42