Commit 14e37bff authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Greg Kroah-Hartman
Browse files

dt-bindings: usb: qcom,pmic-typec: update example to follow connector schema



Update Qualcomm PMIC Type-C examples to follow the USB-C connector
schema. The USB-C connector should have three ports (USB HS @0,
SSTX/RX @1 and SBU @2 lanes). Reorder ports accordingly and add SBU port
connected to the SBU mux (e.g. FSA4480).

Reported-by: default avatarLuca Weiss <luca.weiss@fairphone.com>
Acked-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240418-typec-fix-example-v3-1-08f649b6f368@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d31ea58
Loading
Loading
Loading
Loading
+26 −8
Original line number Diff line number Diff line
@@ -193,15 +193,22 @@ examples:

                    port@0 {
                        reg = <0>;
                        pmic_typec_mux_out: endpoint {
                            remote-endpoint = <&usb_phy_typec_mux_in>;
                        pmic_typec_hs_in: endpoint {
                            remote-endpoint = <&usb_hs_out>;
                        };
                    };

                    port@1 {
                        reg = <1>;
                        pmic_typec_role_switch_out: endpoint {
                            remote-endpoint = <&usb_role_switch_in>;
                        pmic_typec_ss_in: endpoint {
                            remote-endpoint = <&usb_phy_typec_ss_out>;
                        };
                    };

                    port@2 {
                        reg = <2>;
                        pmic_typec_sbu: endpoint {
                            remote-endpoint = <&usb_mux_sbu>;
                        };
                    };
                };
@@ -213,8 +220,8 @@ examples:
        dr_mode = "otg";
        usb-role-switch;
        port {
            usb_role_switch_in: endpoint {
                remote-endpoint = <&pmic_typec_role_switch_out>;
            usb_hs_out: endpoint {
                remote-endpoint = <&pmic_typec_hs_in>;
            };
        };
    };
@@ -222,8 +229,19 @@ examples:
    usb-phy {
        orientation-switch;
        port {
            usb_phy_typec_mux_in: endpoint {
                remote-endpoint = <&pmic_typec_mux_out>;
            usb_phy_typec_ss_out: endpoint {
                remote-endpoint = <&pmic_typec_ss_in>;
            };
        };
    };

    usb-mux {
        orientation-switch;
        mode-switch;

        port {
            usb_mux_sbu: endpoint {
                remote-endpoint = <&pmic_typec_sbu>;
            };
        };
    };