Skip to content

Commit cc230a4

Browse files
Chunfeng Yunvinodkoul
authored andcommitted
dt-bindings: phy: mediatek: tphy: add a property for force-mode switch
Due to some old SoCs with shared t-phy between usb3 and pcie only support force-mode switch, and shared and non-shared t-phy may exist at the same time on a SoC, can't use compatible to distinguish between shared and non-shared t-phy, add a property to supported it. Currently, only support switch from default pcie mode to usb3 mode. But now prefer to use "mediatek,syscon-type" on new SoC as far as possible. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231211025624.28991-1-chunfeng.yun@mediatek.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 57f31e9 commit cc230a4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Documentation/devicetree/bindings/phy/mediatek,tphy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ patternProperties:
235235
Specify the flag to enable BC1.2 if support it
236236
type: boolean
237237

238+
mediatek,force-mode:
239+
description:
240+
The force mode is used to manually switch the shared phy mode between
241+
USB3 and PCIe, when USB3 phy type is selected by the consumer, and
242+
force-mode is set, will cause phy's power and pipe toggled and force
243+
phy as USB3 mode which switched from default PCIe mode. But perfer to
244+
use the property "mediatek,syscon-type" for newer SoCs that support it.
245+
type: boolean
246+
238247
mediatek,syscon-type:
239248
$ref: /schemas/types.yaml#/definitions/phandle-array
240249
maxItems: 1

0 commit comments

Comments
 (0)