arm64: dts: qcom: sc8280xp-x13s: Add QMP to SuperSpeed graph
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 15 May 2023 03:27:43 +0000 (20:27 -0700)
committerBjorn Andersson <andersson@kernel.org>
Tue, 23 May 2023 02:59:21 +0000 (19:59 -0700)
Following the CRD, connect the two QMP phys inbetween the USB Type-C
connectors and the DisplayPort controller, to handle orientation
switching.

Tested-by: Abel Vesa <abel.vesa@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on HDK8450
Tested-by: Johan Hovold <johan+linaro@kernel.org> # X13s
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230515032743.400170-9-quic_bjorande@quicinc.com
arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts

index bdcba719fc38523266dd86648aa5b5cf6c632971..5ae057ad643814f061a18eb876af029788b9e089 100644 (file)
                                        reg = <1>;
 
                                        pmic_glink_con0_ss: endpoint {
-                                               remote-endpoint = <&mdss0_dp0_out>;
+                                               remote-endpoint = <&usb_0_qmpphy_out>;
                                        };
                                };
 
                                        reg = <1>;
 
                                        pmic_glink_con1_ss: endpoint {
-                                               remote-endpoint = <&mdss0_dp1_out>;
+                                               remote-endpoint = <&usb_1_qmpphy_out>;
                                        };
                                };
 
 
 &mdss0_dp0_out {
        data-lanes = <0 1>;
-       remote-endpoint = <&pmic_glink_con0_ss>;
+       remote-endpoint = <&usb_0_qmpphy_dp_in>;
 };
 
 &mdss0_dp1 {
 
 &mdss0_dp1_out {
        data-lanes = <0 1>;
-       remote-endpoint = <&pmic_glink_con1_ss>;
+       remote-endpoint = <&usb_1_qmpphy_dp_in>;
 };
 
 &mdss0_dp3 {
        vdda-phy-supply = <&vreg_l9d>;
        vdda-pll-supply = <&vreg_l4d>;
 
+       orientation-switch;
+
        status = "okay";
 };
 
+&usb_0_qmpphy_dp_in {
+       remote-endpoint = <&mdss0_dp0_out>;
+};
+
+&usb_0_qmpphy_out {
+       remote-endpoint = <&pmic_glink_con0_ss>;
+};
+
 &usb_0_role_switch {
        remote-endpoint = <&pmic_glink_con0_hs>;
 };
        vdda-phy-supply = <&vreg_l4b>;
        vdda-pll-supply = <&vreg_l3b>;
 
+       orientation-switch;
+
        status = "okay";
 };
 
+&usb_1_qmpphy_dp_in {
+       remote-endpoint = <&mdss0_dp1_out>;
+};
+
+&usb_1_qmpphy_out {
+       remote-endpoint = <&pmic_glink_con1_ss>;
+};
+
 &usb_1_role_switch {
        remote-endpoint = <&pmic_glink_con1_hs>;
 };