Skip to content

Commit

Permalink
ARM: dts: Explicitly set dr_mode on exynos Peach boards
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sjoerd Simons authored and Kukjin Kim committed Oct 16, 2014
1 parent 508423b commit e1c69ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/exynos5420-peach-pit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,14 @@
status = "okay";
};

&usbdrd_dwc3_0 {
dr_mode = "host";
};

&usbdrd_dwc3_1 {
dr_mode = "host";
};

&usbdrd_phy0 {
vbus-supply = <&usb300_vbus_reg>;
};
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/exynos5420.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@
#size-cells = <1>;
ranges;

dwc3 {
usbdrd_dwc3_0: dwc3 {
compatible = "snps,dwc3";
reg = <0x12000000 0x10000>;
interrupts = <0 72 0>;
Expand All @@ -841,7 +841,7 @@
#size-cells = <1>;
ranges;

dwc3 {
usbdrd_dwc3_1: dwc3 {
compatible = "snps,dwc3";
reg = <0x12400000 0x10000>;
interrupts = <0 73 0>;
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/exynos5800-peach-pi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,14 @@
status = "okay";
};

&usbdrd_dwc3_0 {
dr_mode = "host";
};

&usbdrd_dwc3_1 {
dr_mode = "host";
};

&usbdrd_phy0 {
vbus-supply = <&usb300_vbus_reg>;
};
Expand Down

0 comments on commit e1c69ef

Please sign in to comment.