Commit 90053b15 authored by Luca Weiss's avatar Luca Weiss Committed by Bjorn Andersson

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: default avatarLuca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20240220-fp3-typec-v1-1-1930cad81139@fairphone.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent fd5afa5d
......@@ -1323,6 +1323,20 @@ usb3_dwc3: usb@7000000 {
snps,hird-threshold = /bits/ 8 <0x00>;
maximum-speed = "high-speed";
usb-role-switch;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usb_dwc3_hs: endpoint {
};
};
};
};
};
......
......@@ -116,6 +116,33 @@ led@3 {
};
};
&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 @@ &usb3 {
status = "okay";
};
&usb3_dwc3 {
dr_mode = "peripheral";
&usb_dwc3_hs {
remote-endpoint = <&pmi632_hs_in>;
};
&wcnss {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment