diff mbox

[4/4] arm64: dts: salvator-x: enable HSUSB

Message ID 1464065860-3948-5-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive)
State Superseded
Headers show

Commit Message

Yoshihiro Shimoda May 24, 2016, 4:57 a.m. UTC
Since related drivers doesn't support OTG framework yet, the renesas_usbhs
driver cannot detect VBUS in particular situations. And then a gadget
driver doesn't work correctly (even if a USB cable is connected to a USB
host, nothing happens).
However, we can avoid such a situation if we operate the followings:

 1) rmmod/unbind all gadget drivers
 2) rmmod/unbind the renesas_usbhs driver
  e.g. # echo e6590000.usb > /sys/bus/platform/drivers/renesas_usbhs/unbind
 3) connect the USB cable of CN9 to a USB host
 4) insmod/bind the renesas_usbhs driver
  e.g. # echo e6590000.usb > /sys/bus/platform/drivers/renesas_usbhs/bind
 5) insmod/bind a gadget driver

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 3367f9c..b2852e7 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -603,6 +603,10 @@ 
 	status = "okay";
 };
 
+&hsusb {
+	status = "okay";
+};
+
 &pcie_bus_clk {
 	clock-frequency = <100000000>;
 	status = "okay";