diff mbox

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

Message ID 1464086058-1276-5-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive)
State Superseded
Commit e458fbe7e422a892fa082cd683504e2285baff83
Delegated to: Simon Horman
Headers show

Commit Message

Yoshihiro Shimoda May 24, 2016, 10:34 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 23bc06b..7dc3ca6 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";