]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: sm8350: move USB graph to the SoC dtsi
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 29 Apr 2024 12:43:39 +0000 (15:43 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 May 2024 00:02:47 +0000 (19:02 -0500)
Move the graph connection between USB host, USB SS PHY and DP port to
the SoC dtsi file. They are linked in hardware in this way.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240429-usb-link-dtsi-v1-2-87c341b55cdf@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8350-hdk.dts
arch/arm64/boot/dts/qcom/sm8350.dtsi

index 4c25ab2f5670ef51f212280bb7a503aae9803a78..81e5577cccb735da3b6fa799c80ac3501579ee55 100644 (file)
 
 &mdss_dp {
        status = "okay";
+};
 
-       ports {
-               port@1 {
-                       reg = <1>;
-
-                       mdss_dp0_out: endpoint {
-                               data-lanes = <0 1>;
-                               remote-endpoint = <&usb_1_qmpphy_dp_in>;
-                       };
-               };
-       };
+&mdss_dp_out {
+       data-lanes = <0 1>;
 };
 
 &mpss {
        remote-endpoint = <&pmic_glink_hs_in>;
 };
 
-&usb_1_dwc3_ss {
-       remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
-};
-
 &usb_1_hsphy {
        status = "okay";
 
        orientation-switch;
 };
 
-&usb_1_qmpphy_dp_in {
-       remote-endpoint = <&mdss_dp0_out>;
-};
-
 &usb_1_qmpphy_out {
        remote-endpoint = <&pmic_glink_ss_in>;
 };
 
-&usb_1_qmpphy_usb_ss_in {
-       remote-endpoint = <&usb_1_dwc3_ss>;
-};
-
 &usb_2 {
        status = "okay";
 };
index f7c4700f00c36c19ed287eaa2c6ee1188ca57121..24c42f285163493afb46ed978bccfbb5755beb75 100644 (file)
                                        reg = <1>;
 
                                        usb_1_qmpphy_usb_ss_in: endpoint {
+                                               remote-endpoint = <&usb_1_dwc3_ss>;
                                        };
                                };
 
                                        reg = <2>;
 
                                        usb_1_qmpphy_dp_in: endpoint {
+                                               remote-endpoint = <&mdss_dp_out>;
                                        };
                                };
                        };
                                                reg = <1>;
 
                                                usb_1_dwc3_ss: endpoint {
+                                                       remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
                                                };
                                        };
                                };
                                                        remote-endpoint = <&dpu_intf0_out>;
                                                };
                                        };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               mdss_dp_out: endpoint {
+                                                       remote-endpoint = <&usb_1_qmpphy_dp_in>;
+                                               };
+                                       };
                                };
 
                                dp_opp_table: opp-table {