diff options
author | Luca Weiss <luca.weiss@fairphone.com> | 2024-02-20 13:01:22 +0100 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-03-18 04:24:50 +0100 |
commit | 90053b1574f8cff3a3b53accc496246ad2e0aec3 (patch) | |
tree | a297f6abf99bec5c08cb7ed254fb25feffd751b9 /arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | |
parent | arm64: dts: qcom: sm6350: Add Crypto Engine (diff) | |
download | linux-90053b1574f8cff3a3b53accc496246ad2e0aec3.tar.xz linux-90053b1574f8cff3a3b53accc496246ad2e0aec3.zip |
arm64: dts: qcom: sdm632-fairphone-fp3: enable USB-C port handling
Add the definition for the USB-C connector found on this phone and hook
up the relevant bits. This enables USB role switching.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20240220-fp3-typec-v1-1-1930cad81139@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts')
-rw-r--r-- | arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts index 057579ae3013..e2708c74e95a 100644 --- a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts +++ b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts @@ -116,6 +116,33 @@ }; }; +&pmi632_typec { + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "dual"; + data-role = "dual"; + self-powered; + + typec-power-opmode = "default"; + pd-disable; + + port { + pmi632_hs_in: endpoint { + remote-endpoint = <&usb_dwc3_hs>; + }; + }; + }; +}; + +&pmi632_vbus { + regulator-min-microamp = <500000>; + regulator-max-microamp = <1000000>; + status = "okay"; +}; + &sdhc_1 { status = "okay"; vmmc-supply = <&pm8953_l8>; @@ -240,8 +267,8 @@ status = "okay"; }; -&usb3_dwc3 { - dr_mode = "peripheral"; +&usb_dwc3_hs { + remote-endpoint = <&pmi632_hs_in>; }; &wcnss { |