ARM: dts: keystone: specify usb mode explicitly
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 31 Aug 2016 20:29:59 +0000 (16:29 -0400)
committerSantosh Shilimkar <ssantosh@kernel.org>
Wed, 31 Aug 2016 20:29:59 +0000 (16:29 -0400)
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>
arch/arm/boot/dts/keystone-k2e-evm.dts
arch/arm/boot/dts/keystone-k2e.dtsi
arch/arm/boot/dts/keystone-k2hk-evm.dts
arch/arm/boot/dts/keystone-k2l-evm.dts
arch/arm/boot/dts/keystone.dtsi

index 4c32ebc1425a0ae52a181e7305706f071a986ae0..ae1ebe7ee0217e8a44d0e607149ced326a6070dc 100644 (file)
        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";
index 9a51b8c8858102d89a99b63cd52271fe4eb60a30..497c417db5b641ecba3760dc23977f1d42251d16 100644 (file)
@@ -61,7 +61,7 @@
                        status = "disabled";
                };
 
-               usb1: usb@25000000 {
+               keystone_usb1: usb@25000000 {
                        compatible = "ti,keystone-dwc3";
                        #address-cells = <1>;
                        #size-cells = <1>;
@@ -74,7 +74,7 @@
                        dma-ranges;
                        status = "disabled";
 
-                       dwc3@25010000 {
+                       usb1: dwc3@25010000 {
                                compatible = "synopsys,dwc3";
                                reg = <0x25010000 0x70000>;
                                interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;
index b38b3441818b91ea8c00039b726344942442c84d..2156ff92d08f1a93608ef33a5c129b44775689a0 100644 (file)
        status = "okay";
 };
 
-&usb {
+&keystone_usb0 {
        status = "okay";
 };
 
+&usb0 {
+       dr_mode = "host";
+};
+
 &aemif {
        cs0 {
                #address-cells = <2>;
index 7f9c2e94d6056829d6ad70905d50b34b97671399..056b42f99d7acabdf531af6654d282979ddebae7 100644 (file)
        status = "okay";
 };
 
-&usb {
+&keystone_usb0 {
        status = "okay";
 };
 
+&usb0 {
+       dr_mode = "host";
+};
+
 &i2c0 {
        dtt@50 {
                compatible = "at,24c1024";
index 00cb314d5e4db81fcc035b2a68101a557cf751a4..b93b33f0124a623ae74582f0eb3b31c05b491cf8 100644 (file)
                        status = "disabled";
                };
 
-               usb: usb@2680000 {
+               keystone_usb0: usb@2680000 {
                        compatible = "ti,keystone-dwc3";
                        #address-cells = <1>;
                        #size-cells = <1>;
                        dma-ranges;
                        status = "disabled";
 
-                       dwc3@2690000 {
+                       usb0: dwc3@2690000 {
                                compatible = "synopsys,dwc3";
                                reg = <0x2690000 0x70000>;
                                interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;