ARM: dts: dra7x-evm: beagle-x15: Fix USB Peripheral
authorRoger Quadros <rogerq@ti.com>
Tue, 17 Mar 2015 09:43:51 +0000 (11:43 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 17 Mar 2015 18:02:12 +0000 (11:02 -0700)
Now that we have EXTCON_USB_GPIO queued for v4.1, revert
commit addfcde7c485 ("ARM: dts: dra7x-evm: beagle-x15: Fix USB Host")

On these EVMs, the USB cable state has to be determined via the
ID pin tied to a GPIO line. We use the gpio-usb-extcon driver
to read the ID pin and the extcon framework to forward
the USB cable state information to the USB driver so the
controller can be configured in the right mode (host/peripheral).

Gets USB peripheral mode to work on this EVM.

Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
arch/arm/boot/dts/am57xx-beagle-x15.dts
arch/arm/boot/dts/dra7-evm.dts
arch/arm/boot/dts/dra72-evm.dts

index c1d82e830a96dc4ee706ddf5fa782126b3e012df..41642fe770a148a179de5aa495a00878f6d3a0be 100644 (file)
        pinctrl-0 = <&usb1_pins>;
 };
 
+&omap_dwc3_1 {
+       extcon = <&extcon_usb1>;
+};
+
+&omap_dwc3_2 {
+       extcon = <&extcon_usb2>;
+};
+
 &usb2 {
        dr_mode = "peripheral";
 };
index 3290a96ba586a7262c2eb5ce171655cbe7124d50..746cddb1b8f538e1d1fed717b077998f4a46adc8 100644 (file)
        };
 };
 
+&omap_dwc3_1 {
+       extcon = <&extcon_usb1>;
+};
+
+&omap_dwc3_2 {
+       extcon = <&extcon_usb2>;
+};
+
 &usb1 {
        dr_mode = "peripheral";
        pinctrl-names = "default";
index e0264d0bf7b97118b19aa9af21611e36e832608b..4d87117136108873d2410ffaa68010652fd2e356 100644 (file)
        phy-supply = <&ldo4_reg>;
 };
 
+&omap_dwc3_1 {
+       extcon = <&extcon_usb1>;
+};
+
+&omap_dwc3_2 {
+       extcon = <&extcon_usb2>;
+};
+
 &usb1 {
        dr_mode = "peripheral";
        pinctrl-names = "default";