]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: monaco-evk: Enable the secondary USB controller
authorSwati Agarwal <swati.agarwal@oss.qualcomm.com>
Tue, 3 Mar 2026 08:21:57 +0000 (13:51 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 9 Mar 2026 23:09:48 +0000 (18:09 -0500)
Enable the secondary USB controller connected to micro usb port in OTG mode
on Monaco EVK platform.

Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260303082157.523847-4-swati.agarwal@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/monaco-evk.dts

index c90735d11b1b95ac43ca7227ea39956f29a9338a..0b26cc334a69ad2482a4e9dc2270369813177563 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       connector-2 {
+               compatible = "gpio-usb-b-connector", "usb-b-connector";
+               label = "micro-USB";
+               type = "micro";
+
+               id-gpios = <&pmm8620au_0_gpios 9 GPIO_ACTIVE_HIGH>;
+               vbus-gpios = <&expander6 7 GPIO_ACTIVE_HIGH>;
+               vbus-supply = <&usb2_vbus>;
+
+               pinctrl-0 = <&usb2_id>;
+               pinctrl-names = "default";
+
+               port {
+                       usb2_con_hs_ep: endpoint {
+                               remote-endpoint = <&usb_2_dwc3_hs>;
+                       };
+               };
+       };
+
        dmic: audio-codec-0 {
                compatible = "dmic-codec";
                #sound-dai-cells = <0>;
                #sound-dai-cells = <0>;
        };
 
+       usb2_vbus: regulator-usb2-vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "usb2_vbus";
+               gpio = <&pmm8650au_1_gpios 7 GPIO_ACTIVE_HIGH>;
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               enable-active-high;
+       };
+
        sound {
                compatible = "qcom,qcs8275-sndcard";
                model = "MONACO-EVK";
        wake-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
 };
 
+&pmm8620au_0_gpios {
+       usb2_id: usb2-id-state {
+               pins = "gpio9";
+               function = "normal";
+               input-enable;
+               bias-pull-up;
+               power-source = <0>;
+       };
+};
+
 &qupv3_id_0 {
        firmware-name = "qcom/qcs8300/qupv3fw.elf";
        status = "okay";
 
        status = "okay";
 };
+
+&usb_2 {
+       status = "okay";
+};
+
+&usb_2_dwc3_hs {
+       remote-endpoint = <&usb2_con_hs_ep>;
+};
+
+&usb_2_hsphy {
+       vdda-pll-supply = <&vreg_l7a>;
+       vdda18-supply = <&vreg_l7c>;
+       vdda33-supply = <&vreg_l9a>;
+
+       status = "okay";
+};