aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2020-08-28 02:44:27 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2020-12-28 03:36:15 +0300
commitcc301c720119cebfb781717b62415d5410815af1 (patch)
tree1031d28569417ece8425a2e0750650d9523c53d8 /arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
parent343c10e26c5838cd680a521b3f4ecfc14edaf169 (diff)
arm64: dts: qcom: qrb5165-rb5: add nodes for PMIC-based typec detection
Provide configuration to enable PMIC-based Type C orientation detection. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/qrb5165-rb5.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/qrb5165-rb5.dts44
1 files changed, 43 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
index cde8776f49b4..3ea2f6138193 100644
--- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
+++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
@@ -842,6 +842,35 @@
"NC";
};
+&pm8150b_typec {
+ status = "okay";
+ connector {
+ compatible = "usb-c-connector";
+ power-role = "dual";
+ data-role = "dual";
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ port@1 {
+ reg = <1>;
+ usb3_data_ss: endpoint@0 {
+ remote-endpoint = <&qmp_ss_mux>;
+ };
+ };
+ };
+ };
+
+ port {
+ usb3_role: endpoint {
+ remote-endpoint = <&dwc3_drd_switch>;
+ };
+ };
+};
+
+&pm8150b_vbus {
+ status = "okay";
+};
+
&pm8150l_gpios {
gpio-line-names =
"NC",
@@ -1235,10 +1264,17 @@
&usb_1 {
status = "okay";
+ usb-role-switch;
+ port {
+ dwc3_drd_switch: endpoint@0 {
+ remote-endpoint = <&usb3_role>;
+ };
+ };
};
&usb_1_dwc3 {
- dr_mode = "peripheral";
+ dr_mode = "otg";
+ usb-role-switch;
};
&usb_1_hsphy {
@@ -1254,6 +1290,12 @@
vdda-phy-supply = <&vreg_l9a_1p2>;
vdda-pll-supply = <&vreg_l18a_0p92>;
+ orientation-switch;
+ port {
+ qmp_ss_mux: endpoint@0 {
+ remote-endpoint = <&usb3_data_ss>;
+ };
+ };
};
&usb_2 {