xref: /linux/drivers/net/phy/mediatek/Kconfig (revision 26948c2430412b667fcc2302dcff15ca45b3cd52)
14c452f7eSSkyLake.Huang# SPDX-License-Identifier: GPL-2.0-only
2*26948c24SSky Huangconfig MEDIATEK_2P5GE_PHY
3*26948c24SSky Huang	tristate "MediaTek 2.5Gb Ethernet PHYs"
4*26948c24SSky Huang	depends on (ARM64 && ARCH_MEDIATEK) || COMPILE_TEST
5*26948c24SSky Huang	select MTK_NET_PHYLIB
6*26948c24SSky Huang	help
7*26948c24SSky Huang	  Supports MediaTek SoC built-in 2.5Gb Ethernet PHYs.
8*26948c24SSky Huang
9*26948c24SSky Huang	  This will load necessary firmware and add appropriate time delay.
10*26948c24SSky Huang	  Accelerate this procedure through internal pbus instead of MDIO
11*26948c24SSky Huang	  bus. Certain link-up issues will also be fixed here.
12*26948c24SSky Huang
134c452f7eSSkyLake.Huangconfig MEDIATEK_GE_PHY
144c452f7eSSkyLake.Huang	tristate "MediaTek Gigabit Ethernet PHYs"
153cb1a3c9SSkyLake.Huang	select MTK_NET_PHYLIB
164c452f7eSSkyLake.Huang	help
174c452f7eSSkyLake.Huang	  Supports the MediaTek non-built-in Gigabit Ethernet PHYs.
184c452f7eSSkyLake.Huang
194c452f7eSSkyLake.Huang	  Non-built-in Gigabit Ethernet PHYs include mt7530/mt7531.
204c452f7eSSkyLake.Huang	  You may find mt7530 inside mt7621. This driver shares some
214c452f7eSSkyLake.Huang	  common operations with MediaTek SoC built-in Gigabit
224c452f7eSSkyLake.Huang	  Ethernet PHYs.
234c452f7eSSkyLake.Huang
244c452f7eSSkyLake.Huangconfig MEDIATEK_GE_SOC_PHY
254c452f7eSSkyLake.Huang	tristate "MediaTek SoC Ethernet PHYs"
266a325aedSChristian Marangi	depends on ARM64 || COMPILE_TEST
276a325aedSChristian Marangi	depends on ARCH_AIROHA || (ARCH_MEDIATEK && NVMEM_MTK_EFUSE) || \
286a325aedSChristian Marangi		   COMPILE_TEST
297f9c320cSSkyLake.Huang	select MTK_NET_PHYLIB
304c452f7eSSkyLake.Huang	help
314c452f7eSSkyLake.Huang	  Supports MediaTek SoC built-in Gigabit Ethernet PHYs.
324c452f7eSSkyLake.Huang
334c452f7eSSkyLake.Huang	  Include support for built-in Ethernet PHYs which are present in
344c452f7eSSkyLake.Huang	  the MT7981 and MT7988 SoCs. These PHYs need calibration data
354c452f7eSSkyLake.Huang	  present in the SoCs efuse and will dynamically calibrate VCM
364c452f7eSSkyLake.Huang	  (common-mode voltage) during startup.
376d243c80SSky Huang
386d243c80SSky Huangconfig MTK_NET_PHYLIB
396d243c80SSky Huang	tristate
40