]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: lemans-evk: Enable the tertiary USB controller
authorSwati Agarwal <swati.agarwal@oss.qualcomm.com>
Fri, 6 Mar 2026 09:13:55 +0000 (14:43 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 26 Mar 2026 14:40:54 +0000 (09:40 -0500)
Enable the tertiary usb controller connected to micro usb port in OTG mode
on Lemans EVK platform.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260306091355.1178333-5-swati.agarwal@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/lemans-evk.dts

index 687cafe3d15cd6366964c5e0cc432f5cfa4c42f5..a1ef4eba2a20c627dfe1035dd532f80b145e7f20 100644 (file)
                };
        };
 
+       connector-2 {
+               compatible = "gpio-usb-b-connector", "usb-b-connector";
+               label = "micro-USB";
+               type = "micro";
+
+               id-gpios = <&pmm8654au_2_gpios 11 GPIO_ACTIVE_HIGH>;
+               vbus-gpios = <&expander3 3 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>;
+                       };
+               };
+       };
+
        edp0-connector {
                compatible = "dp-connector";
                label = "EDP0";
                enable-active-high;
        };
 
+       usb2_vbus: regulator-usb2-vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "usb2_vbus";
+               gpio = <&pmm8654au_1_gpios 9 GPIO_ACTIVE_HIGH>;
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               enable-active-high;
+       };
+
        vmmc_sdc: regulator-vmmc-sdc {
                compatible = "regulator-fixed";
 
                bias-pull-up;
                power-source = <0>;
        };
+
+       usb2_id: usb2-id-state {
+               pins = "gpio11";
+               function = "normal";
+               input-enable;
+               bias-pull-up;
+               power-source = <0>;
+       };
 };
 
 &qup_i2c19_default {
        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_l6c>;
+       vdda33-supply = <&vreg_l9a>;
+
+       status = "okay";
+};
+
 &xo_board_clk {
        clock-frequency = <38400000>;
 };