summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
diff options
context:
space:
mode:
authorAlexey Min <alexey.min@gmail.com>2021-11-21 00:42:27 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-11-21 01:24:59 +0300
commite5d3e752b050e03d2046011a3865721a3f200216 (patch)
tree4736f0a655cc681154090e52cfac3b773b0dfb06 /arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
parente631e904e1d89650e3c8facdfb37cfca3491a52d (diff)
downloadlinux-e5d3e752b050e03d2046011a3865721a3f200216.tar.xz
arm64: dts: qcom: sdm660-xiaomi-lavender: Add USB
Enable and configure DWC3 and QUSB2 PHY to enable USB functionality on the Redmi Note 7. Signed-off-by: Alexey Min <alexey.min@gmail.com> Co-developed-by: Dang Huynh <danct12@riseup.net> Signed-off-by: Dang Huynh <danct12@riseup.net> Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20211120214227.779742-9-danct12@riseup.net
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
index 95c1518bb52d..d042e3883b9e 100644
--- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
+++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
@@ -65,6 +65,15 @@
no-map;
};
};
+
+ /*
+ * Until we hook up type-c detection, we
+ * have to stick with this. But it works.
+ */
+ extcon_usb: extcon-usb {
+ compatible = "linux,extcon-usb-gpio";
+ id-gpio = <&tlmm 58 GPIO_ACTIVE_HIGH>;
+ };
};
&blsp1_uart2 {
@@ -81,6 +90,13 @@
linux,code = <KEY_VOLUMEDOWN>;
};
+&qusb2phy {
+ status = "okay";
+
+ vdd-supply = <&vreg_l1b_0p925>;
+ vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
+};
+
&rpm_requests {
pm660l-regulators {
compatible = "qcom,rpm-pm660l-regulators";
@@ -356,3 +372,12 @@
&tlmm {
gpio-reserved-ranges = <8 4>;
};
+
+&usb3 {
+ status = "okay";
+};
+
+&usb3_dwc3 {
+ dr_mode = "peripheral";
+ extcon = <&extcon_usb>;
+};