]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: sc8280xp: describe USB signals properly
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 11 May 2024 22:04:13 +0000 (01:04 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 May 2024 16:44:30 +0000 (11:44 -0500)
Follow example of other platforms. Rename HS graph nodes to contain
'dwc3_hs' and link SS lanes from DWC3 controllers to QMP PHYs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240512-typec-fix-sm8250-v4-7-ad153c747a97@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8280xp-crd.dts
arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
arch/arm64/boot/dts/qcom/sc8280xp.dtsi

index 41215567b3aed7d4211a8a4c5ab94042d205b422..a2627ab4db9a902a9dee597a0e1a70394494aa54 100644 (file)
@@ -56,7 +56,7 @@
                                        reg = <0>;
 
                                        pmic_glink_con0_hs: endpoint {
-                                               remote-endpoint = <&usb_0_role_switch>;
+                                               remote-endpoint = <&usb_0_dwc3_hs>;
                                        };
                                };
 
@@ -91,7 +91,7 @@
                                        reg = <0>;
 
                                        pmic_glink_con1_hs: endpoint {
-                                               remote-endpoint = <&usb_1_role_switch>;
+                                               remote-endpoint = <&usb_1_dwc3_hs>;
                                        };
                                };
 
        dr_mode = "host";
 };
 
+&usb_0_dwc3_hs {
+       remote-endpoint = <&pmic_glink_con0_hs>;
+};
+
 &usb_0_hsphy {
        vdda-pll-supply = <&vreg_l9d>;
        vdda18-supply = <&vreg_l1c>;
        remote-endpoint = <&pmic_glink_con0_ss>;
 };
 
-&usb_0_role_switch {
-       remote-endpoint = <&pmic_glink_con0_hs>;
-};
-
 &usb_1 {
        status = "okay";
 };
        dr_mode = "host";
 };
 
+&usb_1_dwc3_hs {
+       remote-endpoint = <&pmic_glink_con1_hs>;
+};
+
 &usb_1_hsphy {
        vdda-pll-supply = <&vreg_l4b>;
        vdda18-supply = <&vreg_l1c>;
        remote-endpoint = <&pmic_glink_con1_ss>;
 };
 
-&usb_1_role_switch {
-       remote-endpoint = <&pmic_glink_con1_hs>;
-};
-
 &xo_board_clk {
        clock-frequency = <38400000>;
 };
index e937732abeded972eb86af841549576092c31995..cd914fffcf0686d9b70c36dbbb769d628edc3241 100644 (file)
                                        reg = <0>;
 
                                        pmic_glink_con0_hs: endpoint {
-                                               remote-endpoint = <&usb_0_role_switch>;
+                                               remote-endpoint = <&usb_0_dwc3_hs>;
                                        };
                                };
 
                                        reg = <0>;
 
                                        pmic_glink_con1_hs: endpoint {
-                                               remote-endpoint = <&usb_1_role_switch>;
+                                               remote-endpoint = <&usb_1_dwc3_hs>;
                                        };
                                };
 
        dr_mode = "host";
 };
 
+&usb_0_dwc3_hs {
+       remote-endpoint = <&pmic_glink_con0_hs>;
+};
+
 &usb_0_hsphy {
        vdda-pll-supply = <&vreg_l9d>;
        vdda18-supply = <&vreg_l1c>;
        remote-endpoint = <&pmic_glink_con0_ss>;
 };
 
-&usb_0_role_switch {
-       remote-endpoint = <&pmic_glink_con0_hs>;
-};
-
 &usb_1 {
        status = "okay";
 };
        dr_mode = "host";
 };
 
+&usb_1_dwc3_hs {
+       remote-endpoint = <&pmic_glink_con1_hs>;
+};
+
 &usb_1_hsphy {
        vdda-pll-supply = <&vreg_l4b>;
        vdda18-supply = <&vreg_l1c>;
        remote-endpoint = <&pmic_glink_con1_ss>;
 };
 
-&usb_1_role_switch {
-       remote-endpoint = <&pmic_glink_con1_hs>;
-};
-
 &usb_2 {
        status = "okay";
 };
index 0549ba1fbeea897b490b614b029cc24578c0370b..e87196b2ace08f4548854e46b164619c26a44306 100644 (file)
                                        usb_0_qmpphy_out: endpoint {};
                                };
 
+                               port@1 {
+                                       reg = <1>;
+
+                                       usb_0_qmpphy_usb_ss_in: endpoint {
+                                               remote-endpoint = <&usb_0_dwc3_ss>;
+                                       };
+                               };
+
                                port@2 {
                                        reg = <2>;
 
                                        usb_1_qmpphy_out: endpoint {};
                                };
 
+                               port@1 {
+                                       reg = <1>;
+
+                                       usb_1_qmpphy_usb_ss_in: endpoint {
+                                               remote-endpoint = <&usb_1_dwc3_ss>;
+                                       };
+                               };
+
                                port@2 {
                                        reg = <2>;
 
                                phys = <&usb_0_hsphy>, <&usb_0_qmpphy QMP_USB43DP_USB3_PHY>;
                                phy-names = "usb2-phy", "usb3-phy";
 
-                               port {
-                                       usb_0_role_switch: endpoint {
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               usb_0_dwc3_hs: endpoint {
+                                               };
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               usb_0_dwc3_ss: endpoint {
+                                                       remote-endpoint = <&usb_0_qmpphy_usb_ss_in>;
+                                               };
                                        };
                                };
                        };
                                phys = <&usb_1_hsphy>, <&usb_1_qmpphy QMP_USB43DP_USB3_PHY>;
                                phy-names = "usb2-phy", "usb3-phy";
 
-                               port {
-                                       usb_1_role_switch: endpoint {
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               usb_1_dwc3_hs: endpoint {
+                                               };
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               usb_1_dwc3_ss: endpoint {
+                                                       remote-endpoint = <&usb_1_qmpphy_usb_ss_in>;
+                                               };
                                        };
                                };
                        };