summaryrefslogtreecommitdiffstats
path: root/Documentation/user
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-10-02 08:54:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-10-02 08:54:42 +0200
commita65334019b71d592024f0da930e5499c7deeacb6 (patch)
tree092b92dbdb72c877ae237a058bbf87dc20b37431 /Documentation/user
parent868de66f8df89ace4f05c9f25c3a889e8749c44b (diff)
parent874d371f65d8787665fb3f5945ef196738f5bd10 (diff)
downloadbarebox-a65334019b71d592024f0da930e5499c7deeacb6.tar.gz
barebox-a65334019b71d592024f0da930e5499c7deeacb6.tar.xz
Merge branch 'for-next/musb'
Diffstat (limited to 'Documentation/user')
-rw-r--r--Documentation/user/usb.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/user/usb.rst b/Documentation/user/usb.rst
index 7cdd6ac814..88be620536 100644
--- a/Documentation/user/usb.rst
+++ b/Documentation/user/usb.rst
@@ -143,3 +143,24 @@ USB CDC ACM compliant serial device.
Unlike the :ref:`command_dfu` command the ``usbgadget`` command returns immediately
after creating the gadget. The gadget can be removed with ``usbgadget -d``.
+
+USB OTG support
+---------------
+
+barebox does not have USB OTG support. However, barebox supports some USB cores in
+both host and device mode. If these are specified for otg in the device tree
+(dr_mode = "otg";) barebox registers a OTG device which can be used to decide which
+mode shall be used. The device has a ``mode`` parameter which by default has the
+value ``otg``. setting this to ``host`` or ``device`` puts the device in the corresponding
+mode. Once a specific mode has been selected it can't be changed later anymore.
+
+.. code-block:: sh
+ barebox:/ devinfo otg0
+ Parameters:
+ mode: otg ("otg", "host", "peripheral")
+ barebox:/ otg0.mode=host
+ musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
+ musb-hdrc: MHDRC RTL version 2.0
+ musb-hdrc: setup fifo_mode 4
+ musb-hdrc: 28/31 max ep, 16384/16384 memory
+ barebox:/