]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: mediatek: tphy: add support force phy mode switch
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 11 Dec 2023 02:56:24 +0000 (10:56 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Dec 2023 17:09:59 +0000 (22:39 +0530)
commit9b27303003f5af0d378f29ccccea57c7d65cc642
tree7496e29aec6577921583066822a8576226a02614
parentcc230a4cd8e91f64c90b5494dfd76848197418ed
phy: mediatek: tphy: add support force phy mode switch

this is used to be compatible with old SoCs, such as mt8195, which shares
t-phy between usb3 and pcie controller, usually, it's default mode is pcie
rc mode, and could use force mode to switch into usb3 mode, because pericfg
layer doesn't provide mode switch, also no efuse or jumper can be used;
Currently, only support switch from default pcie mode to usb3;
Note: don't use this way on new SoCs, use pericfg layer's mode switch
instead (by perperty "mediatek,syscon-type").

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20231211025624.28991-2-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-tphy.c