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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxx>
---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 4 ++++
 1 file changed, 4 insertions(+)

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";
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux