162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Phy drivers for Allwinner platforms
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ciconfig PHY_SUN4I_USB
662306a36Sopenharmony_ci	tristate "Allwinner sunxi SoC USB PHY driver"
762306a36Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
862306a36Sopenharmony_ci	depends on HAS_IOMEM
962306a36Sopenharmony_ci	depends on RESET_CONTROLLER
1062306a36Sopenharmony_ci	depends on EXTCON
1162306a36Sopenharmony_ci	depends on POWER_SUPPLY
1262306a36Sopenharmony_ci	depends on USB_SUPPORT
1362306a36Sopenharmony_ci	select GENERIC_PHY
1462306a36Sopenharmony_ci	select USB_COMMON
1562306a36Sopenharmony_ci	help
1662306a36Sopenharmony_ci	  Enable this to support the transceiver that is part of Allwinner
1762306a36Sopenharmony_ci	  sunxi SoCs.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci	  This driver controls the entire USB PHY block, both the USB OTG
2062306a36Sopenharmony_ci	  parts, as well as the 2 regular USB 2 host PHYs.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciconfig PHY_SUN6I_MIPI_DPHY
2362306a36Sopenharmony_ci	tristate "Allwinner A31 MIPI D-PHY Support"
2462306a36Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
2562306a36Sopenharmony_ci	depends on HAS_IOMEM && COMMON_CLK
2662306a36Sopenharmony_ci	depends on RESET_CONTROLLER
2762306a36Sopenharmony_ci	select GENERIC_PHY
2862306a36Sopenharmony_ci	select GENERIC_PHY_MIPI_DPHY
2962306a36Sopenharmony_ci	select REGMAP_MMIO
3062306a36Sopenharmony_ci	help
3162306a36Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with
3262306a36Sopenharmony_ci	  MIPI-DSI support. If M is selected, the module will be
3362306a36Sopenharmony_ci	  called sun6i_mipi_dphy.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciconfig PHY_SUN9I_USB
3662306a36Sopenharmony_ci	tristate "Allwinner sun9i SoC USB PHY driver"
3762306a36Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
3862306a36Sopenharmony_ci	depends on HAS_IOMEM
3962306a36Sopenharmony_ci	depends on RESET_CONTROLLER
4062306a36Sopenharmony_ci	depends on USB_SUPPORT
4162306a36Sopenharmony_ci	select USB_COMMON
4262306a36Sopenharmony_ci	select GENERIC_PHY
4362306a36Sopenharmony_ci	help
4462306a36Sopenharmony_ci	  Enable this to support the transceiver that is part of Allwinner
4562306a36Sopenharmony_ci	  sun9i SoCs.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci	  This driver controls each individual USB 2 host PHY.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciconfig PHY_SUN50I_USB3
5062306a36Sopenharmony_ci	tristate "Allwinner H6 SoC USB3 PHY driver"
5162306a36Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
5262306a36Sopenharmony_ci	depends on HAS_IOMEM && OF
5362306a36Sopenharmony_ci	depends on RESET_CONTROLLER
5462306a36Sopenharmony_ci	select GENERIC_PHY
5562306a36Sopenharmony_ci	help
5662306a36Sopenharmony_ci	  Enable this to support the USB3.0-capable transceiver that is
5762306a36Sopenharmony_ci	  part of Allwinner H6 SoC.
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci	  This driver controls each individual USB 2+3 host PHY combo.
60