]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcs8300-ride: Enable USB controllers
authorKrishna Kurapati <quic_kriskura@quicinc.com>
Thu, 14 Nov 2024 05:51:52 +0000 (11:21 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 8 Jan 2025 04:52:43 +0000 (22:52 -0600)
Enable primary USB controller on QCS8300 Ride platform. The primary USB
controller is made "peripheral", as this is intended to be connected to
a host for debugging use cases.

For using the controller in host mode, changing the dr_mode and adding
appropriate pinctrl nodes to provide vbus would be sufficient.

Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20241114055152.1562116-3-quic_kriskura@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs8300-ride.dts

index 5e295ba6a0408a4700505e9e1256f09b5af1d6ed..b5c9f89b34356bbf8387643e8702a2a5f50b332f 100644 (file)
        vdda-pll-supply = <&vreg_l5a>;
        status = "okay";
 };
+
+&usb_1_hsphy {
+       vdda-pll-supply = <&vreg_l7a>;
+       vdda18-supply = <&vreg_l7c>;
+       vdda33-supply = <&vreg_l9a>;
+
+       status = "okay";
+};
+
+&usb_qmpphy {
+       vdda-phy-supply = <&vreg_l7a>;
+       vdda-pll-supply = <&vreg_l5a>;
+
+       status = "okay";
+};
+
+&usb_1 {
+       status = "okay";
+};
+
+&usb_1_dwc3 {
+       dr_mode = "peripheral";
+};