ARM: dts: Explicitly set dr_mode on exynos Peach boards
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Thu, 25 Sep 2014 08:32:14 +0000 (17:32 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 16 Oct 2014 23:17:35 +0000 (08:17 +0900)
In case the optional dr_mode property isn't set in the dwc3 nodes the
the controller will go into OTG mode if both USB host and USB gadget
functionality are enabled in the kernel configuration. Unfortunately
this results in USB not working on exynos5420-peach-pit and
exynos5800-peach-pi with such a kernel configuration unless manually
change the mode. To resolve that explicitly configure the dual role
mode as host.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Andreas Faerber <afaerber@suse.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos5420-peach-pit.dts
arch/arm/boot/dts/exynos5420.dtsi
arch/arm/boot/dts/exynos5800-peach-pi.dts

index 228a6b1e0aa10378f604c7f08feb0cf6c9ad4919..29d3a5994df40ac1f5dd4106a17a8fc4da69b5bb 100644 (file)
        status = "okay";
 };
 
+&usbdrd_dwc3_0 {
+       dr_mode = "host";
+};
+
+&usbdrd_dwc3_1 {
+       dr_mode = "host";
+};
+
 &usbdrd_phy0 {
        vbus-supply = <&usb300_vbus_reg>;
 };
index bfe056d9148ce8d476b30c9fb54981154fefab5f..8617a031cbc06bf670e42f167056fe6c061b0d63 100644 (file)
                #size-cells = <1>;
                ranges;
 
-               dwc3 {
+               usbdrd_dwc3_0: dwc3 {
                        compatible = "snps,dwc3";
                        reg = <0x12000000 0x10000>;
                        interrupts = <0 72 0>;
                #size-cells = <1>;
                ranges;
 
-               dwc3 {
+               usbdrd_dwc3_1: dwc3 {
                        compatible = "snps,dwc3";
                        reg = <0x12400000 0x10000>;
                        interrupts = <0 73 0>;
index f3ee48bbe05f57d0a308f626dca96b5668b177c2..20645502fecb30003160270b022f87bfc79adf70 100644 (file)
        status = "okay";
 };
 
+&usbdrd_dwc3_0 {
+       dr_mode = "host";
+};
+
+&usbdrd_dwc3_1 {
+       dr_mode = "host";
+};
+
 &usbdrd_phy0 {
        vbus-supply = <&usb300_vbus_reg>;
 };