Skip to content

Commit 1178681

Browse files
swatagarkas User
authored andcommitted
FROMLIST: arm64: dts: qcom: monaco-evk: Enable the tertiary USB controller
Enable the tertiary usb controller connected to micro usb port in OTG mode on Monaco EVK platform. Link: https://lore.kernel.org/all/20260210155329.3044455-3-swati.agarwal@oss.qualcomm.com/ Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
1 parent c99c95d commit 1178681

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/monaco-evk.dts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@
2828
stdout-path = "serial0:115200n8";
2929
};
3030

31+
connector-2 {
32+
compatible = "gpio-usb-b-connector", "usb-b-connector";
33+
label = "micro-USB";
34+
type = "micro";
35+
36+
id-gpios = <&pmm8620au_0_gpios 9 GPIO_ACTIVE_HIGH>;
37+
vbus-gpios = <&expander6 7 GPIO_ACTIVE_HIGH>;
38+
vbus-supply = <&vbus_supply_regulator_2>;
39+
40+
pinctrl-names = "default";
41+
pinctrl-0 = <&usb2_id>;
42+
43+
port {
44+
usb2_con_hs_ep: endpoint {
45+
remote-endpoint = <&usb_2_dwc3_hs>;
46+
};
47+
};
48+
};
49+
3150
dp-connector0 {
3251
compatible = "dp-connector";
3352
label = "DP";
@@ -103,6 +122,15 @@
103122
};
104123
};
105124

125+
vbus_supply_regulator_2: vbus-supply-regulator-2 {
126+
compatible = "regulator-fixed";
127+
regulator-name = "vbus_supply_2";
128+
gpio = <&pmm8650au_1_gpios 7 GPIO_ACTIVE_HIGH>;
129+
regulator-min-microvolt = <5000000>;
130+
regulator-max-microvolt = <5000000>;
131+
enable-active-high;
132+
};
133+
106134
vreg_dcin_12v: regulator-dcin-12v {
107135
compatible = "regulator-fixed";
108136

@@ -566,6 +594,16 @@
566594
bias-pull-up;
567595
};
568596

597+
&pmm8620au_0_gpios {
598+
usb2_id: usb2-id-state {
599+
pins = "gpio9";
600+
function = "normal";
601+
input-enable;
602+
bias-pull-up;
603+
power-source = <0>;
604+
};
605+
};
606+
569607
&qupv3_id_0 {
570608
firmware-name = "qcom/qcs8300/qupv3fw.elf";
571609
status = "okay";
@@ -830,3 +868,18 @@
830868

831869
status = "okay";
832870
};
871+
872+
&usb_2 {
873+
status = "okay";
874+
};
875+
876+
&usb_2_dwc3_hs {
877+
remote-endpoint = <&usb2_con_hs_ep>;
878+
};
879+
880+
&usb_2_hsphy {
881+
vdda-pll-supply = <&vreg_l7a>;
882+
vdda18-supply = <&vreg_l7c>;
883+
vdda33-supply = <&vreg_l9a>;
884+
status = "okay";
885+
};

arch/arm64/boot/dts/qcom/monaco.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5014,7 +5014,14 @@
50145014
qcom,select-utmi-as-pipe-clk;
50155015
wakeup-source;
50165016

5017+
usb-role-switch;
5018+
50175019
status = "disabled";
5020+
5021+
port {
5022+
usb_2_dwc3_hs: endpoint {
5023+
};
5024+
};
50185025
};
50195026

50205027
iris: video-codec@aa00000 {

0 commit comments

Comments
 (0)