162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Phy drivers for Mediatek devices
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ciconfig PHY_MTK_PCIE
662306a36Sopenharmony_ci	tristate "MediaTek PCIe-PHY Driver"
762306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
862306a36Sopenharmony_ci	depends on OF
962306a36Sopenharmony_ci	select GENERIC_PHY
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  Say 'Y' here to add support for MediaTek PCIe PHY driver.
1262306a36Sopenharmony_ci	  This driver create the basic PHY instance and provides initialize
1362306a36Sopenharmony_ci	  callback for PCIe GEN3 port, it supports software efuse
1462306a36Sopenharmony_ci	  initialization.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciconfig PHY_MTK_TPHY
1762306a36Sopenharmony_ci	tristate "MediaTek T-PHY Driver"
1862306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
1962306a36Sopenharmony_ci	depends on OF && OF_ADDRESS
2062306a36Sopenharmony_ci	depends on HAS_IOMEM
2162306a36Sopenharmony_ci	select GENERIC_PHY
2262306a36Sopenharmony_ci	help
2362306a36Sopenharmony_ci	  Say 'Y' here to add support for MediaTek T-PHY driver,
2462306a36Sopenharmony_ci	  it supports multiple usb2.0, usb3.0 ports, PCIe and
2562306a36Sopenharmony_ci	  SATA, and meanwhile supports two version T-PHY which have
2662306a36Sopenharmony_ci	  different banks layout, the T-PHY with shared banks between
2762306a36Sopenharmony_ci	  multi-ports is first version, otherwise is second version,
2862306a36Sopenharmony_ci	  so you can easily distinguish them by banks layout.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciconfig PHY_MTK_UFS
3162306a36Sopenharmony_ci	tristate "MediaTek UFS M-PHY driver"
3262306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
3362306a36Sopenharmony_ci	depends on OF
3462306a36Sopenharmony_ci	select GENERIC_PHY
3562306a36Sopenharmony_ci	help
3662306a36Sopenharmony_ci	  Support for UFS M-PHY on MediaTek chipsets.
3762306a36Sopenharmony_ci	  Enable this to provide vendor-specific probing,
3862306a36Sopenharmony_ci	  initialization, power on and power off flow of
3962306a36Sopenharmony_ci	  specified M-PHYs.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciconfig PHY_MTK_XSPHY
4262306a36Sopenharmony_ci	tristate "MediaTek XS-PHY Driver"
4362306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
4462306a36Sopenharmony_ci	depends on OF && OF_ADDRESS
4562306a36Sopenharmony_ci	depends on HAS_IOMEM
4662306a36Sopenharmony_ci	select GENERIC_PHY
4762306a36Sopenharmony_ci	help
4862306a36Sopenharmony_ci	  Enable this to support the SuperSpeedPlus XS-PHY transceiver for
4962306a36Sopenharmony_ci	  USB3.1 GEN2 controllers on MediaTek chips. The driver supports
5062306a36Sopenharmony_ci	  multiple USB2.0, USB3.1 GEN2 ports.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciconfig PHY_MTK_HDMI
5362306a36Sopenharmony_ci	tristate "MediaTek HDMI-PHY Driver"
5462306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
5562306a36Sopenharmony_ci	depends on COMMON_CLK
5662306a36Sopenharmony_ci	depends on OF
5762306a36Sopenharmony_ci	select GENERIC_PHY
5862306a36Sopenharmony_ci	help
5962306a36Sopenharmony_ci	  Support HDMI PHY for Mediatek SoCs.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ciconfig PHY_MTK_MIPI_DSI
6262306a36Sopenharmony_ci	tristate "MediaTek MIPI-DSI Driver"
6362306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
6462306a36Sopenharmony_ci	depends on COMMON_CLK
6562306a36Sopenharmony_ci	depends on OF
6662306a36Sopenharmony_ci	select GENERIC_PHY
6762306a36Sopenharmony_ci	help
6862306a36Sopenharmony_ci	  Support MIPI DSI for Mediatek SoCs.
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ciconfig PHY_MTK_DP
7162306a36Sopenharmony_ci	tristate "MediaTek DP-PHY Driver"
7262306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
7362306a36Sopenharmony_ci	depends on OF
7462306a36Sopenharmony_ci	select GENERIC_PHY
7562306a36Sopenharmony_ci	help
7662306a36Sopenharmony_ci	  Support DisplayPort PHY for MediaTek SoCs.
77