mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 04:39:02 +02:00
The comb PHY on K3 requires to configure a syscon device for the right mux configuration. And it requires calibration before any usage. Add USB3/PCIe comb PHY driver for Spacemit K3. Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Tested-by: Aurelien Jarno <aurelien@aurel32.net> Link: https://patch.msgid.link/20260703021024.495433-3-inochiama@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Phy drivers for SpacemiT platforms
|
|
#
|
|
config PHY_SPACEMIT_K1_PCIE
|
|
tristate "PCIe and combo PHY driver for the SpacemiT K1 SoC"
|
|
depends on ARCH_SPACEMIT || COMPILE_TEST
|
|
depends on COMMON_CLK
|
|
depends on HAS_IOMEM
|
|
depends on OF
|
|
select GENERIC_PHY
|
|
default ARCH_SPACEMIT
|
|
help
|
|
Enable support for the PCIe and USB 3 combo PHY and two
|
|
PCIe-only PHYs used in the SpacemiT K1 SoC.
|
|
|
|
config PHY_SPACEMIT_K1_USB2
|
|
tristate "SpacemiT K1 USB 2.0 PHY support"
|
|
depends on (ARCH_SPACEMIT || COMPILE_TEST) && OF
|
|
depends on COMMON_CLK
|
|
depends on USB_COMMON
|
|
select GENERIC_PHY
|
|
help
|
|
Enable this to support K1 USB 2.0 PHY driver. This driver takes care of
|
|
enabling and clock setup and will be used by K1 udc/ehci/otg/xhci driver.
|
|
|
|
config PHY_SPACEMIT_K3_COMMON_OPS
|
|
tristate
|
|
select MFD_SYSCON
|
|
select GENERIC_PHY
|
|
|
|
config PHY_SPACEMIT_K3_COMBO_PHY
|
|
tristate "SpacemiT K3 USB3/PCIe PHY support"
|
|
depends on (ARCH_SPACEMIT || COMPILE_TEST) && OF
|
|
depends on COMMON_CLK
|
|
select PHY_SPACEMIT_K3_COMMON_OPS
|
|
help
|
|
Enable this to support K3 USB3/PCIe combo PHY driver. This
|
|
driver takes care of enabling and clock setup and will be used
|
|
by K3 dwc3 driver.
|
|
If unsure, say N.
|