xref: /linux/drivers/net/phy/mediatek/Kconfig (revision 8be4d31cb8aaeea27bde4b7ddb26e28a89062ebf)
14c452f7eSSkyLake.Huang# SPDX-License-Identifier: GPL-2.0-only
226948c24SSky Huangconfig MEDIATEK_2P5GE_PHY
326948c24SSky Huang	tristate "MediaTek 2.5Gb Ethernet PHYs"
426948c24SSky Huang	depends on (ARM64 && ARCH_MEDIATEK) || COMPILE_TEST
526948c24SSky Huang	select MTK_NET_PHYLIB
626948c24SSky Huang	help
726948c24SSky Huang	  Supports MediaTek SoC built-in 2.5Gb Ethernet PHYs.
826948c24SSky Huang
926948c24SSky Huang	  This will load necessary firmware and add appropriate time delay.
1026948c24SSky Huang	  Accelerate this procedure through internal pbus instead of MDIO
1126948c24SSky Huang	  bus. Certain link-up issues will also be fixed here.
1226948c24SSky 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
30*7d573869SHeiner Kallweit	select PHY_PACKAGE
314c452f7eSSkyLake.Huang	help
324c452f7eSSkyLake.Huang	  Supports MediaTek SoC built-in Gigabit Ethernet PHYs.
334c452f7eSSkyLake.Huang
344c452f7eSSkyLake.Huang	  Include support for built-in Ethernet PHYs which are present in
354c452f7eSSkyLake.Huang	  the MT7981 and MT7988 SoCs. These PHYs need calibration data
364c452f7eSSkyLake.Huang	  present in the SoCs efuse and will dynamically calibrate VCM
374c452f7eSSkyLake.Huang	  (common-mode voltage) during startup.
386d243c80SSky Huang
396d243c80SSky Huangconfig MTK_NET_PHYLIB
406d243c80SSky Huang	tristate
41