arm64: dts: qcom: qrb5165-rb5: Switch on TCPM orientation-switch for usb_1_qmpphy
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 16 Aug 2023 11:51:51 +0000 (12:51 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 01:19:33 +0000 (18:19 -0700)
Switch on USB orientation-switching for usb_1_qmp via TCPM. Detecting the
orientation switch is required to get the PHY to reset and bring-up the PHY
with the CC lines set to the appropriate lane.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20230816115151.501736-8-bryan.odonoghue@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
arch/arm64/boot/dts/qcom/sm8250.dtsi

index c788133d23e84f8c6dc429aebda6030249af8577..303d07f9c6e5481352be3108a6ab5b9254516342 100644 (file)
 
        vdda-phy-supply = <&vreg_l9a_1p2>;
        vdda-pll-supply = <&vreg_l18a_0p92>;
+       orientation-switch;
+};
+
+&usb_1_qmpphy_out {
+       remote-endpoint = <&pm8150b_typec_mux_in>;
 };
 
 &usb_2 {
                                        remote-endpoint = <&usb_1_role_switch_out>;
                                };
                        };
+
+                       port@1 {
+                               reg = <1>;
+                               pm8150b_typec_mux_in: endpoint {
+                                       remote-endpoint = <&usb_1_qmpphy_out>;
+                               };
+                       };
                };
        };
 };
index 28f977785dcc6ce33039107d3332e640f9977a4b..544850fb73abebdc1dff74e2dad86f387777ca1b 100644 (file)
 
                                port@0 {
                                        reg = <0>;
+                                       usb_1_qmpphy_out: endpoint {};
                                };
 
                                port@1 {