Commit 64497844 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Santosh Shilimkar

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: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
parent 29b4817d
......@@ -47,18 +47,26 @@ &usb_phy {
status = "okay";
};
&usb {
&keystone_usb0 {
status = "okay";
};
&usb0 {
dr_mode = "host";
};
&usb1_phy {
status = "okay";
};
&usb1 {
&keystone_usb1 {
status = "okay";
};
&usb1 {
dr_mode = "peripheral";
};
&i2c0 {
dtt@50 {
compatible = "at,24c1024";
......
......@@ -61,7 +61,7 @@ usb1_phy: usb_phy@2620750 {
status = "disabled";
};
usb1: usb@25000000 {
keystone_usb1: usb@25000000 {
compatible = "ti,keystone-dwc3";
#address-cells = <1>;
#size-cells = <1>;
......@@ -74,7 +74,7 @@ usb1: usb@25000000 {
dma-ranges;
status = "disabled";
dwc3@25010000 {
usb1: dwc3@25010000 {
compatible = "synopsys,dwc3";
reg = <0x25010000 0x70000>;
interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;
......
......@@ -83,10 +83,14 @@ &usb_phy {
status = "okay";
};
&usb {
&keystone_usb0 {
status = "okay";
};
&usb0 {
dr_mode = "host";
};
&aemif {
cs0 {
#address-cells = <2>;
......
......@@ -32,10 +32,14 @@ &usb_phy {
status = "okay";
};
&usb {
&keystone_usb0 {
status = "okay";
};
&usb0 {
dr_mode = "host";
};
&i2c0 {
dtt@50 {
compatible = "at,24c1024";
......
......@@ -196,7 +196,7 @@ usb_phy: usb_phy@2620738 {
status = "disabled";
};
usb: usb@2680000 {
keystone_usb0: usb@2680000 {
compatible = "ti,keystone-dwc3";
#address-cells = <1>;
#size-cells = <1>;
......@@ -209,7 +209,7 @@ usb: usb@2680000 {
dma-ranges;
status = "disabled";
dwc3@2690000 {
usb0: dwc3@2690000 {
compatible = "synopsys,dwc3";
reg = <0x2690000 0x70000>;
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment