arm64: dts: qcom: qrb5165-rb5: add onboard USB-C redriver
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 17 Aug 2023 14:59:38 +0000 (17:59 +0300)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 02:12:55 +0000 (19:12 -0700)
Add the nb7vpq904m, onboard USB-C redriver / retimer.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20230817145940.9887-3-dmitry.baryshkov@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts

index 303d07f9c6e5481352be3108a6ab5b9254516342..a4f7a9f9c22c6f8ccfbc592332460fc551aa27b8 100644 (file)
 /* LS-I2C1 */
 &i2c15 {
        status = "okay";
+
+       typec-mux@1c {
+               compatible = "onnn,nb7vpq904m";
+               reg = <0x1c>;
+
+               vcc-supply = <&vreg_s4a_1p8>;
+
+               retimer-switch;
+               orientation-switch;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+
+                               redriver_usb_con_ss: endpoint {
+                                       remote-endpoint = <&pm8150b_typec_mux_in>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+
+                               redriver_phy_con_ss: endpoint {
+                                       remote-endpoint = <&usb_1_qmpphy_out>;
+                                       data-lanes = <0 1 2 3>;
+                               };
+                       };
+
+                       port@2 {
+                               reg = <2>;
+
+                               redriver_usb_con_sbu: endpoint {
+                                       remote-endpoint = <&pm8150b_typec_sbu_out>;
+                               };
+                       };
+               };
+       };
 };
 
 &mdss {
 };
 
 &usb_1_qmpphy_out {
-       remote-endpoint = <&pm8150b_typec_mux_in>;
+       remote-endpoint = <&redriver_phy_con_ss>;
 };
 
 &usb_2 {
                        port@1 {
                                reg = <1>;
                                pm8150b_typec_mux_in: endpoint {
-                                       remote-endpoint = <&usb_1_qmpphy_out>;
+                                       remote-endpoint = <&redriver_usb_con_ss>;
+                               };
+                       };
+
+                       port@2 {
+                               reg = <2>;
+
+                               pm8150b_typec_sbu_out: endpoint {
+                                       remote-endpoint = <&redriver_usb_con_sbu>;
                                };
                        };
                };