]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: qcom: sdm845: describe connections of USB/DP port
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 13 Jun 2024 23:43:42 +0000 (02:43 +0300)
committerBjorn Andersson <andersson@kernel.org>
Fri, 21 Jun 2024 05:37:33 +0000 (00:37 -0500)
Describe links between the first USB3 host and the DisplayPort that is
routed to the same pins.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240614-yoga-ec-driver-v7-5-9f0b9b40ae76@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845.dtsi

index a0125f3d92b2478c1ac0cb6007ef4ca7a44df1a5..23b101bb384238c9acaf3092b0d2a754960eabff 100644 (file)
 
                        #clock-cells = <1>;
                        #phy-cells = <1>;
+                       orientation-switch;
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               port@0 {
+                                       reg = <0>;
+
+                                       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>;
+
+                                       usb_1_qmpphy_dp_in: endpoint {
+                                               remote-endpoint = <&dp_out>;
+                                       };
+                               };
+                       };
                };
 
                usb_2_qmpphy: phy@88eb000 {
                                snps,dis_enblslpm_quirk;
                                phys = <&usb_1_hsphy>, <&usb_1_qmpphy QMP_USB43DP_USB3_PHY>;
                                phy-names = "usb2-phy", "usb3-phy";
+
+                               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>;
+                                               };
+                                       };
+                               };
                        };
                };
 
 
                                        port@1 {
                                                reg = <1>;
-                                               dp_out: endpoint { };
+                                               dp_out: endpoint {
+                                                       remote-endpoint = <&usb_1_qmpphy_dp_in>;
+                                               };
                                        };
                                };