Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Luca Weiss <luca.weiss@fairphone.com>
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240418-typec-fix-example-v3-1-08f649b6f368@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dmitry Baryshkov and committed by
Greg Kroah-Hartman
14e37bff 0d31ea58

+26 -8
+26 -8
Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml
··· 193 193 194 194 port@0 { 195 195 reg = <0>; 196 - pmic_typec_mux_out: endpoint { 197 - remote-endpoint = <&usb_phy_typec_mux_in>; 196 + pmic_typec_hs_in: endpoint { 197 + remote-endpoint = <&usb_hs_out>; 198 198 }; 199 199 }; 200 200 201 201 port@1 { 202 202 reg = <1>; 203 - pmic_typec_role_switch_out: endpoint { 204 - remote-endpoint = <&usb_role_switch_in>; 203 + pmic_typec_ss_in: endpoint { 204 + remote-endpoint = <&usb_phy_typec_ss_out>; 205 + }; 206 + }; 207 + 208 + port@2 { 209 + reg = <2>; 210 + pmic_typec_sbu: endpoint { 211 + remote-endpoint = <&usb_mux_sbu>; 205 212 }; 206 213 }; 207 214 }; ··· 220 213 dr_mode = "otg"; 221 214 usb-role-switch; 222 215 port { 223 - usb_role_switch_in: endpoint { 224 - remote-endpoint = <&pmic_typec_role_switch_out>; 216 + usb_hs_out: endpoint { 217 + remote-endpoint = <&pmic_typec_hs_in>; 225 218 }; 226 219 }; 227 220 }; ··· 229 222 usb-phy { 230 223 orientation-switch; 231 224 port { 232 - usb_phy_typec_mux_in: endpoint { 233 - remote-endpoint = <&pmic_typec_mux_out>; 225 + usb_phy_typec_ss_out: endpoint { 226 + remote-endpoint = <&pmic_typec_ss_in>; 227 + }; 228 + }; 229 + }; 230 + 231 + usb-mux { 232 + orientation-switch; 233 + mode-switch; 234 + 235 + port { 236 + usb_mux_sbu: endpoint { 237 + remote-endpoint = <&pmic_typec_sbu>; 234 238 }; 235 239 }; 236 240 };