]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: x1e80100: describe USB signals properly
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 11 May 2024 22:04:14 +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-8-ad153c747a97@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e80100.dtsi

index 5f90a0b3c0166d5bfe78f1a5e56f98abbff6bb61..cf8d8d5b1870a9237fb18a894a36ed5fb3438524 100644 (file)
                        #phy-cells = <1>;
 
                        status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+
+                                       usb_1_ss0_qmpphy_out: endpoint {
+                                       };
+                               };
+
+                               port@1 {
+                                       reg = <1>;
+
+                                       usb_1_ss0_qmpphy_usb_ss_in: endpoint {
+                                               remote-endpoint = <&usb_1_ss0_dwc3_ss>;
+                                       };
+                               };
+
+                               port@2 {
+                                       reg = <2>;
+
+                                       usb_1_ss0_qmpphy_dp_in: endpoint {
+                                       };
+                               };
+                       };
                };
 
                usb_1_ss1_hsphy: phy@fd9000 {
                        #phy-cells = <1>;
 
                        status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+
+                                       usb_1_ss1_qmpphy_out: endpoint {
+                                       };
+                               };
+
+                               port@1 {
+                                       reg = <1>;
+
+                                       usb_1_ss1_qmpphy_usb_ss_in: endpoint {
+                                               remote-endpoint = <&usb_1_ss1_dwc3_ss>;
+                                       };
+                               };
+
+                               port@2 {
+                                       reg = <2>;
+
+                                       usb_1_ss1_qmpphy_dp_in: endpoint {
+                                       };
+                               };
+                       };
                };
 
                usb_1_ss2_hsphy: phy@fde000 {
                        #phy-cells = <1>;
 
                        status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+
+                                       usb_1_ss2_qmpphy_out: endpoint {
+                                       };
+                               };
+
+                               port@1 {
+                                       reg = <1>;
+
+                                       usb_1_ss2_qmpphy_usb_ss_in: endpoint {
+                                               remote-endpoint = <&usb_1_ss2_dwc3_ss>;
+                                       };
+                               };
+
+                               port@2 {
+                                       reg = <2>;
+
+                                       usb_1_ss2_qmpphy_dp_in: endpoint {
+                                       };
+                               };
+                       };
                };
 
                cnoc_main: interconnect@1500000 {
 
                                dma-coherent;
 
-                               port {
-                                       usb_1_ss2_role_switch: endpoint {
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               usb_1_ss2_dwc3_hs: endpoint {
+                                               };
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               usb_1_ss2_dwc3_ss: endpoint {
+                                                       remote-endpoint = <&usb_1_ss2_qmpphy_usb_ss_in>;
+                                               };
                                        };
                                };
                        };
                                phy-names = "usb2-phy";
                                maximum-speed = "high-speed";
 
-                               port {
-                                       usb_2_role_switch: endpoint {
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               usb_2_dwc3_hs: endpoint {
+                                               };
                                        };
                                };
                        };
 
                                dma-coherent;
 
-                               port {
-                                       usb_1_ss0_role_switch: endpoint {
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               usb_1_ss0_dwc3_hs: endpoint {
+                                               };
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               usb_1_ss0_dwc3_ss: endpoint {
+                                                       remote-endpoint = <&usb_1_ss0_qmpphy_usb_ss_in>;
+                                               };
                                        };
                                };
                        };
 
                                dma-coherent;
 
-                               port {
-                                       usb_1_ss1_role_switch: endpoint {
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               usb_1_ss1_dwc3_hs: endpoint {
+                                               };
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               usb_1_ss1_dwc3_ss: endpoint {
+                                                       remote-endpoint = <&usb_1_ss1_qmpphy_usb_ss_in>;
+                                               };
                                        };
                                };
                        };