diff options
author | Neil Armstrong <neil.armstrong@linaro.org> | 2023-01-30 10:54:37 +0100 |
---|---|---|
committer | Neil Armstrong <neil.armstrong@linaro.org> | 2023-01-31 12:37:51 +0100 |
commit | ab013e49b9882c918ea5f037fe5ef80b18941db8 (patch) | |
tree | 963965f8a0b81a2c69b76f9d0e60f6b072307d0d | |
parent | 393edc9ba3ffc5f8e1d5c296f54b00ba0cdbf941 (diff) |
arm64: dts: qcom: sm8550-mtp: add pmic glink node
Add the pmic glink node linked with the DWC3 USB controller
switched to OTG mode and tagged with usb-role-switch.
Link: https://lore.kernel.org/r/20230130-topic-sm8450-upstream-pmic-glink-v1-6-0b0acfad301e@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts index eb5420af97ba..bf5b3d858ac3 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts @@ -27,6 +27,31 @@ stdout-path = "serial0:115200n8"; }; + pmic-glink { + compatible = "qcom,sm8450-pmic-glink", "qcom,pmic-glink"; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + pmic_glink_dwc3_in: endpoint { + remote-endpoint = <&usb_1_dwc3_out>; + }; + }; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -553,7 +578,14 @@ }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; + + port { + usb_1_dwc3_out: endpoint { + remote-endpoint = <&pmic_glink_dwc3_in>; + }; + }; }; &usb_1_hsphy { |