mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2] ARM: pbab01: allow USB-OTG port runtime configuration
@ 2022-04-19 12:46 Andrej Picej
  2022-04-20  6:46 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Picej @ 2022-04-19 12:46 UTC (permalink / raw)
  To: barebox; +Cc: upstream

Since commit a5a4c1d5a3 ("dts: update to v5.13-rc1"), which synced
kernel dts, USB-OTG port on phyFLEX board was set to work only in
peripheral mode. This has to do with phyFLEX baseboard hardware bug,
which prevents correct USB OTG ID pin detection in kernel code.

Unlike linux kernel, barebox doesn't support OTG auto-detection mode via
ID pin. In barebox, user has to select desired USB mode of operation by
setting 'otg.mode' variable. Thus set the 'dr_mode' property to "otg" to
be able to later select USB OTG operating mode at runtime (either host
or peripheral).

Signed-off-by: Andrej Picej <>
- rather than deleting the dr_mode property, set the property to "otg"
  to explicitly set the mode to OTG
 arch/arm/dts/imx6qdl-phytec-pbab01.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx6qdl-phytec-pbab01.dtsi b/arch/arm/dts/imx6qdl-phytec-pbab01.dtsi
index 991c7e4fab..88db962535 100644
--- a/arch/arm/dts/imx6qdl-phytec-pbab01.dtsi
+++ b/arch/arm/dts/imx6qdl-phytec-pbab01.dtsi
@@ -15,6 +15,10 @@
 	status = "okay";
+&usbotg {
+	dr_mode = "otg";
 #include "state-example.dtsi"

barebox mailing list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-20  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 12:46 [PATCH v2] ARM: pbab01: allow USB-OTG port runtime configuration Andrej Picej
2022-04-20  6:46 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox