Skip to content

Commit e1c69ef

Browse files
sjoerdsimonskgene
authored andcommitted
ARM: dts: Explicitly set dr_mode on exynos Peach boards
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>
1 parent 508423b commit e1c69ef

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

arch/arm/boot/dts/exynos5420-peach-pit.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@
427427
status = "okay";
428428
};
429429

430+
&usbdrd_dwc3_0 {
431+
dr_mode = "host";
432+
};
433+
434+
&usbdrd_dwc3_1 {
435+
dr_mode = "host";
436+
};
437+
430438
&usbdrd_phy0 {
431439
vbus-supply = <&usb300_vbus_reg>;
432440
};

arch/arm/boot/dts/exynos5420.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@
815815
#size-cells = <1>;
816816
ranges;
817817

818-
dwc3 {
818+
usbdrd_dwc3_0: dwc3 {
819819
compatible = "snps,dwc3";
820820
reg = <0x12000000 0x10000>;
821821
interrupts = <0 72 0>;
@@ -841,7 +841,7 @@
841841
#size-cells = <1>;
842842
ranges;
843843

844-
dwc3 {
844+
usbdrd_dwc3_1: dwc3 {
845845
compatible = "snps,dwc3";
846846
reg = <0x12400000 0x10000>;
847847
interrupts = <0 73 0>;

arch/arm/boot/dts/exynos5800-peach-pi.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,14 @@
425425
status = "okay";
426426
};
427427

428+
&usbdrd_dwc3_0 {
429+
dr_mode = "host";
430+
};
431+
432+
&usbdrd_dwc3_1 {
433+
dr_mode = "host";
434+
};
435+
428436
&usbdrd_phy0 {
429437
vbus-supply = <&usb300_vbus_reg>;
430438
};

0 commit comments

Comments
 (0)