xref: /openbmc/linux/drivers/phy/allwinner/Kconfig (revision f21e49be)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Phy drivers for Allwinner platforms
4#
5config PHY_SUN4I_USB
6	tristate "Allwinner sunxi SoC USB PHY driver"
7	depends on ARCH_SUNXI || COMPILE_TEST
8	depends on HAS_IOMEM
9	depends on RESET_CONTROLLER
10	depends on EXTCON
11	depends on POWER_SUPPLY
12	depends on USB_SUPPORT
13	select GENERIC_PHY
14	select USB_COMMON
15	help
16	  Enable this to support the transceiver that is part of Allwinner
17	  sunxi SoCs.
18
19	  This driver controls the entire USB PHY block, both the USB OTG
20	  parts, as well as the 2 regular USB 2 host PHYs.
21
22config PHY_SUN6I_MIPI_DPHY
23	tristate "Allwinner A31 MIPI D-PHY Support"
24	depends on ARCH_SUNXI || COMPILE_TEST
25	depends on HAS_IOMEM && COMMON_CLK
26	depends on RESET_CONTROLLER
27	select GENERIC_PHY
28	select GENERIC_PHY_MIPI_DPHY
29	select REGMAP_MMIO
30	help
31	  Choose this option if you have an Allwinner SoC with
32	  MIPI-DSI support. If M is selected, the module will be
33	  called sun6i_mipi_dphy.
34
35config PHY_SUN9I_USB
36	tristate "Allwinner sun9i SoC USB PHY driver"
37	depends on ARCH_SUNXI || COMPILE_TEST
38	depends on HAS_IOMEM
39	depends on RESET_CONTROLLER
40	depends on USB_SUPPORT
41	select USB_COMMON
42	select GENERIC_PHY
43	help
44	  Enable this to support the transceiver that is part of Allwinner
45	  sun9i SoCs.
46
47	  This driver controls each individual USB 2 host PHY.
48
49config PHY_SUN50I_USB3
50	tristate "Allwinner H6 SoC USB3 PHY driver"
51	depends on ARCH_SUNXI || COMPILE_TEST
52	depends on HAS_IOMEM && OF
53	depends on RESET_CONTROLLER
54	select GENERIC_PHY
55	help
56	  Enable this to support the USB3.0-capable transceiver that is
57	  part of Allwinner H6 SoC.
58
59	  This driver controls each individual USB 2+3 host PHY combo.
60