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