Thread (19 messages) 19 messages, 7 authors, 2025-07-16

Re: [PATCH 2/5] dt-bindings: phy: rockchip: rk3399-typec-phy: Support mode/orientation switch

From: Chaoyi Chen <hidden>
Date: 2025-07-16 01:19:13
Also in: dri-devel, linux-arm-kernel, linux-devicetree, linux-rockchip, lkml

Hi Krzysztof,

On 2025/7/15 19:34, Krzysztof Kozlowski wrote:
On 15/07/2025 13:24, Chaoyi Chen wrote:
quoted
From: Chaoyi Chen <redacted>

Add support for Type-C orientation and altmode switch.
The Type-C controller can be specified to handling switching.
Please describe the hardware in details. Above sentences don't help me
to understand this.
I will add more description in v2.

quoted
Signed-off-by: Chaoyi Chen <redacted>
---
  .../bindings/phy/rockchip,rk3399-typec-phy.yaml    | 14 ++++++++++++++
  1 file changed, 14 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..a885c6893a90 100644
--- a/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml
@@ -43,6 +43,20 @@ properties:
      description:
        Phandle to the syscon managing the "general register files" (GRF).
  
+  orientation-switch:
+    description: Flag the port as possible handler of orientation switching
+    type: boolean
+
+  mode-switch:
+    description: Flag the port as possible handler of altmode switching
+    type: boolean
+
+  port:
+    $ref: /schemas/graph.yaml#/properties/port
+    description:
+      A port node to link the PHY to a TypeC controller for the purpose of
+      handling orientation switching.
You are using usb-switch.yaml properties in phy node, which raises
questions whether this is actually complete. It might be, but commit msg
is so vague that I have doubts.

Also, why only one port?

Or wait... you already have ports! two of them. This needs to stop, why
are you adding more?
Oh, I will try to reuse them. Will fix in v2.

Best regards,
Krzysztof
-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help