Skip to content

Commit 6c0237d

Browse files
quic-bjorandevinodkoul
authored andcommitted
dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp: Add ports and orientation-switch
The QMP combo phy can be connected to a TCPM, a USB controller and a DisplayPort controller for handling USB Type-C orientation switching and propagating HPD signals. Extend the binding to allow these connections to be described. Tested-by: Abel Vesa <[email protected]> Tested-by: Steev Klimaszewski <[email protected]> Tested-by: Neil Armstrong <[email protected]> # on HDK8450 Tested-by: Johan Hovold <[email protected]> # X13s Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 940797d commit 6c0237d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,26 @@ properties:
6060
description:
6161
See include/dt-bindings/dt-bindings/phy/phy-qcom-qmp.h
6262

63+
orientation-switch:
64+
description:
65+
Flag the PHY as possible handler of USB Type-C orientation switching
66+
type: boolean
67+
68+
ports:
69+
$ref: /schemas/graph.yaml#/properties/ports
70+
properties:
71+
port@0:
72+
$ref: /schemas/graph.yaml#/properties/port
73+
description: Output endpoint of the PHY
74+
75+
port@1:
76+
$ref: /schemas/graph.yaml#/properties/port
77+
description: Incoming endpoint from the USB controller
78+
79+
port@2:
80+
$ref: /schemas/graph.yaml#/properties/port
81+
description: Incoming endpoint from the DisplayPort controller
82+
6383
required:
6484
- compatible
6585
- reg
@@ -98,6 +118,37 @@ examples:
98118
vdda-phy-supply = <&vreg_l9d>;
99119
vdda-pll-supply = <&vreg_l4d>;
100120
121+
orientation-switch;
122+
101123
#clock-cells = <1>;
102124
#phy-cells = <1>;
125+
126+
ports {
127+
#address-cells = <1>;
128+
#size-cells = <0>;
129+
130+
port@0 {
131+
reg = <0>;
132+
133+
endpoint {
134+
remote-endpoint = <&typec_connector_ss>;
135+
};
136+
};
137+
138+
port@1 {
139+
reg = <1>;
140+
141+
endpoint {
142+
remote-endpoint = <&dwc3_ss_out>;
143+
};
144+
};
145+
146+
port@2 {
147+
reg = <2>;
148+
149+
endpoint {
150+
remote-endpoint = <&mdss_dp_out>;
151+
};
152+
};
153+
};
103154
};

0 commit comments

Comments
 (0)