18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Phy drivers for TI platforms
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ciconfig PHY_DA8XX_USB
68c2ecf20Sopenharmony_ci	tristate "TI DA8xx USB PHY Driver"
78c2ecf20Sopenharmony_ci	depends on ARCH_DAVINCI_DA8XX || COMPILE_TEST
88c2ecf20Sopenharmony_ci	select GENERIC_PHY
98c2ecf20Sopenharmony_ci	select MFD_SYSCON
108c2ecf20Sopenharmony_ci	help
118c2ecf20Sopenharmony_ci	  Enable this to support the USB PHY on DA8xx SoCs.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci	  This driver controls both the USB 1.1 PHY and the USB 2.0 PHY.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciconfig PHY_DM816X_USB
168c2ecf20Sopenharmony_ci	tristate "TI dm816x USB PHY driver"
178c2ecf20Sopenharmony_ci	depends on ARCH_OMAP2PLUS || COMPILE_TEST
188c2ecf20Sopenharmony_ci	depends on USB_SUPPORT
198c2ecf20Sopenharmony_ci	select GENERIC_PHY
208c2ecf20Sopenharmony_ci	select USB_PHY
218c2ecf20Sopenharmony_ci	help
228c2ecf20Sopenharmony_ci	  Enable this for dm816x USB to work.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciconfig PHY_AM654_SERDES
258c2ecf20Sopenharmony_ci	tristate "TI AM654 SERDES support"
268c2ecf20Sopenharmony_ci	depends on OF && (ARCH_K3 || COMPILE_TEST)
278c2ecf20Sopenharmony_ci	depends on COMMON_CLK
288c2ecf20Sopenharmony_ci	select GENERIC_PHY
298c2ecf20Sopenharmony_ci	select MULTIPLEXER
308c2ecf20Sopenharmony_ci	select REGMAP_MMIO
318c2ecf20Sopenharmony_ci	select MUX_MMIO
328c2ecf20Sopenharmony_ci	help
338c2ecf20Sopenharmony_ci	  This option enables support for TI AM654 SerDes PHY used for
348c2ecf20Sopenharmony_ci	  PCIe.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciconfig PHY_J721E_WIZ
378c2ecf20Sopenharmony_ci	tristate "TI J721E WIZ (SERDES Wrapper) support"
388c2ecf20Sopenharmony_ci	depends on OF && (ARCH_K3 || COMPILE_TEST)
398c2ecf20Sopenharmony_ci	depends on HAS_IOMEM && OF_ADDRESS
408c2ecf20Sopenharmony_ci	depends on COMMON_CLK
418c2ecf20Sopenharmony_ci	select GENERIC_PHY
428c2ecf20Sopenharmony_ci	select MULTIPLEXER
438c2ecf20Sopenharmony_ci	select REGMAP_MMIO
448c2ecf20Sopenharmony_ci	select MUX_MMIO
458c2ecf20Sopenharmony_ci	help
468c2ecf20Sopenharmony_ci	  This option enables support for WIZ module present in TI's J721E
478c2ecf20Sopenharmony_ci	  SoC. WIZ is a serdes wrapper used to configure some of the input
488c2ecf20Sopenharmony_ci	  signals to the SERDES (Sierra/Torrent). This driver configures
498c2ecf20Sopenharmony_ci	  three clock selects (pll0, pll1, dig) and resets for each of the
508c2ecf20Sopenharmony_ci	  lanes.
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciconfig OMAP_CONTROL_PHY
538c2ecf20Sopenharmony_ci	tristate "OMAP CONTROL PHY Driver"
548c2ecf20Sopenharmony_ci	depends on ARCH_OMAP2PLUS || COMPILE_TEST
558c2ecf20Sopenharmony_ci	help
568c2ecf20Sopenharmony_ci	  Enable this to add support for the PHY part present in the control
578c2ecf20Sopenharmony_ci	  module. This driver has API to power on the USB2 PHY and to write to
588c2ecf20Sopenharmony_ci	  the mailbox. The mailbox is present only in omap4 and the register to
598c2ecf20Sopenharmony_ci	  power on the USB2 PHY is present in OMAP4 and OMAP5. OMAP5 has an
608c2ecf20Sopenharmony_ci	  additional register to power on USB3 PHY/SATA PHY/PCIE PHY
618c2ecf20Sopenharmony_ci	  (PIPE3 PHY).
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciconfig OMAP_USB2
648c2ecf20Sopenharmony_ci	tristate "OMAP USB2 PHY Driver"
658c2ecf20Sopenharmony_ci	depends on ARCH_OMAP2PLUS || ARCH_K3
668c2ecf20Sopenharmony_ci	depends on USB_SUPPORT
678c2ecf20Sopenharmony_ci	select GENERIC_PHY
688c2ecf20Sopenharmony_ci	select USB_PHY
698c2ecf20Sopenharmony_ci	select OMAP_CONTROL_PHY if ARCH_OMAP2PLUS || COMPILE_TEST
708c2ecf20Sopenharmony_ci	help
718c2ecf20Sopenharmony_ci	  Enable this to support the transceiver that is part of SOC. This
728c2ecf20Sopenharmony_ci	  driver takes care of all the PHY functionality apart from comparator.
738c2ecf20Sopenharmony_ci	  The USB OTG controller communicates with the comparator using this
748c2ecf20Sopenharmony_ci	  driver.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciconfig TI_PIPE3
778c2ecf20Sopenharmony_ci	tristate "TI PIPE3 PHY Driver"
788c2ecf20Sopenharmony_ci	depends on ARCH_OMAP2PLUS || COMPILE_TEST
798c2ecf20Sopenharmony_ci	select GENERIC_PHY
808c2ecf20Sopenharmony_ci	select OMAP_CONTROL_PHY
818c2ecf20Sopenharmony_ci	help
828c2ecf20Sopenharmony_ci	  Enable this to support the PIPE3 PHY that is part of TI SOCs. This
838c2ecf20Sopenharmony_ci	  driver takes care of all the PHY functionality apart from comparator.
848c2ecf20Sopenharmony_ci	  This driver interacts with the "OMAP Control PHY Driver" to power
858c2ecf20Sopenharmony_ci	  on/off the PHY.
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ciconfig PHY_TUSB1210
888c2ecf20Sopenharmony_ci	tristate "TI TUSB1210 ULPI PHY module"
898c2ecf20Sopenharmony_ci	depends on USB_ULPI_BUS
908c2ecf20Sopenharmony_ci	select GENERIC_PHY
918c2ecf20Sopenharmony_ci	help
928c2ecf20Sopenharmony_ci	  Support for TI TUSB1210 USB ULPI PHY.
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ciconfig TWL4030_USB
958c2ecf20Sopenharmony_ci	tristate "TWL4030 USB Transceiver Driver"
968c2ecf20Sopenharmony_ci	depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS
978c2ecf20Sopenharmony_ci	depends on USB_SUPPORT
988c2ecf20Sopenharmony_ci	depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't 'y'
998c2ecf20Sopenharmony_ci	select GENERIC_PHY
1008c2ecf20Sopenharmony_ci	select USB_PHY
1018c2ecf20Sopenharmony_ci	help
1028c2ecf20Sopenharmony_ci	  Enable this to support the USB OTG transceiver on TWL4030
1038c2ecf20Sopenharmony_ci	  family chips (including the TWL5030 and TPS659x0 devices).
1048c2ecf20Sopenharmony_ci	  This transceiver supports high and full speed devices plus,
1058c2ecf20Sopenharmony_ci	  in host mode, low speed.
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ciconfig PHY_TI_GMII_SEL
1088c2ecf20Sopenharmony_ci	tristate
1098c2ecf20Sopenharmony_ci	select GENERIC_PHY
1108c2ecf20Sopenharmony_ci	select REGMAP
1118c2ecf20Sopenharmony_ci	help
1128c2ecf20Sopenharmony_ci	  This driver supports configuring of the TI CPSW Port mode depending on
1138c2ecf20Sopenharmony_ci	  the Ethernet PHY connected to the CPSW Port.
114