162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Phy drivers for TI platforms
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ciconfig PHY_DA8XX_USB
662306a36Sopenharmony_ci	tristate "TI DA8xx USB PHY Driver"
762306a36Sopenharmony_ci	depends on ARCH_DAVINCI_DA8XX || COMPILE_TEST
862306a36Sopenharmony_ci	select GENERIC_PHY
962306a36Sopenharmony_ci	select MFD_SYSCON
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  Enable this to support the USB PHY on DA8xx SoCs.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	  This driver controls both the USB 1.1 PHY and the USB 2.0 PHY.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciconfig PHY_DM816X_USB
1662306a36Sopenharmony_ci	tristate "TI dm816x USB PHY driver"
1762306a36Sopenharmony_ci	depends on ARCH_OMAP2PLUS || COMPILE_TEST
1862306a36Sopenharmony_ci	depends on USB_SUPPORT
1962306a36Sopenharmony_ci	select GENERIC_PHY
2062306a36Sopenharmony_ci	select USB_PHY
2162306a36Sopenharmony_ci	help
2262306a36Sopenharmony_ci	  Enable this for dm816x USB to work.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciconfig PHY_AM654_SERDES
2562306a36Sopenharmony_ci	tristate "TI AM654 SERDES support"
2662306a36Sopenharmony_ci	depends on OF && (ARCH_K3 || COMPILE_TEST)
2762306a36Sopenharmony_ci	depends on COMMON_CLK
2862306a36Sopenharmony_ci	select GENERIC_PHY
2962306a36Sopenharmony_ci	select MULTIPLEXER
3062306a36Sopenharmony_ci	select REGMAP_MMIO
3162306a36Sopenharmony_ci	select MUX_MMIO
3262306a36Sopenharmony_ci	help
3362306a36Sopenharmony_ci	  This option enables support for TI AM654 SerDes PHY used for
3462306a36Sopenharmony_ci	  PCIe.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciconfig PHY_J721E_WIZ
3762306a36Sopenharmony_ci	tristate "TI J721E WIZ (SERDES Wrapper) support"
3862306a36Sopenharmony_ci	depends on OF && (ARCH_K3 || COMPILE_TEST)
3962306a36Sopenharmony_ci	depends on HAS_IOMEM && OF_ADDRESS
4062306a36Sopenharmony_ci	depends on COMMON_CLK
4162306a36Sopenharmony_ci	select GENERIC_PHY
4262306a36Sopenharmony_ci	select MULTIPLEXER
4362306a36Sopenharmony_ci	select REGMAP_MMIO
4462306a36Sopenharmony_ci	select MUX_MMIO
4562306a36Sopenharmony_ci	help
4662306a36Sopenharmony_ci	  This option enables support for WIZ module present in TI's J721E
4762306a36Sopenharmony_ci	  SoC. WIZ is a serdes wrapper used to configure some of the input
4862306a36Sopenharmony_ci	  signals to the SERDES (Sierra/Torrent). This driver configures
4962306a36Sopenharmony_ci	  three clock selects (pll0, pll1, dig) and resets for each of the
5062306a36Sopenharmony_ci	  lanes.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciconfig OMAP_CONTROL_PHY
5362306a36Sopenharmony_ci	tristate "OMAP CONTROL PHY Driver"
5462306a36Sopenharmony_ci	depends on ARCH_OMAP2PLUS || COMPILE_TEST
5562306a36Sopenharmony_ci	help
5662306a36Sopenharmony_ci	  Enable this to add support for the PHY part present in the control
5762306a36Sopenharmony_ci	  module. This driver has API to power on the USB2 PHY and to write to
5862306a36Sopenharmony_ci	  the mailbox. The mailbox is present only in omap4 and the register to
5962306a36Sopenharmony_ci	  power on the USB2 PHY is present in OMAP4 and OMAP5. OMAP5 has an
6062306a36Sopenharmony_ci	  additional register to power on USB3 PHY/SATA PHY/PCIE PHY
6162306a36Sopenharmony_ci	  (PIPE3 PHY).
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ciconfig OMAP_USB2
6462306a36Sopenharmony_ci	tristate "OMAP USB2 PHY Driver"
6562306a36Sopenharmony_ci	depends on ARCH_OMAP2PLUS || ARCH_K3
6662306a36Sopenharmony_ci	depends on USB_SUPPORT
6762306a36Sopenharmony_ci	select GENERIC_PHY
6862306a36Sopenharmony_ci	select USB_PHY
6962306a36Sopenharmony_ci	select OMAP_CONTROL_PHY if ARCH_OMAP2PLUS || COMPILE_TEST
7062306a36Sopenharmony_ci	help
7162306a36Sopenharmony_ci	  Enable this to support the transceiver that is part of SOC. This
7262306a36Sopenharmony_ci	  driver takes care of all the PHY functionality apart from comparator.
7362306a36Sopenharmony_ci	  The USB OTG controller communicates with the comparator using this
7462306a36Sopenharmony_ci	  driver.
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ciconfig TI_PIPE3
7762306a36Sopenharmony_ci	tristate "TI PIPE3 PHY Driver"
7862306a36Sopenharmony_ci	depends on ARCH_OMAP2PLUS || COMPILE_TEST
7962306a36Sopenharmony_ci	select GENERIC_PHY
8062306a36Sopenharmony_ci	select OMAP_CONTROL_PHY
8162306a36Sopenharmony_ci	help
8262306a36Sopenharmony_ci	  Enable this to support the PIPE3 PHY that is part of TI SOCs. This
8362306a36Sopenharmony_ci	  driver takes care of all the PHY functionality apart from comparator.
8462306a36Sopenharmony_ci	  This driver interacts with the "OMAP Control PHY Driver" to power
8562306a36Sopenharmony_ci	  on/off the PHY.
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ciconfig PHY_TUSB1210
8862306a36Sopenharmony_ci	tristate "TI TUSB1210 ULPI PHY module"
8962306a36Sopenharmony_ci	depends on USB_ULPI_BUS
9062306a36Sopenharmony_ci	select GENERIC_PHY
9162306a36Sopenharmony_ci	help
9262306a36Sopenharmony_ci	  Support for TI TUSB1210 USB ULPI PHY.
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ciconfig TWL4030_USB
9562306a36Sopenharmony_ci	tristate "TWL4030 USB Transceiver Driver"
9662306a36Sopenharmony_ci	depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS
9762306a36Sopenharmony_ci	depends on USB_SUPPORT
9862306a36Sopenharmony_ci	depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't 'y'
9962306a36Sopenharmony_ci	select GENERIC_PHY
10062306a36Sopenharmony_ci	select USB_PHY
10162306a36Sopenharmony_ci	help
10262306a36Sopenharmony_ci	  Enable this to support the USB OTG transceiver on TWL4030
10362306a36Sopenharmony_ci	  family chips (including the TWL5030 and TPS659x0 devices).
10462306a36Sopenharmony_ci	  This transceiver supports high and full speed devices plus,
10562306a36Sopenharmony_ci	  in host mode, low speed.
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ciconfig PHY_TI_GMII_SEL
10862306a36Sopenharmony_ci	tristate
10962306a36Sopenharmony_ci	select GENERIC_PHY
11062306a36Sopenharmony_ci	select REGMAP
11162306a36Sopenharmony_ci	help
11262306a36Sopenharmony_ci	  This driver supports configuring of the TI CPSW Port mode depending on
11362306a36Sopenharmony_ci	  the Ethernet PHY connected to the CPSW Port.
114