Skip to content

Commit 6449784

Browse files
grygoriySSantoshShilimkar
authored andcommitted
ARM: dts: keystone: specify usb mode explicitly
The USB OTG mode is not supported by Kestone 2 devices, as result, the USB devices enumeration and detection will not work properly when kernel is built with CONFIG_USB_DWC3_DUAL_ROLE=y (default for multi platform build): - it's required to load gadget drivers manually to make host mode work and this confuses current Keystone 2 users - device mode is not working, because port can't detect and switch to peripheral/host mode dynamically. Hence, specify usb mode explicitly in DT: usb0 = "host" for all KS2 devices and usb1 = "peripheral" for K2E. Cc: Sekhar Nori <nsekhar@ti.com> Cc: Roger Quadros <rogerq@ti.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
1 parent 29b4817 commit 6449784

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

arch/arm/boot/dts/keystone-k2e-evm.dts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,26 @@
4747
status = "okay";
4848
};
4949

50-
&usb {
50+
&keystone_usb0 {
5151
status = "okay";
5252
};
5353

54+
&usb0 {
55+
dr_mode = "host";
56+
};
57+
5458
&usb1_phy {
5559
status = "okay";
5660
};
5761

58-
&usb1 {
62+
&keystone_usb1 {
5963
status = "okay";
6064
};
6165

66+
&usb1 {
67+
dr_mode = "peripheral";
68+
};
69+
6270
&i2c0 {
6371
dtt@50 {
6472
compatible = "at,24c1024";

arch/arm/boot/dts/keystone-k2e.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
status = "disabled";
6262
};
6363

64-
usb1: usb@25000000 {
64+
keystone_usb1: usb@25000000 {
6565
compatible = "ti,keystone-dwc3";
6666
#address-cells = <1>;
6767
#size-cells = <1>;
@@ -74,7 +74,7 @@
7474
dma-ranges;
7575
status = "disabled";
7676

77-
dwc3@25010000 {
77+
usb1: dwc3@25010000 {
7878
compatible = "synopsys,dwc3";
7979
reg = <0x25010000 0x70000>;
8080
interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;

arch/arm/boot/dts/keystone-k2hk-evm.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@
8383
status = "okay";
8484
};
8585

86-
&usb {
86+
&keystone_usb0 {
8787
status = "okay";
8888
};
8989

90+
&usb0 {
91+
dr_mode = "host";
92+
};
93+
9094
&aemif {
9195
cs0 {
9296
#address-cells = <2>;

arch/arm/boot/dts/keystone-k2l-evm.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@
3232
status = "okay";
3333
};
3434

35-
&usb {
35+
&keystone_usb0 {
3636
status = "okay";
3737
};
3838

39+
&usb0 {
40+
dr_mode = "host";
41+
};
42+
3943
&i2c0 {
4044
dtt@50 {
4145
compatible = "at,24c1024";

arch/arm/boot/dts/keystone.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
status = "disabled";
197197
};
198198

199-
usb: usb@2680000 {
199+
keystone_usb0: usb@2680000 {
200200
compatible = "ti,keystone-dwc3";
201201
#address-cells = <1>;
202202
#size-cells = <1>;
@@ -209,7 +209,7 @@
209209
dma-ranges;
210210
status = "disabled";
211211

212-
dwc3@2690000 {
212+
usb0: dwc3@2690000 {
213213
compatible = "synopsys,dwc3";
214214
reg = <0x2690000 0x70000>;
215215
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;

0 commit comments

Comments
 (0)