Skip to content

Commit 36fccfd

Browse files
committed
FROMLIST: arm64: dts: qcom: lemans-evk: Enable the tertiary USB controller
Enable the tertiary usb controller connected to micro usb port in OTG mode on Lemans EVK platform. Link: https://lore.kernel.org/all/20260210125348.2800846-3-swati.agarwal@oss.qualcomm.com/ Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
1 parent 9a97e1f commit 36fccfd

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,25 @@
107107
};
108108
};
109109

110+
connector-2 {
111+
compatible = "gpio-usb-b-connector", "usb-b-connector";
112+
label = "micro-USB";
113+
type = "micro";
114+
115+
id-gpios = <&pmm8654au_2_gpios 11 GPIO_ACTIVE_HIGH>;
116+
vbus-gpios = <&expander3 3 GPIO_ACTIVE_HIGH>;
117+
vbus-supply = <&vbus_supply_regulator_2>;
118+
119+
pinctrl-names = "default";
120+
pinctrl-0 = <&usb2_id>;
121+
122+
port {
123+
usb2_con_hs_ep: endpoint {
124+
remote-endpoint = <&usb_2_dwc3_hs>;
125+
};
126+
};
127+
};
128+
110129
edp0-connector {
111130
compatible = "dp-connector";
112131
label = "EDP0";
@@ -190,6 +209,15 @@
190209
enable-active-high;
191210
};
192211

212+
vbus_supply_regulator_2: vbus-supply-regulator-2 {
213+
compatible = "regulator-fixed";
214+
regulator-name = "vbus_supply_2";
215+
gpio = <&pmm8654au_1_gpios 9 GPIO_ACTIVE_HIGH>;
216+
regulator-min-microvolt = <5000000>;
217+
regulator-max-microvolt = <5000000>;
218+
enable-active-high;
219+
};
220+
193221
vmmc_sdc: regulator-vmmc-sdc {
194222
compatible = "regulator-fixed";
195223

@@ -834,6 +862,14 @@
834862
bias-pull-up;
835863
power-source = <0>;
836864
};
865+
866+
usb2_id: usb2-id-state {
867+
pins = "gpio11";
868+
function = "normal";
869+
input-enable;
870+
bias-pull-up;
871+
power-source = <0>;
872+
};
837873
};
838874

839875
&qup_i2c19_default {
@@ -1218,6 +1254,22 @@
12181254
status = "okay";
12191255
};
12201256

1257+
&usb_2 {
1258+
status = "okay";
1259+
};
1260+
1261+
&usb_2_dwc3_hs {
1262+
remote-endpoint = <&usb2_con_hs_ep>;
1263+
};
1264+
1265+
&usb_2_hsphy {
1266+
vdda-pll-supply = <&vreg_l7a>;
1267+
vdda18-supply = <&vreg_l6c>;
1268+
vdda33-supply = <&vreg_l9a>;
1269+
1270+
status = "okay";
1271+
};
1272+
12211273
&xo_board_clk {
12221274
clock-frequency = <38400000>;
12231275
};

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4168,7 +4168,14 @@
41684168
snps,dis-u1-entry-quirk;
41694169
snps,dis-u2-entry-quirk;
41704170

4171+
usb-role-switch;
4172+
41714173
status = "disabled";
4174+
4175+
port {
4176+
usb_2_dwc3_hs: endpoint {
4177+
};
4178+
};
41724179
};
41734180

41744181
tcsr_mutex: hwlock@1f40000 {

0 commit comments

Comments
 (0)