xref: /openbmc/linux/drivers/net/dsa/microchip/Kconfig (revision eac1ea20)
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
14*eac1ea20SChristian Eggers	depends on PTP_1588_CLOCK_OPTIONAL
1520e03777STristram Ha	select REGMAP_I2C
1620e03777STristram Ha	help
1720e03777STristram Ha	  Select to enable support for registering switches configured through I2C.
1820e03777STristram Ha
194658f2feSArun Ramadossconfig NET_DSA_MICROCHIP_KSZ_SPI
204658f2feSArun Ramadoss	tristate "KSZ series SPI connected switch driver"
2107bca160SArun Ramadoss	depends on NET_DSA_MICROCHIP_KSZ_COMMON && SPI
22*eac1ea20SChristian Eggers	depends on PTP_1588_CLOCK_OPTIONAL
2346558d60SMarek Vasut	select REGMAP_SPI
24b987e98eSWoojung Huh	help
25b987e98eSWoojung Huh	  Select to enable support for registering switches configured through SPI.
26e66f840cSTristram Ha
27*eac1ea20SChristian Eggersconfig NET_DSA_MICROCHIP_KSZ_PTP
28*eac1ea20SChristian Eggers	bool "Support for the PTP clock on the KSZ9563/LAN937x Ethernet Switch"
29*eac1ea20SChristian Eggers	depends on NET_DSA_MICROCHIP_KSZ_COMMON && PTP_1588_CLOCK
30*eac1ea20SChristian Eggers	help
31*eac1ea20SChristian Eggers	  Select to enable support for timestamping & PTP clock manipulation in
32*eac1ea20SChristian Eggers	  KSZ8563/KSZ9563/LAN937x series of switches. KSZ9563/KSZ8563 supports
33*eac1ea20SChristian Eggers	  only one step timestamping. LAN937x switch supports both one step and
34*eac1ea20SChristian Eggers	  two step timestamping.
35*eac1ea20SChristian Eggers
3660a36476SMichael Grzeschikconfig NET_DSA_MICROCHIP_KSZ8863_SMI
3760a36476SMichael Grzeschik	tristate "KSZ series SMI connected switch driver"
3807bca160SArun Ramadoss	depends on NET_DSA_MICROCHIP_KSZ_COMMON
3960a36476SMichael Grzeschik	select MDIO_BITBANG
4060a36476SMichael Grzeschik	help
4160a36476SMichael Grzeschik	  Select to enable support for registering switches configured through
4260a36476SMichael Grzeschik	  Microchip SMI. It supports the KSZ8863 and KSZ8873 switch.
43