[PATCH v2 1/5] dt-bindings: phy: rockchip: rk3399-typec-phy: Support mode-switch
Chaoyi Chen
kernel at airkyi.com
Thu Jul 17 23:26:15 PDT 2025
From: Chaoyi Chen <chaoyi.chen at rock-chips.com>
The RK3399 has two USB/DP combo PHY. With the help of external Type-C
controller, the PHY can switch altmode between USB and DP.
Their connection diagram is shown below:
external Type-C Chip0 ---> USB/DP PHY0 ---+
| <----> CDN-DP controller
external Type-C Chip1 ---> USB/DP PHY1 ---+
This patch add new "mode-switch" property for dp-port to indicate
whether the PHY can handle altmode switching.
Signed-off-by: Chaoyi Chen <chaoyi.chen at rock-chips.com>
---
Changes in v2:
- Reuse dp-port/usb3-port in rk3399-typec-phy binding.
.../devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml
index 91c011f68cd0..d503de7c7569 100644
--- a/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml
@@ -51,6 +51,10 @@ properties:
'#phy-cells':
const: 0
+ mode-switch:
+ description: Flag the port as possible handler of altmode switching
+ type: boolean
+
port:
$ref: /schemas/graph.yaml#/properties/port
description: Connection to USB Type-C connector
--
2.49.0
More information about the linux-phy
mailing list