xref: /linux/drivers/net/phy/mediatek/Kconfig (revision 91ec2035134982b98fab0609a9fd8480e8217dc1)
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
24*c9c23577SJoris Vaisvilaconfig MEDIATEK_FE_SOC_PHY
25*c9c23577SJoris Vaisvila	tristate "MediaTek SoC Fast Ethernet PHYs"
26*c9c23577SJoris Vaisvila	depends on SOC_MT7620 || COMPILE_TEST
27*c9c23577SJoris Vaisvila	help
28*c9c23577SJoris Vaisvila	  Support for MediaTek MT7628 built-in Fast Ethernet PHYs.
29*c9c23577SJoris Vaisvila	  This driver only sets an initialization bit required for the PHY
30*c9c23577SJoris Vaisvila	  to establish 100 Mbps links. All other PHY operations are handled
31*c9c23577SJoris Vaisvila	  by the kernel's generic PHY code.
32*c9c23577SJoris Vaisvila
334c452f7eSSkyLake.Huangconfig MEDIATEK_GE_SOC_PHY
34*c9c23577SJoris Vaisvila	tristate "MediaTek SoC Gigabit Ethernet PHYs"
35b6e2649fSAhmed Naseef	depends on ARM64 || ECONET || COMPILE_TEST
366a325aedSChristian Marangi	depends on ARCH_AIROHA || (ARCH_MEDIATEK && NVMEM_MTK_EFUSE) || \
37b6e2649fSAhmed Naseef		   ECONET || COMPILE_TEST
387f9c320cSSkyLake.Huang	select MTK_NET_PHYLIB
397d573869SHeiner Kallweit	select PHY_PACKAGE
404c452f7eSSkyLake.Huang	help
414c452f7eSSkyLake.Huang	  Supports MediaTek SoC built-in Gigabit Ethernet PHYs.
424c452f7eSSkyLake.Huang
434c452f7eSSkyLake.Huang	  Include support for built-in Ethernet PHYs which are present in
444c452f7eSSkyLake.Huang	  the MT7981 and MT7988 SoCs. These PHYs need calibration data
454c452f7eSSkyLake.Huang	  present in the SoCs efuse and will dynamically calibrate VCM
464c452f7eSSkyLake.Huang	  (common-mode voltage) during startup.
476d243c80SSky Huang
48b6e2649fSAhmed Naseef	  Also include support for the built-in Gigabit Ethernet PHYs of
49b6e2649fSAhmed Naseef	  the Airoha AN7581 and AN7583 SoCs and of the EcoNet EN7528 SoC,
50b6e2649fSAhmed Naseef	  which need no efuse calibration data.
51b6e2649fSAhmed Naseef
526d243c80SSky Huangconfig MTK_NET_PHYLIB
536d243c80SSky Huang	tristate
54