arm64: dts: qcom: qcs404-evb: Enable USB controllers
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 11 Mar 2020 19:15:17 +0000 (19:15 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 14 Apr 2020 05:04:41 +0000 (22:04 -0700)
This patch enables the primary and secondary USB controllers on the
qcs404-evb.

Primary:
The primary USB controller has

- One USB3 SS PHY using gpio-usb-conn
- One USB2 HS PHY in device mode only and no connector driver
  associated.

Secondary:
The second DWC3 controller which has one USB Hi-Speed PHY attached to it.

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20200311191517.8221-7-bryan.odonoghue@linaro.org
[bjorn: Dropped usb3 role switching and enabled vbus]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/qcs404-evb.dtsi

index 6020dbc88026af55e00b30b354712a9458c2bb9f..6422cf9d585516cdfa76b9bbcdb257bb287a37b6 100644 (file)
@@ -44,6 +44,9 @@
                pinctrl-0 = <&usb_vbus_boost_pin>;
                vin-supply = <&vph_pwr>;
                enable-active-high;
+
+               /* TODO: Drop this when introducing role switching */
+               regulator-always-on;
        };
 };
 
        };
 };
 
+&usb2 {
+       status = "okay";
+};
+
+&usb2_phy_sec {
+       vdd-supply = <&vreg_l4_1p2>;
+       vdda1p8-supply = <&vreg_l5_1p8>;
+       vdda3p3-supply = <&vreg_l12_3p3>;
+       status = "okay";
+};
+
+&usb3 {
+       status = "okay";
+
+       dwc3@7580000 {
+               dr_mode = "host";
+       };
+};
+
+&usb2_phy_prim {
+       vdd-supply = <&vreg_l4_1p2>;
+       vdda1p8-supply = <&vreg_l5_1p8>;
+       vdda3p3-supply = <&vreg_l12_3p3>;
+       status = "okay";
+};
+
+&usb3_phy {
+       vdd-supply = <&vreg_l3_1p05>;
+       vdda1p8-supply = <&vreg_l5_1p8>;
+       status = "okay";
+};
+
 &wifi {
        status = "okay";
        vdd-0.8-cx-mx-supply = <&vreg_l2_1p275>;