mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 01:21:28 +00:00
6a23afad44
This is a new driver that supports the integrated DisplayPort phy for mediatek SoCs, especially the mt8195. The phy is integrated into the DisplayPort controller and will be created by the mtk-dp driver. This driver expects a struct regmap to be able to work on the same registers as the DisplayPort controller. It sets the device data to be the struct phy so that the DisplayPort controller can easily work with it. The driver does not have any devicetree bindings because the datasheet does not list the controller and the phy as distinct units. The interaction with the controller can be covered by the configure callback of the phy framework and its displayport parameters. Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com> Signed-off-by: Guillaume Ranquet <granquet@baylibre.com> [Bo-Chen: Modify reviewers' comments.] Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220624062725.4095-1-rex-bc.chen@mediatek.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Phy drivers for Mediatek devices
|
|
#
|
|
config PHY_MTK_PCIE
|
|
tristate "MediaTek PCIe-PHY Driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on OF
|
|
select GENERIC_PHY
|
|
help
|
|
Say 'Y' here to add support for MediaTek PCIe PHY driver.
|
|
This driver create the basic PHY instance and provides initialize
|
|
callback for PCIe GEN3 port, it supports software efuse
|
|
initialization.
|
|
|
|
config PHY_MTK_TPHY
|
|
tristate "MediaTek T-PHY Driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on OF && OF_ADDRESS
|
|
depends on HAS_IOMEM
|
|
select GENERIC_PHY
|
|
help
|
|
Say 'Y' here to add support for MediaTek T-PHY driver,
|
|
it supports multiple usb2.0, usb3.0 ports, PCIe and
|
|
SATA, and meanwhile supports two version T-PHY which have
|
|
different banks layout, the T-PHY with shared banks between
|
|
multi-ports is first version, otherwise is second version,
|
|
so you can easily distinguish them by banks layout.
|
|
|
|
config PHY_MTK_UFS
|
|
tristate "MediaTek UFS M-PHY driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on OF
|
|
select GENERIC_PHY
|
|
help
|
|
Support for UFS M-PHY on MediaTek chipsets.
|
|
Enable this to provide vendor-specific probing,
|
|
initialization, power on and power off flow of
|
|
specified M-PHYs.
|
|
|
|
config PHY_MTK_XSPHY
|
|
tristate "MediaTek XS-PHY Driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on OF && OF_ADDRESS
|
|
depends on HAS_IOMEM
|
|
select GENERIC_PHY
|
|
help
|
|
Enable this to support the SuperSpeedPlus XS-PHY transceiver for
|
|
USB3.1 GEN2 controllers on MediaTek chips. The driver supports
|
|
multiple USB2.0, USB3.1 GEN2 ports.
|
|
|
|
config PHY_MTK_HDMI
|
|
tristate "MediaTek HDMI-PHY Driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on COMMON_CLK
|
|
depends on OF
|
|
select GENERIC_PHY
|
|
help
|
|
Support HDMI PHY for Mediatek SoCs.
|
|
|
|
config PHY_MTK_MIPI_DSI
|
|
tristate "MediaTek MIPI-DSI Driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on COMMON_CLK
|
|
depends on OF
|
|
select GENERIC_PHY
|
|
help
|
|
Support MIPI DSI for Mediatek SoCs.
|
|
|
|
config PHY_MTK_DP
|
|
tristate "MediaTek DP-PHY Driver"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
depends on OF
|
|
select GENERIC_PHY
|
|
help
|
|
Support DisplayPort PHY for MediaTek SoCs.
|