]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sc8180x-primus: Enable the two MP USB ports
authorBjorn Andersson <quic_bjorande@quicinc.com>
Wed, 31 Jul 2024 03:24:43 +0000 (20:24 -0700)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Aug 2024 02:52:31 +0000 (21:52 -0500)
The SC8180X Primus comes with an AUX card with two USB ports, fed by the
two multiport ports.

Enable the involved nodes and define two always-on regulators to enable
VBUS for these ports.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20240730-sc8180x-usb-mp-v2-6-a7dc4265b553@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8180x-primus.dts

index 65d923497a057d94f2619a950435b1530466a376..9447c1e4577b0f3d784197d18e893723d2f50ad0 100644 (file)
                vin-supply = <&vph_pwr>;
        };
 
+       vreg_usb2_host_en: regulator-usb2-host-en {
+               compatible = "regulator-fixed";
+               regulator-name = "usb2_host_en";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&pmc8180_1_gpios 9 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               regulator-always-on;
+       };
+
+       vreg_usb3_host_en: regulator-usb3-host-en {
+               compatible = "regulator-fixed";
+               regulator-name = "usb3_host_en";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&pmc8180_2_gpios 9 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               regulator-always-on;
+       };
+
        usbprim-sbu-mux {
                compatible = "pericom,pi3usb102", "gpio-sbu-mux";
 
        status = "okay";
 };
 
+&usb_mp {
+       status = "okay";
+};
+
+&usb_mp_hsphy0 {
+       vdda-pll-supply = <&vreg_l5e_0p88>;
+       vdda18-supply = <&vreg_l12a_1p8>;
+       vdda33-supply = <&vreg_l16e_3p0>;
+
+       status = "okay";
+};
+
+&usb_mp_hsphy1 {
+       vdda-pll-supply = <&vreg_l5e_0p88>;
+       vdda18-supply = <&vreg_l12a_1p8>;
+       vdda33-supply = <&vreg_l16e_3p0>;
+
+       status = "okay";
+};
+
+&usb_mp_qmpphy0 {
+       vdda-phy-supply = <&vreg_l3c_1p2>;
+       vdda-pll-supply = <&vreg_l5e_0p88>;
+
+       status = "okay";
+};
+
+&usb_mp_qmpphy1 {
+       vdda-phy-supply = <&vreg_l3c_1p2>;
+       vdda-pll-supply = <&vreg_l5e_0p88>;
+
+       status = "okay";
+};
+
 &usb_prim_hsphy {
        vdda-pll-supply = <&vreg_l5e_0p88>;
        vdda18-supply = <&vreg_l12a_1p8>;